Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a simple Linux program that allows for video editing without reencoding? All I want to do is extract the video between time T1 and T2 and write that to a new file.

All my searches are turning up empty. I'm considering trying emacs -- copying and pasting blobs of binary.

Does a better solution exist?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

If it is mpeg2 you can use gopchop

gopchop - Fast, lossless cuts-only editor for MPEG2 video files

I think avidemux can do this as well

avidemux - a free video editor - GTK version

basically you would make your cuts and then save the output file and tell it to 'copy' rather than re-encode anything...

from the command line you can use mencoder or ffmpeg the same way. Specify the start and end times, but use 'copy' for the codecs.. something like..

ffmpeg -vcodec copy -acodec copy -ss xxx -t xxx ...
share|improve this answer
1  
I think the ability to cut at arbitrary frame boundaries might be encoding-specific. –  TREE Mar 5 '10 at 3:47
    
I've found ffmpeg usually pukes a non-monotone timestamps error when using the -vcodec copy/-acodec copy options. Avidemux is very buggy; you can get it do this if you're patient enough to try enough combinations of settings, and are willing to re-encode the audio to PCM. –  Mechanical snail Sep 6 '11 at 3:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.