HDCD support?

Feature requests for VLC.
jepael
New Cone
New Cone
Posts: 2
Joined: 14 Jul 2008 09:01

HDCD support?

Postby jepael » 14 Jul 2008 09:44

Hello,

I've seen some discussions about HDCD playback on the doom9 forums.
http://forum.doom9.org/showthread.php?t=129136.

As far as I know, the uncompressed 16-bit pcm data (wav files, tracks on cd, or losslessly packed audio like flac files for example) just needs to be monitored for the data packets in the least significant bits of audio data and then do some relatively simple processing (like a lookup table for dynamic expansion, some filters maybe..).

Is there interest to implement HDCD playback feature in VLC media player, or is this a bad idea because of possible patent violations etc (Microsoft owns the intellectual property rights for HDCD nowadays) ?

I guess not a problem, as VLC already has DTS, Dolby and deCSS-algorithms...

Playing DTS audio CDs and wav files ripped from them (with cdex) works perfectly by the way. The wav files should not contain any information they are DTS bitstream files (cdex cannot know this, right?) , but at least lossless flac encoded DTS files just plays the bitstream instead of decoding the audio.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: HDCD support?

Postby VLC_help » 14 Jul 2008 15:33

Most audiophiles don't use VLC because of certain issues with audio output, lossless encodes and cue etc. support so don't wait features like this for VLC immediately.

http://dn-0.com/xbmc-trac/browser/vendo ... odec/dca.c
libavcodec seems to support HDCD (at least I think int hdcd; ///< source material is mastered in HDCD means it) so in theory VLC should support it also.

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: HDCD support?

Postby Arite » 14 Jul 2008 21:00

Most audiophiles don't use VLC because of certain issues with audio output, lossless encodes and cue etc. support so don't wait features like this for VLC immediately.
And to benefit one would need a 24-bit sound card and a decent setup since the resultant resolution is 20-bit.
http://dn-0.com/xbmc-trac/browser/vendo ... odec/dca.c
libavcodec seems to support HDCD (at least I think int hdcd; ///< source material is mastered in HDCD means it) so in theory VLC should support it also.
I'm not convinced that means HDCD is supported in libavcodec. Looks to me that is just used for checking to see if it is supported DTS or something similar by looking at the WAVE header, however I could be wrong.

Arite.
Don't use PMs for support questions.

jepael
New Cone
New Cone
Posts: 2
Joined: 14 Jul 2008 09:01

Re: HDCD support?

Postby jepael » 15 Jul 2008 11:34

Most audiophiles don't use VLC because of certain issues with audio output, lossless encodes and cue etc. support so don't wait features like this for VLC immediately.
And to benefit one would need a 24-bit sound card and a decent setup since the resultant resolution is 20-bit.
Initially I was not thinking about the audiophile aspect, but more like getting the original less-compressed waveform expanded for playback or further encoding, instead of playing the more compressed waveform. But yes maybe only audiophiles with good system could hear the difference between them.

However 24-bit sound cards have been around for ages and are very common these days (integrated to motherboard on new systems), and even AC97 codecs supported up to 20 bits. Another matter is how good they are actually reproducing the audio, they might suffer from noise problems, so the effective dynamic range might only be up to 16 or 18 bits. But same thing propably applies to cheap HDCD players too. I guess my point is that the (digital) hardware exists to play the audio, so that should not be the reason to ditch the idea completely, but the (analog) hardware might not be good enough yet to get the full advantage of the HDCD playback right now. Most soundcards also support digital S/PDIF output too, which is at least up to 20 bits normally.
http://dn-0.com/xbmc-trac/browser/vendo ... odec/dca.c
libavcodec seems to support HDCD (at least I think int hdcd; ///< source material is mastered in HDCD means it) so in theory VLC should support it also.
I'm not convinced that means HDCD is supported in libavcodec. Looks to me that is just used for checking to see if it is supported DTS or something similar by looking at the WAVE header, however I could be wrong.
From what I understand, it seems that there is a bit in the DTS bitstream header (not WAVE header) which just tells what the master source material has been. As I have no DTS spesific info, I bet that flag just means the source material has been HDCD encoded to 16 bits, but it is decoded to 20 bits before encoding to DTS. DTS is a lossy compression so the HDCD data packets would not survive the DTS encoding. Another option would be that the flag indicates the source material has been HDCD encoded, and still is - so the HDCD decoding can be done after the DTS decoding. But in this case the HDCD data packets are still lost, so it would be relatively difficult to know when and where to do HDCD decoding - it can't be decoded all the time.


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 19 guests