MP4 STSD结构 [英] MP4 STSD structure

查看:410
本文介绍了MP4 STSD结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怀疑一件事.如ISO-14496-12中所述,moov/mvhd/trak/mdia/minf/stbl/stsd应包含格式特定的框,例如ISO-14496-15中所述的avc1框或ISO-14496-14中所述的mp42.但它也包含QuickTime Format规范的VideoSampleDescription中的字段,例如'version','revision_level','vendor'等.

I doubt in one thing. As described in ISO-14496-12 moov/mvhd/trak/mdia/minf/stbl/stsd should contain format specific box e.g. avc1 box described in ISO-14496-15 or mp42 described in ISO-14496-14. But it also contains fields in VideoSampleDescription from QuickTime Format specification such as 'version', 'revision_level','vendor', etc.

有人可以解释这个问题吗?

Could anyone explain this issue?

推荐答案

可以将stsd(示例描述框)视为包含其他框的框.每个样本条目也只是一个普通框:

The stsd (Sample Description Box) can be treated like a box that contains other boxes. Each Sample Entry is also just a normal box:

 4 bytes - length in total
 4 bytes - 4 char code of sample description table (stsd)
 4 bytes - version & flags
 4 bytes - number of sample entries (num_sample_entries)
 [
    4 bytes - length of sample entry (len_sample_entry)
    4 bytes - 4 char code of sample entry
    ('len_sample_entry' - 8) bytes of data
 ] (repeated 'num_sample_entries' times)
(4 bytes - optional 0x00000000 as end of box marker )

这篇关于MP4 STSD结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆