INTERACT FORUM

More => Old Versions => JRiver Media Center 21 for Windows => Topic started by: Dmitry Nevozhay on June 06, 2016, 04:53:12 pm

Title: Real posibility to implement "on-the-fly" HDCD-decoder for MC, at last.
Post by: Dmitry Nevozhay on June 06, 2016, 04:53:12 pm
Good news here!
I have found the source codes for HDCD "on-the-fly" decoder for foobar2000, freely available.
(Copyright (C) 2007 Christopher Key, 2010 Chris Moeller, 2012 Gumboot).
The VC++ project home is:
https://gitlab.kode54.net/kode54/foo_hdcd/tree/master
The "hdcd_decode.c" sorce code contains a plain C implementation of HDCD decode process (so it can be compiled/ported to Linux and MacOS),
while the other sources implemets wrapping it into (Windows) Foobar's plugin API interface.
So please, dear JRiver engineers, wrap this code into JRiver's DSP api interface,
as your customers (known as audiophiles) need every hidden bit to be unvelied.
You should not even reverse engineering something (it's done by Christopher Key), just learn the source code and reuse it for MC...
Title: Re: Real posibility to implement "on-the-fly" HDCD-decoder for MC, at last.
Post by: mwmccaw on June 07, 2016, 03:50:14 pm
AMEN to that!
I have to rip all my HDCD material using DBAmp to produce 24 bit FLAC files, which media center will play nicely through my DAC.
I'd love to be able to go back to just using media center....
Mike
Title: Re: Real posibility to implement "on-the-fly" HDCD-decoder for MC, at last.
Post by: Matt on June 08, 2016, 09:26:19 am
Would you be willing to send me a HDCD sample?  I don't see any in our samples folder.

I'm matt at jriver dot com.

No promises, but I'll at least take a look.

Thanks.
Title: Re: Real posibility to implement "on-the-fly" HDCD-decoder for MC, at last.
Post by: ssands on June 08, 2016, 11:49:50 am
Would you be willing to send me a HDCD sample?  I don't see any in our samples folder.

I'm matt at jriver dot com.

Thanks.
I assume you need just a song (not a whole CD?). If someone does this, please post here, otherwise I'll try to get to this tonight.
Also, can I use MC to rip the track, or should I use EAC or something else?
Title: Re: Real posibility to implement "on-the-fly" HDCD-decoder for MC, at last.
Post by: dtc on June 08, 2016, 11:55:42 am
I send Matt a track for him to play with.

You can rip an HDCD track with any ripper. You just need the decoder to recognize the magic encoding in the 16th bit. Without the decoder the file plays as a normal Redbook CD, with a slightly munged 16 bit some times.
Title: Re: Real posibility to implement "on-the-fly" HDCD-decoder for MC, at last.
Post by: Dmitry Nevozhay on June 14, 2016, 05:58:58 pm
Would you be willing to send me a HDCD sample?  I don't see any in our samples folder.

I'm matt at jriver dot com.

No promises, but I'll at least take a look.

Thanks.

Hi Matt!
Any progress? :)
Title: Re: Real posibility to implement "on-the-fly" HDCD-decoder for MC, at last.
Post by: Matt on June 17, 2016, 09:08:38 am
Hi Matt!
Any progress? :)

I've got the code in and I think I have it decoding HDCD.

However I'm not finding a way to know if it's actually finding HDCD bits or not.  So that sort of ruins my plan of running all 16-bit input through the processor for a little bit to test it.

I asked the team for ideas in case they're smarter than me!
Title: Re: Real posibility to implement "on-the-fly" HDCD-decoder for MC, at last.
Post by: ssands on June 17, 2016, 01:36:20 pm
Thanks for the update! Looking forward to this.
Title: Re: Real posibility to implement "on-the-fly" HDCD-decoder for MC, at last.
Post by: krustycat on August 06, 2016, 06:55:24 pm
Matt,

Is there any other update yet?


Thank you.
Title: Re: Real posibility to implement "on-the-fly" HDCD-decoder for MC, at last.
Post by: Dmitry Nevozhay on October 04, 2017, 11:35:02 am
I've got the code in and I think I have it decoding HDCD.

However I'm not finding a way to know if it's actually finding HDCD bits or not.  So that sort of ruins my plan of running all 16-bit input through the processor for a little bit to test it.

I asked the team for ideas in case they're smarter than me!

Matt,
there is impoved open-source library for HDCD decoding, including the code to detect this encoding (to bit-perfectly pass-through not encoded audio stream):
https://github.com/bp0/libhdcd

I hope it will help to complete hdcd decoding implementation in MC.

Title: Re: Real posibility to implement "on-the-fly" HDCD-decoder for MC, at last.
Post by: Awesome Donkey on October 04, 2017, 11:41:16 am
Nice! Hopefully there's still a chance to get on-the-fly HDCD decoding working in MC.

P.S. Maybe you should've posted this in a new topic in the MC23 for Windows section, since it's a bit too late for MC 21. :P