-t before the first input is indicating we only want 20 seconds of this stream -ss before the third input indicates to start reading from the stream at twenty seconds in
There might be some overlap when the first section of video 1 end and starts back up again after video 2. With most formats, ffmpeg can't seek exactly to what time you specify, only the closet seek point.
This will add a fade out to the end of the first section, a fade in to the start of the second section, a fade out at the end of the second section, and finally a fade in to the start of the last section.
This should mimic the effect of an actual scene transition
Try something like this and see what you get, this does a re-encode though:
-t
before the first input is indicating we only want 20 seconds of this stream-ss
before the third input indicates to start reading from the stream at twenty seconds inThere might be some overlap when the first section of video 1 end and starts back up again after video 2. With most formats, ffmpeg can't seek exactly to what time you specify, only the closet seek point.
thank you, this works perfectly final question how can I introduce a fadeIn and fadeOut to the video being inserted?
Try something like this, might need tweaking.
This will add a fade out to the end of the first section, a fade in to the start of the second section, a fade out at the end of the second section, and finally a fade in to the start of the last section.
This should mimic the effect of an actual scene transition
You notice that the argument I passed in for the
st
value of the fade filters for the fade out effects is basically equal to