DVD-Video 解谜 - 相关信息 - Audio Substream headers

Audio Substream Headers

All substreams in private stream 1 begin with the substream number. The header described here immediately follows the substream number. This header is not part of either MPEG or the respective audio format standard. These are unique to DVD.

All methods

byte 0
byte 1
byte 2
765432107654321076543210
FrmCnt
number of frames which begin in this packet
FirstAccUnit
offset to frame which corresponds to PTS value
offset 0 is the last byte of FirstAccUnit
The value 0000 indicates there is no first access unit

AC3 specific

AC3 has no additional information which is DVD specific.
example
offsetvaluemeaning
01f80hAC3 substream number (audio stream 0)
02002this packet contains the beginning of 2 audio frames
0210001the frame corresponding to PTS begins at packet offset 023
0230B77AC3 frame begins here (0B77 = AC3 sync word)
Additional info
AC3 frames are 32ms in length, or 2880 ticks of the 90KHz clock. The resulting frame rate is 31.25 fps.
Description of AC3 frame headers

DTS specific

DTS has no additional information which is DVD specific.
example
offsetvaluemeaning
01f88hDTS substream number (audio stream 0)
02001this packet contains the beginning of 1 audio frame
0210001the frame corresponding to PTS begins at packet offset 023
0237FFE8001DTS frame begins here (7FFE8001 = DTS sync word)
Additional info
DTS frames are 10.67ms in length, or 960 ticks of the 90KHz clock. This is exactly one third the duration of an AC3 frame.
DTS frames are engineered to fit almost exactly into DVD sectors, therefore they do not span packets. Instead the PES header is padded by 3 or 4 bytes (following PTS).
Brief description of DTS frame headers

LPCM specific

byte 3
byte 4
byte 5
765432107654321076543210
emphasismutereservedFrmNum
modulo 20 frame number of first frame
Quantization
0 = 16bps, 1 = 20bps, 2 = 24bps, 3 = illegal
Sample rate
0 = 48Ksps
1 = 96Ksps
reserved
channels-1
Dynamic Range
example
offsetvaluemeaning
01fA0hLPCM substream number (audio stream 0)
02007this packet contains the beginning of 7 audio frames
0210004the frame corresponding to PTS begins at packet offset 026
02300emphasis off, mute off, frame 0
0240116-bit, 48K sample rate, stereo
02580hdynamic range 128 (neutral)
0260000first channel 0 (left) sample
Additional info
LPCM frames are 150 ticks of the 90KHz clock long (1.67ms), giving a frame rate of 600 fps.
Frame size in bytes = (sample rate)*(quantization)*(number of channels)/4800.
At 48K sample rate there are 48000/600 = 80 samples per frame. For 16-bit stereo this equals 320 bytes per frame.  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值