TA的每日心情 | 奋斗 2020-5-6 08:48 |
---|
签到天数: 140 天 [LV.7]常住居民III
|
我一直疑问为什么有些视频解码时显示格式是:H264,大部分又是:AVC18 _/ `# u1 Y* E
我在搜索编程资料时在微软的msdn上发现的:7 m* {3 e; k6 H# z- \. [: N
原文:http://msdn.microsoft.com/en-us/library/dd757808(v=vs.85).aspx; a8 E; ]8 R/ D) O5 y3 e: k
FOURCC:AVC1 描述:H.264 bitstream without start codes.5 N+ D+ X; [& Z f# s* s
FOURCC:H264 描述:H.264 bitstream with start codes.% k* \( X/ H! M; u3 m" v
, S$ `. Q4 Q% q
: e5 m2 G" C$ R$ o H.264 Bitstream with Start Codes6 B+ m7 r: L- C* o4 ?9 h
3 T: H$ r/ q, W$ j" T
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.
% r: z" R: n" g! U' D/ p, f这段话的大致意思是:带有开始码的H.264视频一般是用于无线发射、有线广播或者HD-DVD中的。这些数据流的开始都有一个开始码:0x000001 或者 0x00000001.
' k: `) t$ Y7 p( H' u: ^& P6 i3 D2 S( ^# b; V2 t. n8 K
* {4 f' f2 h+ z8 `! [" z2 ]3 j+ M
H.264 Bitstream Without Start Codes3 o R' n+ Q) J% G# Q
* o' F" K$ ?* W7 {. j 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.! E7 k* ?- Y8 U2 q/ o
这段话的大致意思是:没有开始码的H.264视频主要是存储在MP4格式的文件中的。它的数据流的开始是1、2或者4个字节表示长度数据。
" M" A9 W$ c2 k% |4 o原文中的"NALU"简单说是H.264格式中的最基本的单元,是一个数据包。
2 i5 ~8 o" L$ d! N |
|