[FFmpeg-user] ffmpeg overlay last frame remaining in video
chorton at hotsalsainteractive.com
Sun Aug 23 23:36:06 CEST 2015
Have an issue where an overlay video has it's last frame remaining in the output video until the full video is complete. The full video is 10 seconds and the overlay video is 5 seconds. the overlay starts at the beginning of the video.
myoverlay.mov is 5 seconds myvideo.mp4 is 10 seconds
final video (outputvideo.mp4) shows the last frame of myoverlay.mov "stuck" in the video for the remaining 5 seconds
desired: when the overlay is finished, should just go away and the remainder of the 5 seconds of the video continue without seeing anything from the overlay.
ffmpeg -y -i myvideo.mp4 -r 30 -itsoffset 00:00:00.000 -i myoverlay.mov -filter_complex [1:v]scale=640:360[ovrl], [0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[outa] -map [outv] -map [outa] -c:v libx264 -vcodec mpeg4 -r 30 -strict experimental -b:v 1500000 outputvideo.mp4
More information about the ffmpeg-user