h264播放器,RTMP中H264的VideoTag
落鹤生 发布于 2011-10-18 13:58 点击:次
|
|
Frame Type UB [4] Type of video frame. The following values are defined: 1 = key frame (for AVC, a seekable frame) 2 = inter frame (for AVC, a non-seekable frame) 3 = disposable inter frame (H.263 _disibledevent=4 = generated key frame (reserved for
TAG:
Frame Type UB [4]
Type of video frame. The following values are defined:
1 = key frame (for AVC, a seekable frame)
2 = inter frame (for AVC, a non-seekable frame)
3 = disposable inter frame (H.263 _disibledevent=>4 = generated key frame (reserved for server use _disibledevent=>5 = video info/command frame
CodecID UB [4]
Codec Identifier. The following values are defined:
2 = Sorenson H.263
3 = Screen video
4 = _disibledevent=>5 = _disibledevent=>6 = Screen video version 2
7 = AVC
AVCPacketType F UI8
The following values are defined:
0 = AVC sequence header
1 = AVC NALU
2 = AVC end of sequence (lower level NALU sequence ender is not required or supported)
CompositionTime SI24
IF AVCPacketType == 1
Composition time offset
ELSE
0
在第一个RTMP Message的数据包中,需要发送 AVC sequence header , 也就是AVCDecoderConfigurationRecord
其中就包含有Profile / Level / SPS / PPS 等解码需要的信息,然后就开始发送NALU了。
(crazycoder) |
------分隔线----------------------------