Log in

View Full Version : editting a *.mkv (h264 version)


dani82
12th July 2006, 09:49
a have a couple of anime series in *.mkv format that i want to edit out the intro & credit (it save about 30% in space), but when i loaded into virtualdubmod, it get this:

(short version)
[!] MKV: A frame of stream 1 (at 290957 ms) had only a forward reference (maybe broken file).

[!] MKV: Video frames seems to be weirdly ordered.

[!] Couldn't locate decompressor for format 'ÿÿÿÿ' (unknown).
VirtualDub requires a Video for Windows (VFW) compatible codec to decompress video. DirectShow codecs, such as those used by Windows Media Player, are not suitable. Only 'Direct stream copy' is available for this video.

now, here's where a certain member (not saying who), would suggest that i do it over again, but this time not to encode those parts, unfortunately i can't, they're (currently, unlicensed) fansubs

here's were a plead for help regardless of the situation, rather pointless (dead before it even hit the floor), but there's always hope

i aware of my last encounter, so no need to bring back the past

if this gets locked or deleted, just remember, this is nowhere near FR#6 or Newbies' Announcement

gameplaya15143
19th July 2006, 23:51
step1: demux the mkv, and fiddle around untill you get the h264 video stream in an avi (that raw h264 to avi program might come in handy here)

step2: rig up ffdshow/ffvfw to decode h264 (this wont be necessary if you know what frames to 'cut' at), make sure you start on a keyframe

step3: direct stream copy (might be a decent idea to mux the audio into the avi so you can cut out the unwanted audio too)

step4: fix the subs (i assume they are softsubs, if not then you should be all set)

step5: mux it all back together

wiak
23rd July 2006, 03:17
make a .avs file > put directshowsource("file.mkv") into .avs file > get a fast decoder like coreavc > drop in into vdub :)

dani82
2nd August 2006, 08:29
okay, i'd tried both suggestions (and now, with my tail between my legs, i'd came back requesting some more help), and now i seem to be getting this error message in virtualdubmod:

Avisynth open failure:
DirectShowSource: Could not open as a video or audio.

Video returned: "DirectShowSource: couldn't open file i:\anime\nana\track1.h264:
Class no registered"

Audio returned: "DirectShowSource: couldn't open file i:\anime\nana\track1.h264:
Class no registered"

(I:\Anime\NANA\09.avs. line 6)

MeteorRain
2nd August 2006, 14:18
man, first you should try to open the MKV file w/ avisynth, not the h.264 raw file. directshowsource don't accept h.264 raw file format.

and if you'd like to edit it w/o recompressing, you should use avc2avi (IIRC) to mux the h.264 raw into avi, and edit it in VDubMod.

MR

bond
2nd August 2006, 19:06
1) demux the raw stream from mkv with mkvextract
2) mux into mp4 with mp4box
3) edit the mp4 in avidemux (similar gui than virtualdubmod)

kakomu
8th August 2006, 23:13
I have a similar problem with a file I recently encoded. I typically use ogg audio in MKV (since I've not been happy with AAC audio). Will I have to manually edit the ogg file?