PDA

View Full Version : Audio ID for DTS sound


GZZ
27th March 2004, 21:40
I have been looking at alot of post and found out that DTS should be from 0x88 and forward as mpucoder says in here:

http://forum.doom9.org/showthread.php?s=&threadid=39363&highlight=DTS


But I still can't understand that ALL my DVD with DTS sound starts from 0x89, none starts from 0x88 as mpucoder says. Also scenarist puts the first DTS track as 0x89. So does DTS starts from 0x88 or from 0x89 ???


Its a good question, because I have to use it in a little program I´m working on.


Please help me out here.

GZZ

gabest
27th March 2004, 23:09
They start from 0x88, you can be sure about this.

See the files here: http://dvdmagazin.hu/download/ (dts-the_digital_experience.vob for example)

GZZ
28th March 2004, 00:20
why does must DVDs then have the DTS track as 0x89 and Scenarist (a VERY expensive appz) then put the DTS as track 0x89 instead of 0x88 ?


GZZ

GZZ
28th March 2004, 01:56
I found this, which should tell me the right ID from the IFO file:



// coding_mode u find in the ifo table
// audio_idx is the index of the stream (0 for Aud_1, 1 for Aud_2,..)
int DecodeAudioStreamID(unsigned short coding_mode, const int audio_idx)
{
static unsigned int stream_ofs[] = {0xbd80, 0x0000, 0xc000, 0xc800, 0xbda0, 0xbd88, 0xbd88};
if ((stream_ofs[coding_mode & 7] & 0xff) != 0)
return audio_idx + (stream_ofs[coding_mode & 7] & 0xff);
else
return audio_idx + (stream_ofs[coding_mode & 7] >> 8);
return 0;
}



But I don't understand it, my primary language are Pascal (delphi), so if anyone could translate it to delphi or just explain it. Please help me then. :D

GZZ

GZZ
28th March 2004, 04:35
Never mind, I found a solution. Thanks anyway.