Splitting an mpeg video file

Post date: Jun 26, 2014 6:22:26 PM

Question! How to split an mpeg video file under Linux via console command.

Answer! Enter the following command (you need ffmpeg for it to work properly) into the console :

ffmpeg -vcodec copy -ss 00:00:00 -t 01:00:00 -i input.mpg output.mpg

Note! Make sure to change the orange colored text to the appropriate names for the input and output video files and also change the starting time and end time defined respectively by the -ss and -t arguments.