TA的每日心情 | 奋斗 2020-5-6 08:48 |
---|
签到天数: 140 天 [LV.7]常住居民III
|
我一直疑问为什么有些视频解码时显示格式是:H264,大部分又是:AVC12 T0 p7 B5 m1 X# M! M/ z/ G
我在搜索编程资料时在微软的msdn上发现的:
9 T- [: B8 b( `. F& |- S 原文:http://msdn.microsoft.com/en-us/library/dd757808(v=vs.85).aspx' F, s, D6 C. P3 B F# I6 \
FOURCC:AVC1 描述:H.264 bitstream without start codes.
% Y8 v' P/ b& W$ F' c FOURCC:H264 描述:H.264 bitstream with start codes.
7 ]1 v1 J7 G. q5 J: P+ a# @: J3 W6 h6 C0 J
9 g9 q( z; \7 Z8 J
H.264 Bitstream with Start Codes6 r. r2 _' n+ a$ ~
+ z' @! P3 M W: w& b6 e3 B4 @2 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.
3 G9 Y+ Y9 F1 q& c# ~, C9 ?6 w6 {1 `这段话的大致意思是:带有开始码的H.264视频一般是用于无线发射、有线广播或者HD-DVD中的。这些数据流的开始都有一个开始码:0x000001 或者 0x00000001.
- X- }4 O: R" o s7 c: z" R4 N+ h! c! f4 c8 a! K% C* ^
# Y) z1 [& o4 C
H.264 Bitstream Without Start Codes
* p# R$ L/ z4 y% Q! g& h; p; g3 ?
$ Q; {% N2 [6 `, I2 \7 o# [2 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.! ~; f& N. Z N$ @; e* B$ y
这段话的大致意思是:没有开始码的H.264视频主要是存储在MP4格式的文件中的。它的数据流的开始是1、2或者4个字节表示长度数据。: N# [# r/ o% |# u% g- a
原文中的"NALU"简单说是H.264格式中的最基本的单元,是一个数据包。, x H1 c6 _" ~1 J2 w3 m
|
|