在mdat MP4中解析H264 [英] Parsing H264 in mdat MP4

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

问题描述

我有一个仅在MP4容器中包含mdat原子的文件. mdat中的数据包含AVC数据.我知道数据的编码参数.该格式似乎不是附件B字节流格式.我想知道我将如何去解析它.我尝试搜索切片头,但是运气不佳.

I have a file that only contains the mdat atom in a MP4 container. The data in the mdat contains AVC data. I know the encoding parameters for the data. The format does not appear to be in the Annex B byte stream format. I am wondering how I would go about parsing this. I have tried searching for the slice header, but have not had much luck.

是否可以在没有NAL的情况下解析切片?

Is it possible to parse the slices without the NAL's?

推荐答案

"MDAT"部分中的AVC NAL单元采用以下格式: [4个字节] = NAL长度,网络顺序; [NAL字节] 很快,开始代码就被长度代替了.

AVC NAL units are in the following format in MDAT section: [4 bytes] = NAL length, network order; [NAL bytes] Shortly, start codes are simply replaced by lengths.

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

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