ctl-tx
23rd March 2009, 07:10
I would like to append two h264 videos in mkv containers together. But there's a slight problem in that one of the videos was encoded using a custom quantization matrix while the other wasn't. This created a private data mismatch when I joined the videos together, resulting in the video becoming unwatchable. Of the possible solutions I can think of to get around this problem, I can only implement the one I consider the worst. Can anyone help me with this problem? By the way, I don't have access to the originals of these videos, or the matrix. I have only the resulting mkvs to work with. I have MeGUI for encoding, if that's what it takes.
The possible solutions I was able to think of are:
1. Reencode both videos. Takes too long and would degrade the quality of the videos. But this is the only one I can do at this time. Is there a way to make MeGUI do a "null" encoding job that does nothing to the video but strips out the CQM data?
2. Read the CQM data from the first video and use it to encode the other. Of the programs I've looked into to do this, neither were adequate. AVInaptic wasn't able to read the full CQM, 2 or more of the matricies used (when I encoded a few videos with CQM as a test) didn't appear. Restream only works with Mpeg2 elemental streams. I can only extract h264 elemental streams from the mkv. Can anyone tell me a better program for reading the CQM data in a h264 video? Preferably one that works even with the video in an mkv container.
While we're at it, can anyone tell me how to properly format the CQM data for use by MeGUI? I copied the format I saw on some posts on this board, but I'm not sure if it was fully compatible with MeGUI.
3. Remove the CQM data from the first video. Restream is said to be able to do this, but as I mentioned, it only works with Mpeg2 elemental streams. Can anyone recommend me another program?
I would be most grateful for any help you can provide.
The possible solutions I was able to think of are:
1. Reencode both videos. Takes too long and would degrade the quality of the videos. But this is the only one I can do at this time. Is there a way to make MeGUI do a "null" encoding job that does nothing to the video but strips out the CQM data?
2. Read the CQM data from the first video and use it to encode the other. Of the programs I've looked into to do this, neither were adequate. AVInaptic wasn't able to read the full CQM, 2 or more of the matricies used (when I encoded a few videos with CQM as a test) didn't appear. Restream only works with Mpeg2 elemental streams. I can only extract h264 elemental streams from the mkv. Can anyone tell me a better program for reading the CQM data in a h264 video? Preferably one that works even with the video in an mkv container.
While we're at it, can anyone tell me how to properly format the CQM data for use by MeGUI? I copied the format I saw on some posts on this board, but I'm not sure if it was fully compatible with MeGUI.
3. Remove the CQM data from the first video. Restream is said to be able to do this, but as I mentioned, it only works with Mpeg2 elemental streams. Can anyone recommend me another program?
I would be most grateful for any help you can provide.