ffmpeg-python icon indicating copy to clipboard operation
ffmpeg-python copied to clipboard

How to overlay sequence of frames on video ?

Open yogeshdecodes opened this issue 3 years ago • 1 comments

I tried below but it is only showing the background video.

background_video = ffmpeg.input( "input.mp4")
overlay_video = ffmpeg.input(f'{frames_folder}*.png', pattern_type='glob', framerate=25)
subprocess = ffmpeg.overlay(
                          background_video,
                          overlay_video,
                        ).filter("setsar", sar=1)

yogeshdecodes avatar Nov 18 '22 19:11 yogeshdecodes

I also tried to assemble sequence of frames into webm video but transparency is lost. video is taking black as background. More explanation

yogeshdecodes avatar Nov 18 '22 19:11 yogeshdecodes