Using ffmpeg to cut up video
Problem
I am using to cut out a section of a large file like this: The part works fine but the is ignored. It correctly removes the initial specified seconds specified with but then keeps going to the end of the input with the copy. Is there a way to use to cut off the end of a video without recoding it?
Error Output
ffmpeg -i input.wmv -ss 60 -t 60 -acodec copy -vcodec copy output.wmv
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Using ffmpeg to cut up video
You can use the option to specify a start timestamp, and the option to specify the encoding duration. The following would skip the first 30 seconds, and then extract the next 10 seconds to a file called : In the above command, the timestamps are in seconds ( ), but timestamps can also be in format. The following is equivalent: Note that is an output option and always needs to be specified after . Some tips: For older ffmpeg versions, if you use after , you get more accurate seeking at the expen…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix