hello_hello
8th August 2013, 20:29
I'd assume if I encode the same video twice using the same encoder settings I should be able to append the two encoded videos without any problem?
Would it be safe to assume if I encode the same video twice while only using a different CRF value each time, or using CRF for one encode and 2 pass for the second, I should still be able to append the encodes?
Logically to me the answer would be yes each time, however it seems while at one stage the answer might have been yes, at some point that changed.
The end of a previous discussion on the topic of appending encodes. (http://forum.doom9.org/showthread.php?p=1619425#post1619425)
Generally the error offered by MKVMergeGUI is something like this:
"Warning: The track number 0 from the file 'D:\video1.mkv' can probably not be appended correctly to the track number 0 from the file 'D:\video2.mkv': The codec's private data does not match (lengths: 42 and 42)."
Aside from the fact the warning seems to indicate the codec's private data does match, the problem seems to relate to the MKV container but I'm not sure it's an MKVMerge problem.
If I encode the videos as per the examples at the beginning of this post, the only way all of those encodes would append correctly would be if the encoder output was rawavc each time. If the encoder output is MKV, they won't. One exception would be two encodes using the same settings and CRF value. They'll still append correctly if the encoder output is MKV. If the CRF value is different, they won't.
What I don't understand is if the encoder output is MKV and I extract the video from it as a raw stream, the raw streams can be appended, but while inside an MKV, MKVMergeGUI produces the above error.
Likewise I can take 2 raw streams which append together fine, mux them into individual MKVs, then try to append those MKVs with MKVMergeGUI to find they'll no longer append.
Does anyone know what it is about x264 video inside an MKV which effects it's ability to be appended when as a raw stream it'd append fine?
I'd have assumed this is a MKVMerge problem except for the fact the same applies to the x264 encoder's direct MKV output. That and the fact the poster in the thread I linked to tested older versions of the x264 encoder and found the problem hasn't always existed.
Anyone know what's going on? And can offer a not too technical explanation? :)
Would it be safe to assume if I encode the same video twice while only using a different CRF value each time, or using CRF for one encode and 2 pass for the second, I should still be able to append the encodes?
Logically to me the answer would be yes each time, however it seems while at one stage the answer might have been yes, at some point that changed.
The end of a previous discussion on the topic of appending encodes. (http://forum.doom9.org/showthread.php?p=1619425#post1619425)
Generally the error offered by MKVMergeGUI is something like this:
"Warning: The track number 0 from the file 'D:\video1.mkv' can probably not be appended correctly to the track number 0 from the file 'D:\video2.mkv': The codec's private data does not match (lengths: 42 and 42)."
Aside from the fact the warning seems to indicate the codec's private data does match, the problem seems to relate to the MKV container but I'm not sure it's an MKVMerge problem.
If I encode the videos as per the examples at the beginning of this post, the only way all of those encodes would append correctly would be if the encoder output was rawavc each time. If the encoder output is MKV, they won't. One exception would be two encodes using the same settings and CRF value. They'll still append correctly if the encoder output is MKV. If the CRF value is different, they won't.
What I don't understand is if the encoder output is MKV and I extract the video from it as a raw stream, the raw streams can be appended, but while inside an MKV, MKVMergeGUI produces the above error.
Likewise I can take 2 raw streams which append together fine, mux them into individual MKVs, then try to append those MKVs with MKVMergeGUI to find they'll no longer append.
Does anyone know what it is about x264 video inside an MKV which effects it's ability to be appended when as a raw stream it'd append fine?
I'd have assumed this is a MKVMerge problem except for the fact the same applies to the x264 encoder's direct MKV output. That and the fact the poster in the thread I linked to tested older versions of the x264 encoder and found the problem hasn't always existed.
Anyone know what's going on? And can offer a not too technical explanation? :)