Search code examples
ffmpeg

ffmpeg command to extract first two minutes of a video


What would be the simplest ffmpeg command to truncate the video to the first two minutes (or do nothing if the video is less than two minutes) ? It can do a pass-through on any of the initial video settings.


Solution

  • $ ffmpeg -i in.mov -ss 0 -t 120 out.mov