Hi, how can I get the best (or good) results with FFMPEG command line MPEG-2 Video codec? I want to keep the bitrate at 5000kbps. I know 5000kbps is low for MPEG-2, I don't want a perfect picture, I just want it to look better. Here's my code.
for %%a in ("*.*") do ffmpeg -i "%%a" -s 704x576 -pix_fmt yuv420p -r 25 -codec:v mpeg2_qsv -vf setfield=tff -flags +ilme+ildct -g 1 -b:v 5000k -minrate:v 0k -maxrate:v 9000k -bufsize:v 1835008 -scan_offset 1 -ar 48000 -acodec ac3 -b:a 384k -f dvd -muxrate 10080k -packetsize 2048 "DVD %%~na.vob"
pause
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
The -g 1 is a big problem and likely your main issue, that means intra encoding (no p, b frames) . You would need many times more bitrate for it to look ok
Use -g 15 for PAL dvd
You can try multipass encoding too
You can look at this thread for supposedly optimal ffmpeg mpeg2 encoding. (But the results are still worse than other mpeg2 encoders)
http://forum.doom9.org/showthread.php?t=174620 -
Thanks for that tip, the video looks better using -g 15. But now I can't control my bitrate (outputting around 4000kbps no matter what my bitrate setting is).
-
To get the requested bitrate you have to use two pass encoding (I don't think the mpeg2_qsv encoder supports this). Or you can try setting the min, max, and average all to the same 5000k.
Last edited by jagabo; 21st Sep 2024 at 22:52.
Similar Threads
-
Command line to update ffmpeg?
By Leanoric in forum Newbie / General discussionsReplies: 3Last Post: 4th Jun 2024, 15:52 -
How do I use QAAC AAC with FFMPEG command line?
By shampistols69 in forum ffmpegX general discussionReplies: 1Last Post: 26th Dec 2022, 10:20 -
Get the complete FFmpeg command line when using FFmpeg Batch Converter
By pascor in forum Newbie / General discussionsReplies: 8Last Post: 13th May 2021, 23:14 -
Command line youtube-dl & ffmpeg?
By Adeptus in forum Video Streaming DownloadingReplies: 2Last Post: 27th Feb 2020, 05:48 -
Need a command line for ffmpeg
By NTradd in forum Video ConversionReplies: 11Last Post: 14th Oct 2019, 11:25