TA的每日心情 | 奋斗 2020-5-6 08:48 |
---|
签到天数: 140 天 [LV.7]常住居民III
|
我一直疑问为什么有些视频解码时显示格式是:H264,大部分又是:AVC15 Q6 U3 I& G# d- Q2 O; e% U
我在搜索编程资料时在微软的msdn上发现的:- s0 R/ L! V% h" Y1 Q# Q& f& l% Z' M
原文:http://msdn.microsoft.com/en-us/library/dd757808(v=vs.85).aspx. c+ W+ D% k) @8 x5 `
FOURCC:AVC1 描述:H.264 bitstream without start codes.
: b! B6 k2 L: w9 k FOURCC:H264 描述:H.264 bitstream with start codes.6 h m1 }+ {0 u9 l3 l' P
$ U/ u# B' G; }
- m+ I$ H h2 P, I9 s H.264 Bitstream with Start Codes
$ c2 n0 ?+ \ G7 h, \7 P) y5 I2 y0 \" R9 x4 {
H.264 bitstreams that are transmitted over the air, or contained in MPEG-2 program or transport streams, or recorded on HD-DVD, are formatted as described in Annex B of ITU-T Rec. H.264. According to this specification, the bitstream consists of a sequence of network abstraction layer units (NALUs), each of which is prefixed with a start code equal to 0x000001 or 0x00000001.
6 T8 }! [. N4 Y- q! K# p4 s这段话的大致意思是:带有开始码的H.264视频一般是用于无线发射、有线广播或者HD-DVD中的。这些数据流的开始都有一个开始码:0x000001 或者 0x00000001.- w8 D: v2 R: g \ \- [) M; a- M6 E
. k3 `& S8 U/ t
7 }. x- G% F1 s& ^* C H.264 Bitstream Without Start Codes) m5 n# G2 X+ Z3 g1 A
; H8 p2 P+ S5 p0 l
The MP4 container format stores H.264 data without start codes. Instead, each NALU is prefixed by a length field, which gives the length of the NALU in bytes. The size of the length field can vary, but is typically 1, 2, or 4 bytes.
0 k9 c$ Z8 i. j$ N$ i/ L1 o. L这段话的大致意思是:没有开始码的H.264视频主要是存储在MP4格式的文件中的。它的数据流的开始是1、2或者4个字节表示长度数据。2 m, l* k( l# n, _
原文中的"NALU"简单说是H.264格式中的最基本的单元,是一个数据包。: ]' T! h$ d- ~2 A" Z ]4 k
|
|