How can I cut the first two min of a 10 min video and save it as first_2min.wmv and then the second 2 min saved as second_2min.wmv without any change to the settings of the video in Ubuntu command line? The original format of the video is wmv as well.
Asked
Active
Viewed 1,486 times
3
-
Does this answer your question? [What to use to quickly cut Audio/Video](https://askubuntu.com/questions/56022/what-to-use-to-quickly-cut-audio-video) – Quasímodo Nov 30 '20 at 18:46
2 Answers
9
You can use ffmpeg to rip the first 2 minutes, etc that you want.
ffmpeg -i 10minvideo.wmv -ss 0 -t 120 first2min.wmv
Then for the next 2 minutes it would be the same but change the -ss 0 to -ss 120:
ffmpeg -i 10minvideowmv -ss 120 -t 120 second2min.wmv
Just remember to set -ss to whatever starting seconds position you want and the -t is the amount of time you are recording from it.
Hope this helps!
Terrance
- 39,774
- 7
- 116
- 176
-
-
@MonaJalal It can be either. You can test the end of the first and the beginning of the second one. – Terrance Nov 30 '20 at 17:01
-
Also add `-c copy` before the output file name to do a stream copy, avoiding a potentially lossy reencode (although your cuts may not be as precise) – Eric Reed Nov 30 '20 at 23:24
0
If you want it with a GUI:
Use VideoCut, it is based on ffmpeg and OpenCV. Goal of this app was to eliminate the ffmpeg commandline:

By default is does not re-encode. Your choice is to use the optimized "remux" muxer or the original ffmpeg code
kanehekili
- 5,846
- 1
- 12
- 32