Hello,
I have problem with ffmpeg encoding In Ubuntu
I need to convert mkv file to mp4 but problems are :
1. Output video file have bad sound and video quality
2. Video file can’t forward or backward (it’s starts every time from the beginning)
3. Sometimes output file is bigger from input file
I will use the output file for online stream (web browser playing)
My config now is :
find . -type f -name "*.mkv" -exec ffmpeg -y -i {} -c:v libx264 -preset ultrafast -crf 24 -pix_fmt yuv420p -c:a aac -movflags +faststart {}.mp4
So, I have tried handbrake and with it, everything is working perfectly, but on ffmpeg I have problems.
Unfortunately I can’t use handbrake because I want to automate the process with cronjob.
Thanks for help in advance!
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 3 of 3
-
-
You can try to remux only with a commandline like this:
Ffmpeg -i your.mkv -map 0 -c copy output.mp4
In your command you forgot to specify the audio bitrate.
Add: - b 128kLast edited by ProWo; 14th Jun 2023 at 06:59.
-
I added the audio bitrate, thank you.
Problem with seeking is actual.
On some videos I have option to seek but on others - are can’t seeking.
After reading I found that maybe the problem is from keyframe (rescue points) and maybe in my videos are missing.
I’m not sure, but it’s playing each time from the beginning when try to seek forward or backward.
Please, help me to resolve this problem.
Similar Threads
-
ffmpeg: What are the most compatible encoding options?
By Rekrul in forum Video ConversionReplies: 10Last Post: 1st Sep 2022, 06:07 -
ffmpeg to merge subtitle (no encoding)
By sambat in forum SubtitleReplies: 4Last Post: 16th Feb 2022, 05:12 -
Need help 2 pass encoding with ffmpeg cli in windows
By Anonymous543 in forum Newbie / General discussionsReplies: 28Last Post: 9th Dec 2021, 09:46 -
ffmpeg encoding with optical flow?
By marcorocchini in forum Newbie / General discussionsReplies: 2Last Post: 18th Sep 2020, 13:55 -
Best GUI for ffmpeg encoding
By usta in forum Video ConversionReplies: 25Last Post: 17th Jan 2019, 11:23