ffmpeg export video from png sequence is not correct

chrislearn

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

test.rto.im/ffmpeg/test/frame_0002.png

test.rto.im/ffmpeg/test/frame_0003.png ....

Gyan

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

ffmepg video from uneven sequence of png images

From Dev

FFmpeg: Fade in and out from PNG generated video

From Dev

Producing lossless video from set of .png images using ffmpeg

From Dev

Adobe Illustrator export PNG Sequence

From Dev

Android ffmpeg: create video from sequence of images using jni

From Dev

Create video from a growing image sequence using FFMPEG

From Dev

FFmpeg drops frames when encoding a png image sequence into an x264 mp4 video

From Dev

Update PNG overlay on video with ffmpeg

From Dev

ffmpeg .iff image sequence to video

From Dev

ffmpeg not making the correct video size

From Dev

FFMPEG Add 2 watermarks (txt + png) to a video

From Dev

ffmpeg: overlay a png image on a video with custom transparency?

From Dev

FFMPEG - zoom an overlaid PNG in the centre of a video

From Dev

FFMPEG - Convert png's to video files

From Dev

Extract transparent png in .mov video without ffmpeg

From Dev

FFmpeg Using Java Runtime to Make Video From PNG on Mac with Spaces in Directory Names

From Dev

FFMPEG images to video with reverse sequence with other filters

From Dev

ffmpeg - convert image sequence to video with reversed order

From Dev

How to overlay a transparent PNG over video and scale to video size in FFmpeg

From Dev

Create video from image sequence

From Dev

Lossless VP9 Webm Encoding of PNG Sequence with Alpha in FFmpeg

From Dev

Is it possible to compress alpha and RGB channels of PNG sequence separately with FFmpeg?

From Dev

ffmpeg resize PNG image sequence using alpha padding

From Dev

Extract alpha from video ffmpeg

From Dev

Make a clip from a video with FFMPEG

From Dev

[FFmpeg on Windows]: help me converting a set of .png files to a video file

From Dev

How to overlay a png to piped video source with audio mixed in via ffmpeg?

From Dev

Overlay image on video using ffmpeg with adjustable png image

From Dev

Incomplete video when using ffmpeg to weave WAV and PNG

Related Related

  1. 1

    ffmepg video from uneven sequence of png images

  2. 2

    FFmpeg: Fade in and out from PNG generated video

  3. 3

    Producing lossless video from set of .png images using ffmpeg

  4. 4

    Adobe Illustrator export PNG Sequence

  5. 5

    Android ffmpeg: create video from sequence of images using jni

  6. 6

    Create video from a growing image sequence using FFMPEG

  7. 7

    FFmpeg drops frames when encoding a png image sequence into an x264 mp4 video

  8. 8

    Update PNG overlay on video with ffmpeg

  9. 9

    ffmpeg .iff image sequence to video

  10. 10

    ffmpeg not making the correct video size

  11. 11

    FFMPEG Add 2 watermarks (txt + png) to a video

  12. 12

    ffmpeg: overlay a png image on a video with custom transparency?

  13. 13

    FFMPEG - zoom an overlaid PNG in the centre of a video

  14. 14

    FFMPEG - Convert png's to video files

  15. 15

    Extract transparent png in .mov video without ffmpeg

  16. 16

    FFmpeg Using Java Runtime to Make Video From PNG on Mac with Spaces in Directory Names

  17. 17

    FFMPEG images to video with reverse sequence with other filters

  18. 18

    ffmpeg - convert image sequence to video with reversed order

  19. 19

    How to overlay a transparent PNG over video and scale to video size in FFmpeg

  20. 20

    Create video from image sequence

  21. 21

    Lossless VP9 Webm Encoding of PNG Sequence with Alpha in FFmpeg

  22. 22

    Is it possible to compress alpha and RGB channels of PNG sequence separately with FFmpeg?

  23. 23

    ffmpeg resize PNG image sequence using alpha padding

  24. 24

    Extract alpha from video ffmpeg

  25. 25

    Make a clip from a video with FFMPEG

  26. 26

    [FFmpeg on Windows]: help me converting a set of .png files to a video file

  27. 27

    How to overlay a png to piped video source with audio mixed in via ffmpeg?

  28. 28

    Overlay image on video using ffmpeg with adjustable png image

  29. 29

    Incomplete video when using ffmpeg to weave WAV and PNG

HotTag

Archive