FFMPEG is a set of tools that allow users via the command line to convert, edit, play, and stream media files (audio & video). To be able to use FFMPEG under Ubuntu, you need to install it first with the following command:
sudo apt-get install ffmpeg
This tutorial will be about using ffmpeg via the terminal to cut a portion of a video and save it in a separate file. Extracting a desired part of a video will allow you to get only what is necessary for your needs. The extracted video can be then shared online or sent to friends, family, etc.
Open the terminal and access the folder containing the video you want to edit (use the cd command), then run this command:
ffmpeg -i video.avi -ss 00:00:50 -t 00:1:12 output.avi
- video.avi -----> Repace it with your own video file name followed by its extension.
- -ss 00:00:50 -----> Set any start time of your choice (hh:mn:ss)
- -t 00:1:12 -----> Set any end time of your choice (hh:mn:ss)
- output.avi -----> This is the name of the video that will be extracted. Rename it to whatever you want.