24-bit/96KHz LPCM audio
Dave Chapman <[email protected]> Thu, 10 Apr 2003 15:26:00 +0100
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have an example of a DVD containing a 24-bit/96KHz LPCM audio track which I have been trying to play under Linux. Ogle (and vlc and mplayer) fail to correctly play this, but I propose to add support to Ogle to fix this. I have managed to hack ogle to correctly play the audio via OSS by converting it to a 16-bit/48KHz LPCM stream inside the OSS driver. I also had to hack "conversion.c" so that it would pass the entire (unmodified) stream to the OSS driver. I want to handle the conversion from 24-bits to 16-bits and the resampling from 96KHz to 48KHz separately. Both 24/48 and 16/96 audio streams are perfectly legal on a DVD. As far as I can tell, there is no support for software conversion of LPCM streams to different formats at the moment. Do other developers have any ideas about how this should be implemented? I would also like to add support for 24/96 soundcards in the future (when I buy one!) and this would include using libmad's ability to output mpeg audio with 24-bit resolution. I'm not proposing to do anything with 20-bit audio - it seems even rarer than 24-bit. Regards, Dave.