[FFmpeg-user] Having a hard time getting good results with mpeg2video

Nicolas Gaullier nicolas.gaullier at cji.paris
Tue Jan 9 12:45:25 EET 2024


>De : ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> De la part de MGislv via ffmpeg-user
>The command used:
>`ffmpeg -i image.jpg -i audiofile.wav -f dvd -muxrate 10080k -packetsize
>2048 -pix_fmt yuv420p -r 24000/1001 -codec:v mpeg2video -g 18 -b:v 9800k -maxrate:v 9800k -minrate:v 9800k -bufsize:v 1835008 -vf "scale=720:576:flags=lanczos:force_original_aspect_ratio=decrease,pad=720:576:(ow-iw)/2:(oh-ih)/2" 
>-codec:a pcm_dvd output.mpg`

Your output is not conformant, it contains only one video frame...
>ffmpeg -h demuxer=image2
Use "-loop 1" as an input option for example.

Also see
>ffmpeg -h encoder=mpeg2video
When encoding still pictures, encoding B frames should help, try -b_strategy 2

If you intend your dvd to be fully conformant and playable by a hardware device, do not go up to the limits : that will certainly get you to full big real blocking artefacts this time!
I have no fresh experience with it, but something like 6 Mb/s seems more reasonable.

Nicolas


More information about the ffmpeg-user mailing list