本文主要是介绍fmp4格式解析,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
一个典型的fmp4格式如下
sidx box(segment index):
SidxBox:
unsigned int(32) size;
int(32) type;
if (size==1) {unsigned int(64) largesize;
}
unsigned int(8) version;
bit(24) flags;
unsigned int(32) reference_ID;
unsigned int(32) timescale;
if(version == 0) {unsigned int(32) earliest_presentation_time;unsigned int(32) first_offset;
}
if(version == 1) {unsigned int(64) earliest_presentation_time;unsigned int(64) first_offset;
}
unsigned int(16) reserved;
unsigned int(16) reference_count;for (i=0; i < reference_count; i++) {bit(1) reference_type;unsigned int(31) referenced_size;unsigned int(32) subseg
这篇关于fmp4格式解析的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!