I am trying to find the best way to automatically concatenate a large number of files that have been recorded with an overlap within them. In the process of 'glueing' the video files together, to get a smooth playback, I need to strip 5 frames from the end (or from the beginning) of each clip.

This post suggests a few ways of concatenating the files, and this post on processing a timelapse video has an excellent advise on using filters for truncating media. But I am wondering whether I could avoid re-encoding at all? All files are in the same format.

The ideal answer would include an ffmpeg command.

Thank you in advance!

  • 1
    See video.stackexchange.com/q/25096
    – Gyan
    Nov 17 '20 at 6:54
  • Thank you, @Gyan, that is very close. I looked through the manual and couldn't find a way to specify a relative ("from beginning to 3 frames from the last frame") way of defining the outpoint. Is that possible if you don't know the duration of the clip?
    – Tony Sepia
    Nov 18 '20 at 14:28
  • 1
    No, outpoint has to be measured in seconds from start.
    – Gyan
    Nov 18 '20 at 14:47
  • OK, thank you! Will use workarounds and assumptions ;)
    – Tony Sepia
    Nov 18 '20 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.