Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 20th January 2013, 21:00   #61  |  Link
MvB
dings!
 
MvB's Avatar
 
Join Date: Apr 2002
Location: Between the horns...
Posts: 249
HDCD stores Data in subchannels, too

Hi there,

i always wondered why my backup of Kari Bemnes "Norwegian Moods" sounded much worse when burned from wavs i extracted with eac before from my original disc (HDCD, but not labeled as one). I found out why:
while looking through the internet collecting information about hdcd i found an article from a guy called _Ilya_:

"Data range from -30000 : 30000 is linear. Range above and below is non linear. Multiplier coefficients are recorded in sub-channel (part of audio CD format). Sub channel is not big enough to keep additional 4 bits, but it can keep multiplication coefficient.

In other words HDCD data format is a 2 pieswise interpolation to logarithmic scale. Full range is appropriate to 20 bit. Data precision at any point is 16 bit. (technology similar to voice A-law, M-law compression).

HDCD played on standard CD equipment will distort high levels.
HDCD played on separate transport and processor may be distorted because if sub channel is not transmitted, but processor is HDCD capable, processor will try to apply HDCD decoding because it will find HDCD patterns in upper levels, but without sub channel it does not know how to amplify it. The result is floating level (The same may be achieved if you copy HDCD using NERO but do not copy sub channel).
HDCD can not be saved in .wav because sub channel will be lost. HDCD processor will find patterns in peaks, led will flash."

I thought to myself, that would be an explanation why my copies sound so strange, lifeless.

I made a copy with clonecd, activating "read infos from subchannels" and made an image.

Before burning the image, i set the option "don't correct subchannel streams". Burned with Burning Speed 1x, because the subchannels don't have any crc correction, thought it would be safer that way.

And ... got an epiphany after inserting the fresh burned cd in my hdcd-player: I sounded exactly like the original. Finally. Now i know why. Have to rip my other hdcds again as an image with subchannel information.

Without the subchannel - Information it's quite possible you just get quasi 15 bit resolution in your 20 bit file with no dynamic expansion at all.
MvB is offline   Reply With Quote
Old 29th March 2013, 19:10   #62  |  Link
ashman5
Registered User
 
Join Date: Feb 2009
Posts: 3
Anyone have a batch file that will use hdcd.exe analyze each wav/flac in a folder and report the HDCD specifics (Peak extend, min gain, max gain, Transient filter) for each file?

My coding skills are nonexistant and doing it manually is tedious.

I'm currently using hdcd -a for each file and that gives me:

C:\Temp\MUSIC\Album>hdcd.exe -a 1.wav
HDCD Detected
Features Used:
Peak extend : Enabled permanently
Minimum gain : -4.0dB
Maximum gain : 0.0dB
Transient filter (Unsupported) : Never enabled

anyway to automate this?

thanks
ashman5 is offline   Reply With Quote
Old 19th April 2013, 01:28   #63  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 939
Quote:
Originally Posted by TinTime View Post
Code:
::-------------------------------------------------------------------------------------------------
:: Check files for HDCD encoding
:: Writes two text files to source directory - hdcd files.txt and non hdcd files.txt
::-------------------------------------------------------------------------------------------------
@echo off

:: change these two
set eac3to=D:\Vtemp\programs\eac3to\eac3to.exe
set type=flac


:: set other variables and create new files
set sourcedir=%1
set sourcedir=%sourcedir:"= %
if "%sourcedir:~0,1%"==" " set sourcedir=%sourcedir:~1,-1%
echo HDCD files>"%sourcedir%\hdcd files.txt"
echo non HDCD files>"%sourcedir%\non hdcd files.txt"
if exist "%sourcedir%\eac3to.log" del "%sourcedir%\eac3to.log"


for /f "usebackq tokens=1 delims=" %%A in (`dir "%sourcedir%\*.%type%" /b /s /on`) do (
  call :sub1 "%%A"
)

pause

exit /b 0

::-------------------------------------------------------------------------------------------------

:sub1
set inflac=%1

"%eac3to%" %inflac% -log="%sourcedir%\eac3to.log"

for /f "usebackq tokens=1-6 delims=," %%A in ("%sourcedir%\eac3to.log") do (
  if "%%A"=="FLAC" set hdcdcheck="%%D"
)

if "%hdcdcheck:~-6,-2%"=="HDCD" (
  echo %inflac%>>"%sourcedir%\hdcd files.txt"
) else (
  echo %inflac%>>"%sourcedir%\non hdcd files.txt"
)
del "%sourcedir%\eac3to.log"

exit /b 0
Windows 7 (x64)

I turned echo on and threw in some pauses.
I've set the eac3to path but dragging and dropping a single file shows...
Code:
E:\Music\Zack Hemsey - Mind Heist EP>for /F "usebackq tokens=1 delims=" %A in (`dir "E:\Music\Zack Hemsey - Mind Heist EP\01 - Mind Heist.flac\*.flac" /b /
/on`) do (call :sub1 "%A" )
File Not Found
Any idea what's going on?
Or can anyone change this to execute the CMD from the folder?
I don't like drag&drop operations.
I'd rather copy/move the .cmd around and have it execute in the folder with all the files in the same folder.
Sparktank is offline   Reply With Quote
Old 21st August 2017, 17:12   #64  |  Link
plonk420
amd & h.264 fanboy
 
plonk420's Avatar
 
Join Date: Jun 2002
Location: NTSC
Posts: 419
newest versions:

filename SHA-1
SHA-256

hdcd-0.2-win32.zip A91E5D11C2C71F709C776A204688FB301EE82BCA

01525DCA67F02D90666468C50767C92F3B81C226FCE54F79A4ED88D542D7C030

hdcd-0.2-x64.zip 75FBFA100A1E8D34C2D92BD3BA731622D46564AE

1F4FFE6F56C0D5F343314F2DCCE179F3F23856EFDB90607ACA71A81930753EB0

hdcd-0.2-dev.zip FF4D25E25576488F31130DCCB0C3755FD09C43C4

8D39AD4BD99FB0D5B563357CCAFAAD7735D5E12195FF62627A81E5412910AB7C

site (not sure how exposed OP wants it): hdcd dot cjkey dot org dot uk
Attached Files
File Type: zip hdcd-0.2-win32.zip (78.6 KB, 179 views)
File Type: zip hdcd-0.2-x64.zip (84.4 KB, 390 views)
File Type: zip hdcd-0.2-dev.zip (221.6 KB, 162 views)
plonk420 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:53.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.