Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 15
    ffmpeg -i inputFile -c copy -ss 00:09:23 -to 00:25:33 outputFile simpler version
    – nwgat
    Commented Nov 20, 2016 at 16:37
  • 6
    I had to use ffmpeg -ss 00:01:00 -i video.mp4 -to 00:02:00 -c copy -copyts cut.mp4 version (with -copyts), otherwise it cut incorrectly (with black screen in the beginning). Thanks for the 2nd link though. Commented Jan 12, 2018 at 15:51
  • 3
    This is great, the last thing I wanted was calculating the duration from endpoints. Commented May 11, 2018 at 9:50
  • 2
    The -to option answers the question that was actually asked. The rest of the answers are either impertinent or obsolete. Commented May 15, 2018 at 15:35
  • @Necronomicron but timestamps may not be appropriate with that variant.
    – jarno
    Commented Apr 2, 2020 at 23:33