TA的每日心情 | 奋斗 2020-5-6 08:48 |
---|
签到天数: 140 天 [LV.7]常住居民III
|
我一直疑问为什么有些视频解码时显示格式是:H264,大部分又是:AVC1: e# K/ G& i' |; M$ H ~- l' m
我在搜索编程资料时在微软的msdn上发现的:$ Y3 v, ]' i$ W; V v% f
原文:http://msdn.microsoft.com/en-us/library/dd757808(v=vs.85).aspx
$ g$ K6 R: L- J7 I+ b FOURCC:AVC1 描述:H.264 bitstream without start codes.
% \( o7 n+ A4 ^ FOURCC:H264 描述:H.264 bitstream with start codes.# |; z& C% L, {' `
3 R0 M3 W/ q" Y' P' m, d6 Z9 j8 w+ M. ~6 V
H.264 Bitstream with Start Codes | d8 x0 {1 p2 F$ Q Y* r5 O+ W% R$ C
: l& v: h0 D3 U5 r4 n7 [# @4 r 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.9 N6 H' y( h; n. K5 T
这段话的大致意思是:带有开始码的H.264视频一般是用于无线发射、有线广播或者HD-DVD中的。这些数据流的开始都有一个开始码:0x000001 或者 0x00000001.! ~0 N2 R% X& q" w
5 Y8 ~, Y8 {6 j/ ^3 |
& l0 q6 ^" q; f H.264 Bitstream Without Start Codes0 u5 L& \7 ?/ }- Q: b! n, w; C
: t/ n7 @& X2 t6 h6 l& N/ a
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.
6 v5 T$ b. N3 _" S& E0 e这段话的大致意思是:没有开始码的H.264视频主要是存储在MP4格式的文件中的。它的数据流的开始是1、2或者4个字节表示长度数据。. w" e" p8 E, ~5 ^' H
原文中的"NALU"简单说是H.264格式中的最基本的单元,是一个数据包。" E* {% Q2 k0 e- l7 N; J
|
|