INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Using MC to convert audio format removes HDCD signature?  (Read 1191 times)

thecrow

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 460
Using MC to convert audio format removes HDCD signature?
« on: June 30, 2019, 04:46:54 am »

I have a Tom Petty album in ape format that is encoded in HDCD.
When analysed in MC it is correctly identified as HDCD.
When converted to flac using MC and re-analysed it loses the HDCD identification.
When converted to flac using Xiph's command line encoder and re-analysed it retains the HDCD identification.

Upon further investigation I found converting to any lossless format using MC removes the HDCD signature, whereas converting with other programs does not.

Is there a problem with MC's format converter that means it is not lossless?
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10968
Re: Using MC to convert audio format removes HDCD signature?
« Reply #1 on: June 30, 2019, 04:52:42 am »

My guess is that MC actually performs the HDCD decoding when you convert the audio.
Logged
~ nevcairiel
~ Author of LAV Filters

thecrow

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 460
Re: Using MC to convert audio format removes HDCD signature?
« Reply #2 on: June 30, 2019, 05:02:53 am »

After conversion the file is still 16bit.
Comparing the audio analysis of the two files they show identical values for peak level, dynamic range, etc 
Logged

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3125
Re: Using MC to convert audio format removes HDCD signature?
« Reply #3 on: June 30, 2019, 08:58:00 am »

Are you applying any DSP during the conversion?
Logged

thecrow

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 460
Re: Using MC to convert audio format removes HDCD signature?
« Reply #4 on: June 30, 2019, 09:40:13 am »

No I believe I am just doing a simple format convert between lossless formats with no DSP.
If you have any HDCD files I would be interested if you see the same when converting format.
On the original file using the tag editor check the HDCD tag has a value of 1.
Convert the file to another lossless format such as wav, ape, or flac.
Then recheck the HDCD tag, for me this is now showing 0 on the converted file.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10968
Re: Using MC to convert audio format removes HDCD signature?
« Reply #5 on: June 30, 2019, 10:17:58 am »

I still think its simply decoding the HDCD data. The bitdepth is determined before any decoding/encoding takes places, so it would not change the bitdepth  on account of HDCD decoding unless you tell it to.
Logged
~ nevcairiel
~ Author of LAV Filters

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3125
Re: Using MC to convert audio format removes HDCD signature?
« Reply #6 on: June 30, 2019, 10:24:34 am »

I just converted a flac file to ape and back to flac.  I  set HDCD to -1  in both files and did analyze audio. In both cases it recognized the new files as HDCD and set the flag to 1. So, it seems like it is doing the right thing for me.  I made sure the DSP check box was not checked.
Logged

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3125
Re: Using MC to convert audio format removes HDCD signature?
« Reply #7 on: June 30, 2019, 10:34:58 am »

I still think its simply decoding the HDCD data. The bitdepth is determined before any decoding/encoding takes places, so it would not change the bitdepth  on account of HDCD decoding unless you tell it to.

If it were to do that, it would be a mistake in my opinion. Some people still have HDCD DACs and do not want the software decoding to happen. Forcing the decoding without an option to disable the decoding would mean that MC could not reliably be used for converting HDCD files from one format to another in a bit perfect form.

There was a discussion early on about using the convert function to create decoded 24 bit files. I think that is a good idea, as some people may want the decoded files to play outside of MC. However, it would need to be an option, for the reason stately above.


You can check to see if the new file is 24 bits simply by checking on the file size of the file after conversion.

If MC did a decode during a conversion, once converted, the new file would be a separate 24 bit file and the bitdepth of that should be reported as 24 bit.  If, in fact, MC created a new file that was 24 bits but did not change the bitdepth tag to 24, then I believe that would be an error. 
Logged

thecrow

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 460
Re: Using MC to convert audio format removes HDCD signature?
« Reply #8 on: June 30, 2019, 11:26:00 am »

I just converted a flac file to ape and back to flac.  I  set HDCD to -1  in both files and did analyze audio. In both cases it recognized the new files as HDCD and set the flag to 1. So, it seems like it is doing the right thing for me.  I made sure the DSP check box was not checked.

Thanks for that, it spurred me on to look deeper as to what I was doing that was breaking this.
And it is the fact that I have TPDF dither selected in Advanced Audio Options.
With dither set to None or JRiver bit-exact then I retain the HDCD identifier with TPDF I lose it.

So when converting between lossless formats with TPDF selected it is changing the audio by re-dithering and so is not a bit for bit conversion.
Logged

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3125
Re: Using MC to convert audio format removes HDCD signature?
« Reply #9 on: June 30, 2019, 11:40:16 am »

Good detective work.  I am a little surprised that dithering is applied in a conversion between lossless formats. I would have thought it was just unpacking and repacking  the bits unless DSP is checked.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7887
  • Long cold Winter...
Re: Using MC to convert audio format removes HDCD signature?
« Reply #10 on: June 30, 2019, 11:41:06 am »

TPDF shouldn't kick in unless you're dithering away from the source bit-depth (16-bit in this case), right? If it's using TPDF dithering without changing bit-depth when converting audio, that kinda sounds like a bug to me. At least, that's what makes sense to me, not using dithering when converting audio if the bit-depth is going to be the same and ONLY use dithering when there's a change in bit-depth with the conversion. But yeah, IMO it definitely shouldn't be dithering/resampling when doing a lossless to lossless conversion at the same bit-depth/sample rate.

Seems to me that's not exactly a 'lossless' conversion in that case if TPDF dithering is being applied when there's no change in bit-depth being made in the conversion.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

thecrow

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 460
Re: Using MC to convert audio format removes HDCD signature?
« Reply #11 on: June 30, 2019, 11:47:29 am »

I think re-dithering would be valid after any DSP was applied even if the bit depth was unchanged.
But I do think it is wrong when simply doing a file format conversion that is not changing the audio in anyway.
So I would agree it looks like a bug.
Logged

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3125
Re: Using MC to convert audio format removes HDCD signature?
« Reply #12 on: June 30, 2019, 12:21:14 pm »

Agreed.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2036
Re: Using MC to convert audio format removes HDCD signature?
« Reply #13 on: June 30, 2019, 12:45:31 pm »

There is bit depth setting in the encoder options. Was it set to automatic which you would think would be using the same depth as source? There isn't "same as source" option available
Logged

thecrow

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 460
Re: Using MC to convert audio format removes HDCD signature?
« Reply #14 on: June 30, 2019, 01:28:18 pm »

My library is a mix of 16bit, 24bit and 1bit files so I always leave bit depth set to automatic, as it was in this case too.
Logged

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3125
Re: Using MC to convert audio format removes HDCD signature?
« Reply #15 on: June 30, 2019, 01:36:04 pm »

I had mine set to 16 bit in Convert with JRiver Bit Exact dithering set.
Logged
Pages: [1]   Go Up