Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HDCD CDs and transcoding
22-02-2021, 15:56
Post: #31
RE: HDCD CDs and transcoding
The L24 format has a very unusual byte order for the samples (not the same as 24-bit linear PCM) and it is possible that your renderer is expecting 24-bit linear PCM instead of L24. This would cause pink noise with L24 output from MinimStreamer.

What exactly were you sending to the renderer when you used foobar2000 with HDCD decoding? Was it an L24 stream or 24-bit LPCM?
Find all posts by this user
Quote this message in a reply
22-02-2021, 16:08
Post: #32
RE: HDCD CDs and transcoding
I believe you are right. Oppo BDP 83 is expecting 24-bit-lpcm not L24.

On foobar2k i am always decoding wav to lpcm. The options don't give me the ability to set bit / samplerate. Attached is the foobar2k settings page.

   
Find all posts by this user
Quote this message in a reply
22-02-2021, 17:17
Post: #33
RE: HDCD CDs and transcoding
Is the 24-bit LPCM data being streamed across the network (i.e., not sent via USB or similar)? If so, are you able to find out what MIME type foobar2000 is sending for the network stream?
Find all posts by this user
Quote this message in a reply
22-02-2021, 19:08
Post: #34
RE: HDCD CDs and transcoding
Is the following ffmpeg hdcd documentation significant.

It states

When using the filter with wav, note the default encoding for wav is 16-bit, so the resulting 20-bit stream will be truncated back to 16-bit. Use something like -acodec pcm_s24le after the filter to get 24-bit PCM output.

So
Code:
-af hdcd

becomes
Code:
-af hdcd -c:a pcm_s24le

Of course, this could simply be another way of specifying wav:L24;
Find all posts by this user
Quote this message in a reply
22-02-2021, 19:22
Post: #35
RE: HDCD CDs and transcoding
(22-02-2021 17:17)simoncn Wrote:  Is the 24-bit LPCM data being streamed across the network (i.e., not sent via USB or similar)? If so, are you able to find out what MIME type foobar2000 is sending for the network stream?

no USB connection. streamed over ethernet. I am attaching the log file. content type shows audio/L16, 44100, 2ch. I am not sure if this denotes source file or what is streamed over the network.


Attached File(s)
.zip  fb2k.zip (Size: 4.97 KB / Downloads: 2)
Find all posts by this user
Quote this message in a reply
22-02-2021, 19:23
Post: #36
RE: HDCD CDs and transcoding
(22-02-2021 19:08)Alandbush Wrote:  Is the following ffmpeg hdcd documentation significant.

It states

When using the filter with wav, note the default encoding for wav is 16-bit, so the resulting 20-bit stream will be truncated back to 16-bit. Use something like -acodec pcm_s24le after the filter to get 24-bit PCM output.

So
Code:
-af hdcd

becomes
Code:
-af hdcd -c:a pcm_s24le

Of course, this could simply be another way of specifying wav:L24;

let me try this suggestion and revert back.
Find all posts by this user
Quote this message in a reply
22-02-2021, 19:55
Post: #37
RE: HDCD CDs and transcoding
(22-02-2021 19:08)Alandbush Wrote:  Is the following ffmpeg hdcd documentation significant.

It states

When using the filter with wav, note the default encoding for wav is 16-bit, so the resulting 20-bit stream will be truncated back to 16-bit. Use something like -acodec pcm_s24le after the filter to get 24-bit PCM output.

So
Code:
-af hdcd

becomes
Code:
-af hdcd -c:a pcm_s24le

Of course, this could simply be another way of specifying wav:L24;

BTW I already tried wav:L24 and my renderer played "pink noise".
Same effect with -c:a pcm_s24le option. Please note my rendered cannot handle wav format. Si I will have to convert to lpcm.
Find all posts by this user
Quote this message in a reply
22-02-2021, 20:13
Post: #38
RE: HDCD CDs and transcoding
(22-02-2021 19:22)vkshankar Wrote:  no USB connection. streamed over ethernet. I am attaching the log file. content type shows audio/L16, 44100, 2ch. I am not sure if this denotes source file or what is streamed over the network.

It looks like this is what is streamed over the network. This would mean that either the 20 bits of decoded audio are being truncated to 16 bits by foobar2000 or the 16-bit HDCD signal is being streamed without decoding.
Find all posts by this user
Quote this message in a reply
22-02-2021, 20:25
Post: #39
RE: HDCD CDs and transcoding
(22-02-2021 19:55)vkshankar Wrote:  BTW I already tried wav:L24 and my renderer played "pink noise".
Same effect with -c:a pcm_s24le option. Please note my rendered cannot handle wav format. Si I will have to convert to lpcm.

Sorry, but at least that's been tried.

Considering the generally small number of hdcds made, way back when, and your players inability to handle wav over UPNP, maybe it's time to consider offline conversion.

Ffmpeg can clearly produce a converted output wav file.
DBpoweramp cd ripper can do so likewise.
There may be others.

Once it's done, the converted file should be treated like any other non encoded wav file.
Find all posts by this user
Quote this message in a reply
22-02-2021, 22:23
Post: #40
RE: HDCD CDs and transcoding
The OP has said that his renderer cannot handle WAV streams.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)