I have a PNG
sequence with transparent background.
When I use Adobe Media encoder to export to an MP4
file, the result is correct.
But when I use FFmpeg
to export the MP4
file, this result is very strange.
This is the command I used:
ffmpeg -i test/frame_%04d.png -pix_fmt yuv444p -c:v libx264 -y ffmpeg_test.mp4
Media Encoder: http://test.rto.im/ffmpeg/media_encoder_test.mp4
FFMPEG: http://test.rto.im/ffmpeg/ffmpeg_test.mp4
All images file: test.rto.im/ffmpeg/test.zip
test.rto.im/ffmpeg/test/frame_0001.png
Your PNG frames are unmatted. So, you'll have to premultiply them to get the same result.
ffmpeg -i frames%d.png -vf premultiply=inplace=1 -pix_fmt yuv444p matted.mp4
The premultiply
filter was added in Dec 2016, so you'll need a recent version.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments