You are not logged in.
I have 4 roughly hour-long videos copied from DVD which I need to split into 15-minute segments (to upload to YouTube). I would like to do this without reencoding if possible. Google found me a tool called "mpg2cut2", but it seems to only work in Windows (crashed in Wine). Any suggestions?
Offline
I believe avidemux should be able to do this, however I have experienced audio syncing issues when dealing with ripped vob files from DVDs. Avidemux allows you to adjust the audio timing, but just be aware to check it.
EDIT, just noticed you have them in MPEG format, so shouldn't be an issue, but doesn't hurt to check.
Last edited by damacas (2011-06-10 15:42:00)
Offline
i've used dvbcut (http://dvbcut.sourceforge.net/) on my mpg files. Simple and lossless. Don't know if it's in the repos though. But it compiles easily.
EDIT: it's in AUR:
aur/dvbcut 0.6.0-4
Qt3 application for cutting parts out of DVB streams
Last edited by swanson (2011-06-10 16:17:22)
Offline
Thanks for the replies. I installed avidemux and it seems to work fine. I haven't been able to detect any A/V sync problems, either.
Offline
The command line way to do it is:
ffmpeg -ss <start time in hh:mm:ss.whatever format>-t <duration in hh:mm:ss.whatever format>-i in.mpeg -acodec copy -vcodec copy out.mpeg
In the cut this produces, you can end on whatever frame you want but you can NOT start on whatever frame you want! The "-ss" argument will round to the nearest keyframe and I've checked... avidemux does this too.
To have a frame exact splitting (copy everything and only do a small amount of re-encoding in the vicinity of the cut) you need something like dvbcut. I am not sure if there is a more modern replacement for that. Either that or manually identify which pieces need to be re-encoded and join those peices onto what you copy.
As someone who has had many painful experiences rejoining split files that I download from youtube, I must say this: please look into frame exact splitting. Using avidemux or something similar will result in files that have annoying overlap upon rejoining.
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline