PDA

View Full Version : x264/mkv stream trimming ? Need help


WorBry
27th April 2008, 07:02
Just spent the last 12 hours encoding about an hour of bob-deinterlaced (50p) DV footage (in HuffYuv-YV12 format) to x264.mkv with MeGUI (using SA-Blu-Ray profile). As (my) luck would have it, with just 5 minutes to go, a power cut struck.

I was surprised to find that the x264.mkv stream rendered up to that point was intact and playable. So, rather than encoding all over, I'd like, if possible to be able to trim the stream back to a suitable point (i.e. last frame before a key I frame, ideally at a scene change), leaving me just the outstanding portion of the footage to encode, and then join the two clips into one.

I know MKVMerge can do the joining, but the splitting tool doesnt provide frame specific cutting (only by file size or time). Tried AVIDemux, but I just get a warning about x264 and B-frames and a green screen.

Would appreciate any advice on a method.

Cheers

Dark Shikari
27th April 2008, 07:18
Frame specific cutting would be pointless in MKVmerge anyways, since MKVmerge doesn't actually split on a frame; it splits on the nearest I-frame to the time you input.

But that should be sufficient; just calculate roughly the time you need to split on, split it there, then encode the rest.

WorBry
27th April 2008, 07:24
Thanks, I'll give that a go.

Edit: Yes, that worked well. Realized that VirtualDubMod could give me info on the frame type and corresponding time position, although without a visual.