PDA

View Full Version : can you splice (or cat) x264 generated files?


scott1256ca
21st August 2008, 23:12
I have an x264 encode I was creating with megui and 3 days into the encode, with 7 hrs or so left to go, I got a power outage. Not the first time it has happened. So I wanted to try to encode the file in four or five parts and concatenate (or splice) them together when all are done, then mux in the audio for a single file.

I have looked around and don't really see what I want. Maybe I just don't know the correct terms to search for. The closest I have come is to cat the files (as in unix cat), but my tests indicate the timing of the resulting clip is wrong i.e. if I cat two files of roughly 100 seconds each, then the concatenated clip will play, but the total time of the clip is listed at 100 seconds, and although it plays into the full 200 seconds I then lose the ability to use the slider to jump to where I want to go (zoomplayer/mplayer do the same thing).

I tried mkvmerge with --link, but the resulting file just plays the first 100 seconds over and over, even though the file size would indicate both clips are in there.

I tried Yamb but the resulting file causes mplayer and zoomplayer to crash.

Is there a way to do this?

I saw another thread where people were talking about replacing a few frames in the middle of a clip to do repairs, but they start with a full clip, split it (with mkvtools) then said they spliced it back later, but didn't say how.

Any ideas would be appreciated, otherwise I'm back to spending several days on the encode.

Dark Shikari
21st August 2008, 23:13
This will work as long as x264 properly shuts down at the end of each encode (ctrl-Cing once will do this, as well as it normally finishing the encode). Both encodes also have to use the same settings.

In MKVmerge's GUI I know you can append stuff easily--its not chapter linking, its directly appending the files. You can probably just cat them too, I would think.