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

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

From Dev

ffmpeg - convert image sequence to video with reversed order

From Dev

Update PNG overlay on video with ffmpeg

From Dev

Extract alpha from video ffmpeg

From Dev

FFMPEG images to video with reverse sequence with other filters

From Dev

ffmpeg .iff image sequence to video

From Dev

Producing lossless video from set of .png images using ffmpeg

From Dev

Android ffmpeg: create video from sequence of images using jni

From Dev

Adobe Illustrator export PNG Sequence

From Dev

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

From Dev

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

From Dev

Make a clip from a video with FFMPEG

From Dev

Create video from a growing image sequence using FFMPEG

From Dev

ffmepg video from uneven sequence of png images

From Dev

ffmpeg resize PNG image sequence using alpha padding

From Dev

FFMPEG - Convert png's to video files

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 on Windows]: help me converting a set of .png files to a video file

From Dev

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

From Dev

Overlay image on video using ffmpeg with adjustable png image

From Dev

ffmpeg not making the correct video size

From Dev

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

From Dev

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

From Dev

Extract transparent png in .mov video without ffmpeg

From Dev

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

From Dev

Incomplete video when using ffmpeg to weave WAV and PNG

From Dev

Create video from image sequence

From Dev

FFmpeg: Fade in and out from PNG generated video

Related Related

  1. 1

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

  2. 2

    ffmpeg - convert image sequence to video with reversed order

  3. 3

    Update PNG overlay on video with ffmpeg

  4. 4

    Extract alpha from video ffmpeg

  5. 5

    FFMPEG images to video with reverse sequence with other filters

  6. 6

    ffmpeg .iff image sequence to video

  7. 7

    Producing lossless video from set of .png images using ffmpeg

  8. 8

    Android ffmpeg: create video from sequence of images using jni

  9. 9

    Adobe Illustrator export PNG Sequence

  10. 10

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

  11. 11

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

  12. 12

    Make a clip from a video with FFMPEG

  13. 13

    Create video from a growing image sequence using FFMPEG

  14. 14

    ffmepg video from uneven sequence of png images

  15. 15

    ffmpeg resize PNG image sequence using alpha padding

  16. 16

    FFMPEG - Convert png's to video files

  17. 17

    Lossless VP9 Webm Encoding of PNG Sequence with Alpha in FFmpeg

  18. 18

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

  19. 19

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

  20. 20

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

  21. 21

    Overlay image on video using ffmpeg with adjustable png image

  22. 22

    ffmpeg not making the correct video size

  23. 23

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

  24. 24

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

  25. 25

    Extract transparent png in .mov video without ffmpeg

  26. 26

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

  27. 27

    Incomplete video when using ffmpeg to weave WAV and PNG

  28. 28

    Create video from image sequence

  29. 29

    FFmpeg: Fade in and out from PNG generated video

HotTag

Archive