[FFmpeg-user] ffmpeg overlay last frame remaining in video
Chad Horton
chorton at hotsalsainteractive.com
Mon Aug 24 01:55:11 CEST 2015
Correcting my ffmpeg command a bit.
I'm also getting a "Option framerate not found." error
ffmpeg -y -i basevideo.mov -r 30 -itsoffset 00:00:00.000 -i overlayvideo.mov -filter_complex "[1:v]scale=1280:720[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 finalvideo.mp4
I remove -r 30 after basevideo.mov:
ffmpeg -y -i basevideo.mov -itsoffset 00:00:00.000 -i overlayvideo.mov -filter_complex "[1:v]scale=1280:720[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 finalvideo.mp4
and I'm not getting the error:
Unrecognized option 'filter_complex'
Failed to set value '[1:v]scale=1280:720[ovrl];[0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[outa]' for option 'filter_complex'
-----Original Message-----
From: ffmpeg-user [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Chad Horton
Sent: Sunday, August 23, 2015 2:36 PM
To: ffmpeg-user at ffmpeg.org
Subject: [FFmpeg-user] ffmpeg overlay last frame remaining in video
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.
Example:
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.
command used:
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 Thank you!
Chad
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
More information about the ffmpeg-user
mailing list