Linux

Cutting audio or video using ffmpeg

If you have installed ffmpeg on your linux box with dependencies installed as well, it is easy to cut video clips out of the original video using ffmpeg. This is useful when creating clips from your favorite movie scenes. It works for audio files as well like mp3. Below is the command.

The example command below cuts the video starting from 00:13:49 and ends at 00:14:03.

ffmpeg -i video-file.mp4 -ss 00:13:49 -c copy -t 14 video-file-opening-scene.mp4

The -ss parameter specifies where to start cutting the video. The -t parameter specifies how many seconds to cut from the starting point.

That’s it.

Leave a reply

Your email address will not be published. Required fields are marked *