Log in

View Full Version : Cutting mkv files with VirtualDubMod


w4tt4n4b3
16th September 2009, 22:28
I tried to load an mkv file (x264) on VirtualDubMod and I got some warning that in the end concluded saying that VirtualDub requires a Video for Windows compatible codec to decompress video. Only direct stream copy is available for this video.

I do not want to re-encode the file I just want to cut the ads from the video.

I know that there is Mkvmerge but I prefer to do it with an application than can let me navigate on the video and find the cutting points.
What should I do to be able to cut the video with VirtualDubMod? I have the 1.5.10.2 version of VDM.
Thanks in advance.

talen9
16th September 2009, 22:43
VDUbMod simply isn't cut (pun intended :P) for this operation ... you'll have more luck if you try with AVIDemux, I think; at least with that, if you're not satisfied with the way it splits the files, you can navigate the video and write down the splitting times ...

w4tt4n4b3
16th September 2009, 22:44
I tried Avidemux but I encountered a few problems. Should I post them here or start a new thread?

w4tt4n4b3
16th September 2009, 22:46
The whole problem starts from the h 264 ts cutter. When I use it to cut ts (h264) files, then encoding always fails. When I do not use it, encoding (x264) goes perfect but then I have the ads in the video since it is not cut...

Inspector.Gadget
16th September 2009, 22:46
Avidemux is sometimes buggy on some H.264 content. Remember what times you want to cut at, and use MKVMergeGUI's split function instead. It'll automatically cut at the nearest key frame to preserve audio sync / P- and B-frame refs.

w4tt4n4b3
16th September 2009, 22:49
At least you know any kind of player where I can use the <- and -> buttons to go forward and backwards the video but at a small frame rate so I find the right spot to cut the file?

Inspector.Gadget
16th September 2009, 22:57
Yes. Look at it in Avidemux, copy the times you see into notepad, paste them into mkvmergegui.

w4tt4n4b3
16th September 2009, 22:58
The thing is that mkvmerge will cut the video in many parts and then I have to join the files with mkv merge right?

w4tt4n4b3
16th September 2009, 22:59
Yes. Look at it in Avidemux, copy the times you see into notepad, paste them into mkvmergegui.

Avidemux loads the initial picture of the file but when I try to move the cursor it does not go to other images...
I am using MPC...

w4tt4n4b3
16th September 2009, 23:07
Thank you all.
I cut the first commercial break. The mkvmerge created 2 files.
Now how do I merge them into one file?
I added the 2 files and pressed muxing but then there is a warning again...

Inspector.Gadget
16th September 2009, 23:12
MKVMergeGUI -> "append"

w4tt4n4b3
16th September 2009, 23:15
MKVMergeGUI -> "append"

If I choose "append" I have to select a file...
You mean I add the first file and then press append and choose the second one, right?

Inspector.Gadget
16th September 2009, 23:19
That's correct.

w4tt4n4b3
16th September 2009, 23:24
But still I am doing something wrong with cutting. I went to timecodes and entered 2 timecodes, 00:32:53,00:34:05... 32:53 is where the 1st commercial starts and 34:05 is when it ends...
I joined the 2 files that emerged but still the commercial is in... It did not cut anything...or at least did not cut the commercial.

Inspector.Gadget
16th September 2009, 23:39
Don't append the middle file that contains the commercials. If you have file A, which you cut into A1(show), A2(commercials), A3(show), join A1+A3.

w4tt4n4b3
16th September 2009, 23:40
The first commercial break starts at 00:32:53 and it ends at 34:05.
So I want to remove the part 32:53 - 34:05 from the file.
I will enter 00:32:53,00:34:05 as timecodes and select 3 files which will mean that the middle one is the commercial break?
Since the middle one is the commercial I will append the 1st and 3d file...