Log in

View Full Version : Can't join two clips using mkvmerge/yamb mkv/mp4


rookandpawn
28th February 2008, 12:16
GNU "Free Software" says

Free software is a matter of liberty, not price. To understand the concept, you should think of free as in free speech, not as in free beer.


Well, After some toiling and no fruit, I've come with the following definition for JOIN (concat) in mkvmerge and YAMB.

Join in a video file is the inverse of a split, not join two random things. Think of join as in a zipper, not glue.

Is this a correct statement?

-------
Here is where I need help:
I was attempting to join two mp4's.

The first mp4 was encoded x264 core 57 on megui's HQ-insane (which i now believe that profile setting is stupid. No one needs 16 reference frames, ever. Plus, it has a bitrate of 1000kbs which sort of defeats having
"16 ref frame" quality. I think the correct HQ setting is setting your bitrate based on the Q equation = 1000b/hvf >= 0.15
where you solve for b (bitrate) and h=horizontalres v=verticalres f=fps.)

The second mp4 was encoded x264 core 58, which was 6 ref frames, 6 b-frames and 3000 kbs + Turbo Switch, with no other alteration to HQ-Insane.

I did everything one could think of that was recommended in the forums, but I think joining is an ultra-picky thing. The slices/b-frames/etc.. must be the same in a join (and who knows what other minimum requirements there are for a successful join). I extracted the RAWAVC trying both mkvextract and YAMB/mp4box and joining. I converted the mp4s and the extractions into 3GP file format in some attempt for uniformity which YAMB seems to like. Etc...

Ultimately, I am stuck with two separate 264 files and no real good way to join them. Sadly, I don't have the first of my two sources, otherwise i'd simply encode the first the way I encoded the second so they join right. Avinaptc tells me how different the files are. I megui'd the first to convert to AVI and re-encoded, which works for join purposes, but the video now looks much worse (a double-encode is just awful picture.)

mkvmerge throws an error but still attempts to concat the files (giving the codec's private data does not match). mp4box/YAMB will simply mux in parallel. It feels like a no-win situation. Looking for advice.:thanks:

Guest
28th February 2008, 16:49
If they can't be joined as AVC streams, then decode them and join them in the uncompressed domain and then re-encode to AVC.