DTS Frame Header

This is just a quick and partial reference to the frame header of a DTS stream. There is no intention to fully explain DTS, for that you should obtain the official documentation.

The part of the header of most interest to DVD is the first 10 bytes
byte 0byte 1 byte 2byte 3
76543210 76543210 76543210 76543210
Sync - 7F FE 80 01
byte 4byte 5 byte 6byte 7 byte 8byte 9
76543210 76543210 76543210 76543210 76543210 76543210
ftype
short
cpf
nblks
fsize
amode
sfreq
rate
mix
dynf
timef
auxf
hdcd
ftype indicates the frame type, 1 = normal, 0 = termination.
short the number of core samples by which a termination frame falls short of the normal length of 32 samples.
For a normal frame the value must be 31.
cpf A flag that indicates if a CRC is present if TRUE (1).
This will be FALSE for DVD.
nblks The number less 1 of sample blocks.
This will always be 15 for DVD. This means each frame is 16*32 (512) samples.
At a sampling rate of 48K this translates to 10 and 2/3 milliseconds, or 960 ticks of the 90KHz clock.
fsize The size less 1 of the frame in bytes.
For DVD this will be 1005 (0x3ED) for 768 Kbps streams or 2012 (0x7DC) for 1536 Kbps streams.
amode - Audio Channel Arrangement
valuechannelsarrangement
001A
012A + B (dual mono)
022L + R (stereo)
032(L+R) + (L-R) (sum and difference)
042LT + RT (left and right total)
053C + L + R
063L + R + S
074C + L + R + S
084L + R + SL + SR
095C + L + R + SL + SR
0A6CL + CR + L + R + SL + SR
0B6C + L + R + LR + RR + OV
0C6CF + CR + LF + RF + LR + RR
0D7CL + C + CR + L + R + SL + SR
0E8CL + CR + L + R + SL1 + SL2 + SR1 + SR2
0F8CL + C + CR + L + R + SL + S + SR
10-3F user defined
sfreq - audio sampling rate
valuesampling rate
0invalid
18 KHz
216 KHz
332 KHz
4invalid
5invalid
611025 Hz
722050 Hz
844100 Hz
9invalid
Ainvalid
B12 KHz
C24 KHz
D48 KHz
Einvalid
Finvalid
rate This is a coded value for the targeted bitrate of the encoded stream.
For DVD only 2 values are possible:
0F - targeted rate is 768 Kbps, actual rate is 754.5 Kbps
18 - targeted rate is 1536 Kbps, actual rate is 1509.75 Kbps
DVD-Video info home Copyright © 2001 - 2024 MPUCoder, all rights reserved.