Page 1 of 1

How VLC recognize CD and CDs with DTS?

Posted: 16 Sep 2004 11:37
by sybaselu
At first, How VLC recognize CD and CDs with DTS? VLC can play CD and CDs with DTS. on the contrasty, other player can not play CDs and CDs with DTS in the same time. can you point out that the soucecode?
Secondly, How does VlC not only play generl CD but also play CDs with DTS?

Posted: 16 Sep 2004 11:41
by Gibalou
A DTS bitstream contains specific markers so we just try to look for these.
As for the DTS decoding capability, it is based on libdts.

Posted: 16 Sep 2004 11:52
by sybaselu
A DTS bitstream contain a specific markers? puzzle??? so how do you find the specific marker? where is the soucecode which look for the specific dts bitstream ? I also know dts bitstream decoder by libdts, how do you call the libs by function?
the key is where is the soucecode that look for the specific marker?

Posted: 21 Sep 2004 12:37
by sybaselu
now that CDs with DTS contains specific marker bitstream, then what differents between DVD with DTS and CDs with DTS? what is the specfic marker on earth? can you tell me where is it in the sourcecode ?

Posted: 21 Sep 2004 12:42
by Sigmund
the dts demux is located in modules/demux/dts.c. it will be tried first when playing a cd, and if it fails vlc will try the raw wav demux afterwards. For a dvd with dts the story is completly different. There the bitstreams are contained in an mpeg container format that tell quite clearly what different codecs and streams are available

Posted: 23 Sep 2004 04:21
by sybaselu
CDs with DTS contains a specificl marker . the marker as specificl streambit ?, for example as Arbic Digtial (128). why VLC team do not rende hackerguide (or devel documents )for us from around the world. it well know that get others write programs is more diffcult than by myself, in particular , there have not documnet in hand.
for instance , Xine (a free Mediaplayer) provide a complete offcial doument hackguide .

Posted: 23 Sep 2004 08:50
by Sigmund
just some pointers to get you started:
Also have a look at the HACKING file in your sources.

All this said, I hope you respect that we keep on coding to create a good app, and don't spend too much time writing documentation that is bound to get outdated very soon anyway.