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.
$ ffmpeg -i in.mov -ss 0 -t 120 out.mov
This is an adapted version of David542's post since my edit was rejected as "completely superfluous or actively harm[ing] readability".
For extractions, it is essential to add the -c copy
flag,
ffmpeg -i in.mov -ss 0 -t 120 -c copy out.mov
what is shorthand for -vcodec copy -acodec copy
.
Otherwise ffmpeg reencodes the selection what is about 1000 times slower on my machine here and possibly alters the outcome in quality due to default settings taken.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With