Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 2 of 2

Hybrid View

  1. #1
    Senior Member
    Join Date
    Oct 2013
    Posts
    207

    Decoding HDCD with ffmpeg gives errors

    I am currently decoding my HDCD's, which I already ripped to Flac. On one of the CD's each track gives two errors when decoding which I don't really understand, see the verbose logging below (for one track). What is causing this errors? The albums are ripped securely and verified against CTDB + AccurateRip.

    Code:
    .../hdcd/King Crimson - 1974 - Starless And Bible Black (30th Anniversary Edition)$ ffmpeg -i 01.\ King\ Crimson\ -\ The\ Great\ Deceiver.flac -af hdcd 01.\ King\ Crimson\ -\ The\ Great\ Deceiver.hdcd.flac -v verbose 
    ffmpeg version 4.4-6ubuntu5 Copyright (c) 2000-2021 the FFmpeg developers
      built with gcc 11 (Ubuntu 11.2.0-7ubuntu1)
      configuration: --prefix=/usr --extra-version=6ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
      libavutil      56. 70.100 / 56. 70.100
      libavcodec     58.134.100 / 58.134.100
      libavformat    58. 76.100 / 58. 76.100
      libavdevice    58. 13.100 / 58. 13.100
      libavfilter     7.110.100 /  7.110.100
      libswscale      5.  9.100 /  5.  9.100
      libswresample   3.  9.100 /  3.  9.100
      libpostproc    55.  9.100 / 55.  9.100
    Input #0, flac, from '01. King Crimson - The Great Deceiver.flac':
      Metadata:
        album           : Starless And Bible Black (30th Anniversary Edition)
        artist          : King Crimson
        title           : The Great Deceiver
        DATE            : 1974
        track           : 01
      Duration: 00:04:02.87, start: 0.000000, bitrate: 961 kb/s
      Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
    Stream mapping:
      Stream #0:0 -> #0:0 (flac (native) -> flac (native))
    Press [q] to stop, [?] for help
    [Parsed_hdcd_0 @ 0x55ad3d917240] Disabling automatic format conversion.
    [graph_0_in_0_0 @ 0x55ad3d9177c0] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x3
    [Parsed_hdcd_0 @ 0x55ad3d917240] Auto-convert: disabled
    [Parsed_hdcd_0 @ 0x55ad3d917240] Looking for 16-bit HDCD in sample format s16
    [Parsed_hdcd_0 @ 0x55ad3d917240] CDT period: 2000ms (88200 samples @44100Hz)
    [Parsed_hdcd_0 @ 0x55ad3d917240] Process mode: process stereo channels together
    [Parsed_hdcd_0 @ 0x55ad3d917240] Force PE: off
    [Parsed_hdcd_0 @ 0x55ad3d917240] Analyze mode: [0] disabled
    [flac @ 0x55ad3d8d3f80] encoding as 24 bits-per-sample
    Output #0, flac, to '01. King Crimson - The Great Deceiver.hdcd.flac':
      Metadata:
        album           : Starless And Bible Black (30th Anniversary Edition)
        artist          : King Crimson
        title           : The Great Deceiver
        DATE            : 1974
        TRACKNUMBER     : 01
        encoder         : Lavf58.76.100
      Stream #0:0: Audio: flac, 44100 Hz, stereo, s32 (24 bit), 128 kb/s
        Metadata:
          encoder         : Lavc58.134.100 flac
    [Parsed_hdcd_0 @ 0x55ad3d917240] hdcd error: Control B check failed: 0x0093 (0x00 vs 0x6c) near 5783552
    [Parsed_hdcd_0 @ 0x55ad3d917240] hdcd error: Control B check failed: 0x2436 (0x24 vs 0xc9) near 5783552
    No more output streams to write to, finishing.1kbits/s speed= 153x    
    size=   29424kB time=00:04:02.86 bitrate= 992.5kbits/s speed= 153x    
    video:0kB audio:29416kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.027989%
    Input file #0 (01. King Crimson - The Great Deceiver.flac):
      Input stream #0:0 (audio): 2615 packets read (29166494 bytes); 2615 frames decoded (10710420 samples); 
      Total: 2615 packets (29166494 bytes) demuxed
    Output file #0 (01. King Crimson - The Great Deceiver.hdcd.flac):
      Output stream #0:0 (audio): 2325 frames encoded (10710420 samples); 2326 packets muxed (30122026 bytes); 
      Total: 2326 packets (30122026 bytes) muxed
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 0: counter A: 0, B: 2451, C: 2452
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 0: pe: 0, tf: 0, almost_A: 0, checkfail_B: 1, unmatched_C: 0, cdt_expired: 0
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 0: tg 0.0: 2411
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 0: tg -0.5: 9
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 0: tg -1.0: 7
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 0: tg -1.5: 6
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 0: tg -2.0: 6
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 0: tg -2.5: 2
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 0: tg -3.0: 0
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 0: tg -3.5: 0
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 0: tg -4.0: 10
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 1: counter A: 0, B: 2451, C: 2452
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 1: pe: 0, tf: 0, almost_A: 0, checkfail_B: 1, unmatched_C: 0, cdt_expired: 0
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 1: tg 0.0: 2411
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 1: tg -0.5: 9
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 1: tg -1.0: 7
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 1: tg -1.5: 6
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 1: tg -2.0: 6
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 1: tg -2.5: 2
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 1: tg -3.0: 0
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 1: tg -3.5: 0
    [Parsed_hdcd_0 @ 0x55ad3d917240] Channel 1: tg -4.0: 10
    [Parsed_hdcd_0 @ 0x55ad3d917240] Packets: type: B, total: 4902
    [Parsed_hdcd_0 @ 0x55ad3d917240] HDCD detected: yes, peak_extend: never enabled, max_gain_adj: -4.0 dB, transient_filter: not detected, detectable errors: 2 (try -v verbose)
    [AVIOContext @ 0x55ad3d8d4cc0] Statistics: 2 seeks, 116 writeouts
    [AVIOContext @ 0x55ad3d8d5380] Statistics: 29175367 bytes read, 0 seeks
    Living Room: RPI2+HifiBerry DAC+ Pro & piCorePlayer
    Attic: RPI2+HifiBerry DAC+ RCA & piCorePlayer
    Other rooms: 6x SB Radio
    LMS: Version 8.3.0 on Xubuntu 22.04LTS

  2. #2
    Senior Member
    Join Date
    Oct 2013
    Posts
    207
    Small update: After analysis by a user on Hydrogenaud.io who owns the exact same CD, it was concluded that the errors are in fact mastering errors.
    Living Room: RPI2+HifiBerry DAC+ Pro & piCorePlayer
    Attic: RPI2+HifiBerry DAC+ RCA & piCorePlayer
    Other rooms: 6x SB Radio
    LMS: Version 8.3.0 on Xubuntu 22.04LTS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •