PDA

View Full Version : mkvmerge doesn't split episodes properly based on timecode entered


xanas3712
25th August 2007, 04:55
EDIT: ok I realize now that this is probably due to not having a keyframe on the exact spot I want.. so I guess keyframes can be a few seconds off (I'm not aware of these issues to that extent). This being the case is there anyway I can specify or force keyframes to be at specific points to get around this?

As stated in the title, for some reason mkvmerge on my video is splitting it up into segments that aren't the length I entered, which is
00:23:28.167

Rather than doing that some of them are 23:32, 23:26, 23:22 and so on.

If I enter the timecodes as a list instead, it works better but it still doesn't work completely, it fails to make the lengths correct on the last episodes, making #5 23:36 and #6 23:32

00:23:28.167
00:46:56.333
01:10:24.500
01:33:52.667
01:57:20.833

Are the times I'm setting for the episode splits to occur, this is based on the length of the non-split mkv file being
02:20:49

I'd appreciate any help with this. If I can get this to work I almost have a completely working script to properly parse the timecodes from dvdxchap, convert them into timecodes for a multiple angle dvd (by subtracting the duplicate cell timecodes), and then I gradually adjust the timecodes where the chapter splits differ slightly from the expected length (I had to do this because for some odd reason there is a slight drift to the timecodes, if I view the file I've confirmed that the episodes are all within about a half a second of being 23:28 in length, but the timecodes I get after cell adjustments are..)
00:23:29.101
00:46:58.674
01:10:26.560
01:33:55.426
01:57:23.703

Time codes before cell subtraction adjustment (just so you can see how these are WAY off, while my adjustment routine almost does it right)
00:27:50.796
00:57:06.367
01:24:28.134
01:53:25.768
02:22:20.869
02:50:23.269

The dvd I'm encoding in this case is solty-rei volume 1, which is a 6 episode anime dvd.

If anyone has more insight on linux/windows tools I can use here to properly get the lengths of the episodes/chapters (I'd like to keep the chapters, being that I've spent so ridiculously long on it, but episode breaks are more important) I'd appreciate. I haven't found a tool that is designed for transcoding dvd anime that automatically accounts for crop parameters/episode splits, etc.

In all honesty I've probably spent more time trying to figure out how to do it then I could possibly have spent in just doing this all manually! But aside from some of the frustrations of a lack of information it's been a bit fun trying to solve the problem. But I'm getting to the end of my wits on these last bits.

--- sorry forgot to mention version
I was using 1.8.1 of mkvtoolnix, libmatroska 0.8, and I upgraded to 0.81 matroska/2.1.0 but using matroska 2.1.0 always errors out on me with a status code -1 (using mmg) , so I just downgraded to 2.0.2 which is what I'm currently using