I have a video file of 30 minutes, but I want to extract a video from 00:09:23 to 00:25:33.
I can define the startposition with
-ss, but I couldn't find one for the end position. Any help please?
I think you can use the following command now.
Have a look also ffmpeg Doc
This is odd that no-one suggested the
Drop everything except the second minute of input:
Keep only the first second:
Drop everything except from second 13 to second 58:
Make sure you download a recent version of
How to cut a video, without re-encoding — fast method
Use this to cut video from
Here, the options mean the following:
Note that this command may not be frame-accurate when copying the bitstreams.
How to cut a video, without re-encoding — accurate method
If you want frame accuracy, use this instead:
However, there's one drawback. The video will have to be decoded until it reaches the position implied by
How to cut a video, with re-encoding
If you leave out the
As explained by Seeking with FFmpeg): When using
Converting end points to duration
If you need to use an old version of
You can use these two methods which work for Windows and Linux.
You can use this
Here you have to give duration of video. ie. 00:25:33-00:09:23
I use the following syntax to cut video with ffmpef:
-t is used to set the duration in seconds - you can't specify the end time but this should work for you.