Log in

View Full Version : Anyway to make MKVmerge GUI truncate on other than a key frame?


JimmyBarnes
9th July 2013, 21:01
Sometimes when I encode to x264/mkv, I forget to exclude a small unwanted section at the end.

If I use MKVmerge GUI to truncate the bit, it sometimes does it OK, but sometimes it seems to be ending the cut on a keyframe, rather than where I wanted.

This sort of thing does not happen when using VirtualDubMod on AVIs, where the truncate occurs where I want it to. So is there a way to force MKVmerge GUI to cut an MKV like that?

TIA

sneaker_ger
10th July 2013, 05:41
No, you need a different software. I don't think there's any free one available with the quality of VirtualDub. This has really been discussed quite often on here, so if you do a forum search you should be able to find a few suggestions.
http://www.solveigmm.com/en/products/video-splitter/
http://avidemux.berlios.de/

If I use MKVmerge GUI to truncate the bit, it sometimes does it OK, but sometimes it seems to be ending the cut on a keyframe, rather than where I wanted.

This should always happen - not just sometimes.

JimmyBarnes
12th July 2013, 02:04
No, you need a different software. I don't think there's any free one available with the quality of VirtualDub. This has really been discussed quite often on here, so if you do a forum search you should be able to find a few suggestions.
http://www.solveigmm.com/en/products/video-splitter/
http://avidemux.berlios.de/

Found Machete 4 which can cut on a non-key frame. It's tryware and only $20. It displays the MKV so you can select the desired cut point visually. Only indicates to a tenth of a second and not in frames unfortunately, but loads FAST unlike AVIdemux which huffs and puffs a lot before finally loading...

So I still need to use VirtualDub 1.9.11 with DShowInputDriver.vdplugin from DShowInputDriver-0.93 to open MKV files and check frame lengths etc.

This should always happen - not just sometimes.

MKVmergeGUI "sometimes" cuts where you want because the point you selected just happens to be very near a keyframe.

Selur
12th July 2013, 09:17
if the video is H.264 you can also try MKVCutter ( http://forum.selur.de/topic220-mkv-cutter-tool-to-cut-h264-mkv-files-frame-accurate.html) (small, ugly GUI I put together to cutting mkv files)

JimmyBarnes
20th July 2013, 01:55
if the video is H.264 you can also try MKVCutter ( http://forum.selur.de/topic220-mkv-cutter-tool-to-cut-h264-mkv-files-frame-accurate.html) (small, ugly GUI I put together to cutting mkv files)

Thanks for your program. It's plain but not ugly. Seems to be MKVmerge based and only cuts to keyframes. Unlike MKVmerge where given streams cen be in/excluded, it separates audio and video - why did you do that?

Selur
20th July 2013, 05:18
Thanks for your program.
Happy that you think so. :)

it separates audio and video - why did you do that?
a. because concatenation of the H.264 streams often requires the stream to be in raw format (I first tried it without extracting the video to raw but mkvmerge threw a bunch of errors when trying to concatenate the video streams.)
b. audio cutting is more precise then video cutting; so the video stream first gets cut on key frame borders and then the GOPs which require reencoding get reencoded; (audio can be cut directly)

Cu Selur