View Single Post
Old 27th January 2015, 02:41   #3  |  Link
Hello, World
Registered User
 
Join Date: Oct 2014
Posts: 7
Quote:
Originally Posted by foxyshadis View Post
So why not just use mkvmerge, if it works? Without any description of how you're doing it, it's impossible to guess what you're doing wrong.
It's because I am not going to mux on a PC.

My generated mkv files have a structure very similar to a normal mkv file - a EBML & a Segment. For the segment, there are a SeekHead, a Tags, a Info, a Tracks, some Cluster blocks and a CUES. The difference to a normal mkv file may be in cluster. For some reasons, I wanna pack 1 video frame and 1 audio block in a cluster. The mkv files are in 20fps with a 16k sampling rate PCM. So, in one cluster, there are a video frame (i.e. 1 NALU for non-ref frame) and a audio block with 800 samples.

Simple Block Header for the video block and the audio block in a cluster (suppose the Timecode is 0):
video: 0x81 0x00 0x00 0x80
audio: 0x82 0x00 0x00 0x84 0x0F (0x0F means 16 frames)

I am sure that it's not the offset problem and those mkv analyzer, like Elecard, can analyze my videos.

Thanks!

Last edited by Hello, World; 27th January 2015 at 02:59.
Hello, World is offline   Reply With Quote