当前位置:网站首页>AVC1与H264的区别
AVC1与H264的区别
2022-07-05 12:51:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
今天上网时偶尔发现这个在我脑海里疑惑的问题的答案。
H.264 Video Types
The following media subtypes are defined for H.264 video.
Subtype | FOURCC | Description |
---|---|---|
MEDIASUBTYPE_AVC1 | ‘AVC1’ | H.264 bitstream without start codes. |
MEDIASUBTYPE_H264 | ‘H264’ | H.264 bitstream with start codes. |
MEDIASUBTYPE_h264 | ‘h264’ | Equivalent to MEDIASUBTYPE_H264, with a different FOURCC. |
MEDIASUBTYPE_X264 | ‘X264’ | Equivalent to MEDIASUBTYPE_H264, with a different FOURCC. |
MEDIASUBTYPE_x264 | ‘x264’ | Equivalent to MEDIASUBTYPE_H264, with a different FOURCC. |
The main difference between these media types is the presence of startcodes in the bitstream. If the subtype is MEDIASUBTYPE_AVC1, thebitstream does not contain start codes.
H.264 Bitstream Without Start Codes
The MP4 container format stores H.264 data without start codes.Instead, each NALU is prefixed by a length field, which gives thelength of the NALU in bytes. The size of the length field can vary, butis typically 1, 2, or 4 bytes.
When start codes are not present in the bitstream, the following media type is used.
Major type | MEDIATYPE_Video |
---|---|
Subtype | MEDIASUBTYPE_AVC1 |
Format type | FORMAT_MPEG2Video |
The format block is an MPEG2VIDEOINFO structure. This structure should be filled in as follows:
- hdr: A VIDEOINFOHEADER2 structure that describes the bitstream. No color table is present after the BITMAPINFOHEADER portion of the structure, and biClrUsed must be zero.
- dwStartTimeCode: Not used. Set to zero.
- cbSequenceHeader: The length of the dwSequenceHeader array in bytes.
- dwProfile: Specifies the H.264 profile.
- dwLevel: Specifies the H.264 level.
- dwFlags: The number of bytes used for the length field that appears before each NALU. The length field indicates the size of the following NALU in bytes. For example, if dwFlags is 4, each NALU is preceded by a 4-byte length field. The valid values are 1, 2, and 4.
- dwSequenceHeader: A byte array that may contain sequence parameter set (SPS) and picture parameter set (PPS) NALUs.
The MP4 container might contain sequence parameter sets (SPS) orpicture parameter sets (PPS) as special NAL units in file headers or ina separate stream (distinct from the video stream). When the format isestablished, the media type can specify SPS and PPS NAL units in the dwSequenceHeader array. If cbSequenceHeader is greater than zero, dwSequenceHeaderis the start of a byte array containing SPS and PPS NALUs, delimited by2-byte length fields, all in network byte order (big-endian). It ispossible to have both SPS and PPS, only one of these types, or none.The actual type of each NALU can be determined by examining thenal_unit_type field of the NALU itself.
When this media type is used, each media sample starts at thebeginning of a NALU, and NAL units do not span samples. This enablesthe decoder to recover from data corruption or dropped samples.
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/149593.html原文链接:https://javaforall.cn
边栏推荐
- 实现 1~number 之间,所有数字的加和
- 初次使用腾讯云,解决只能使用webshell连接,不能使用ssh连接。
- RHCSA7
- Navigation property and entityset usage in SAP segw transaction code
- Rocky基础知识1
- Le rapport de recherche sur l'analyse matricielle de la Force des fournisseurs de RPA dans le secteur bancaire chinois en 2022 a été officiellement lancé.
- I'm doing open source in Didi
- #yyds干货盘点#js截取文件后缀名
- From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
- Install rhel8.2 virtual machine
猜你喜欢
逆波兰表达式
How to protect user privacy without password authentication?
Get to know linkerd project for the first time
Taobao short videos are automatically released in batches without manual RPA open source
Introduction aux contrôles de la page dynamique SAP ui5
DNS的原理介绍
滴滴开源DELTA:AI开发者可轻松训练自然语言模型
SAP UI5 DynamicPage 控件介紹
Cf:a. the third three number problem
RHCSA5
随机推荐
Principle and configuration of RSTP protocol
SAP UI5 ObjectPageLayout 控件使用方法分享
RHCAS6
使用 jMeter 对 SAP Spartacus 进行并发性能测试
手把手带你入门Apache伪静态的配置
NFT: how to make money with unique assets?
SAP ui5 objectpagelayout control usage sharing
Free testing of Taobao tmall API order and flag insertion remark interface
Setting up sqli lab environment
你的下一台电脑何必是电脑,探索不一样的远程操作
Get to know linkerd project for the first time
MySQL splits strings for conditional queries
Difference between JUnit theories and parameterized tests
实战模拟│JWT 登录认证
非技术部门,如何参与 DevOps?
函数的默认参数&函数参数的多种方法
自然语言处理系列(一)入门概述
Default parameters of function & multiple methods of function parameters
关于 SAP UI5 floating footer 显示与否的单步调试以及使用 SAP UI5 的收益
Navigation property and entityset usage in SAP segw transaction code