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

overlay video on video in time interval

Open lbarraga opened this issue 2 years ago • 0 comments

hi, how do i overlay a video on another video in a time interval? i have this code now:

video_overlay = ffmpeg.input("overlay.mp4")
stream = stream.overlay(
       video_overlay,
       enable=f"between=(t, {start}, {end})",
       x=0,
       y=0,
       eof_action="repeat"
)

but this seems to only display the last frame of the video in the time interval

lbarraga avatar Jun 26 '23 18:06 lbarraga