[FFmpeg-user] How to extract frames and re-insert to video ?

Lou lou at lrcd.com
Tue Sep 15 20:38:09 CEST 2015


On Tue, 15 Sep 2015 00:14:25 -0700 (PDT)
ankur456799 <ankur456799 at gmail.com> wrote:

> Hi i want to know that how can i extract some frames and re-insert again the
> video..?
> 
> example:- i have a video 5 minutes and i want to extract frame between  1 -
> 2 minutes and re-insert it again after some changes..
> 
> currently i am doing that process takes more time.. i am overlaying some
> images on video its takes lots of time i.e i need some fast way to do this..
> 
> Thanks in advance

If you just want to overlay a video during a specific time (untested
examples):

ffmpeg -i main -i overlay -filter_complex \
"[1:v]setpts=PTS+60/TB[fg];[0:v][fg]overlay=enable='between(t,60,120)':eof_action=pass" \
output

or perhaps:

ffmpeg -i main -itsoffset 60 -i overlay -filter_complex \
"[0:v][1:v]overlay=enable='between(t,60,120)':eof_action=pass" \
output

You didn't provide any info about your inputs or your ffmpeg build, so
I assumed you had no audio.

As you are unsubscribed I CCd you, but check the archives for other
replies:
<http://ffmpeg.org/pipermail/ffmpeg-user/2015-September/thread.html>


More information about the ffmpeg-user mailing list