Multiplex Digital

Multiplex Digital Contact information, map and directions, contact form, opening hours, services, ratings, photos, videos and announcements from Multiplex Digital, Social Media Agency, Wah.

18/07/2024

Splitting a video file in sections using ffmpeg at cli

Consider a file named 'x.mp4'. Let's suppose the video file is wrapped in a MPEG-4 container coded with H.264 and AAC audio.

To split the file and keep the file in the most commonly used MPEG-4 container, we could use the following command:

ffmpeg -ss 00:04:00 -i x.mp4 -to 00:10:00 -c copy x_part1.mp4

The above command has a starting point at the fourth minute in the video (00:04:00) and it has an ending point at the tenth minute (00:10:00).

Let's suppose we would like to cut off a specific section of the video from a point until the end of it, we could use:

ffmpeg -ss 00:12:00 -i x.mp4 -c copy x_part2.mp4

The above command will create a new video that starts from the 12th minute of the original file uptil the end of it.

Address

Wah

Alerts

Be the first to know and let us send you an email when Multiplex Digital posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share