I have two avi videos and I want to make a third one merged like this: videoC = the latest 5 sec of videoA + all the videoB Also, the videoA could be opened and recording from a webcam, so I could not know which is its length. How could I do this with ffmpeg? thank you