Ffmpeg PNG to mp4 - Black screen
1 answer
Adding -pix_fmt yuv420p
should solve the problem:
ffmpeg -i input_%03d.png -pix_fmt yuv420p movie.mp4
From the FFmpeg Wiki :
"By default, when using libx264 and depending on your input, ffmpeg will try to avoid color subsampling. Technically this is preferable, but unfortunately, almost all video players, excluding FFmpeg-based Players, and many online video services only support the YUV color space with oversampling 4: 2: 0 color.
Using options
-pix_fmt yuv420p
or-vf format=yuv420p
will maximize compatibility. "
+7
source to share