3

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.

Mona Jalal
  • 4,299
  • 20
  • 64
  • 96
  • 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 Answers2

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
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:

1

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