Programatically remove chunks from a video file?
I need to remove sections from video files (from the middle and the end) on the command-line. Generally these will be mp4 and avi files.
For instance, I have a .mp4 file which is 32:30 minutes long. I'd like to remove from 2:49 to 3:20, and remove the last 60 seconds. Any ideas on how I can achieve this? |
You can use mencoder for this. You can extract pieces from the file, eg:
Code:
mencoder input.mp4 -oac copy -ovc copy -ss 0 -endpos 169 -o piece1.mp4 You can then use mencoder to join the result pieces together, eg: Code:
mencoder piece1.mp4 piece2.mp4 -oac copy -ovc copy -o output.mp4 You could also consider using mpgtx. _______________ the problem with google isn't the lack of useful results, it is just finding them amid all the flotsam. |
All times are GMT -5. The time now is 03:51 AM. |