title
Products            Buy            Support Forum            Professional            About            Codec Central
 
Results 1 to 14 of 14

Thread: FLAC encoding produces corrupt file for short silent track

  1. #1

    Join Date
    Feb 2014
    Posts
    10

    FLAC encoding produces corrupt file for short silent track

    Hi,

    I just ripped some CDs to FLAC and had an issue with the FLAC endoder: On one of the CDs, there is a 15 second silent track separating the regular album from two bonus tracks. The FLAC file for this track cannot be properly read in foobar2000 while all other tracks can. If I encode to MP3, the file is read without problems. The reults is also fine if I rip to FLAC using EAC, so I suppose it is not an issue of the FLAC encoder, but of the dBpa implementation. Any ideas how to solve this? An even shorter non-silent track on the CD is encoded properly.

    Cheers,

    rumpel

    P.S.: I am writing about track 19 on "NMZS - Der Ekelhafte", if anyone is interested or wants to check.

  2. #2

    Join Date
    Feb 2014
    Posts
    10

    Re: FLAC encoding produces corrupt file for short silent track

    Hi,

    I just noticed that EAC used FLAC 1.2.1 (came with installer) while dBpa used FLAC 1.3.0. So it may also be a FLAC issue. I wanted to check by encoding to FLAC 1.3.0 with EAC, but FLAC 1.3.0 Windows binaries seems to be not available online anymore. Does anyone know why?

    Cheers,

    rumpel

  3. #3
    Administrator
    Join Date
    Apr 2002
    Posts
    40,657

    Re: FLAC encoding produces corrupt file for short silent track

    This flac file, right click on it >> Convert To >> Test Conversion

    does it show errors?

  4. #4

    Join Date
    Feb 2014
    Posts
    10

    Re: FLAC encoding produces corrupt file for short silent track

    Quote Originally Posted by Spoon View Post
    This flac file, right click on it >> Convert To >> Test Conversion

    does it show errors?
    It does not show any errors. The file is only 7 KB large (like the EAC ripped one), so it would not be a problem to send it to you. Should neither be a copyright issue as it only contains (digital) silence.

  5. #5
    Administrator
    Join Date
    Apr 2002
    Posts
    40,657

    Re: FLAC encoding produces corrupt file for short silent track


  6. #6
    Administrator
    Join Date
    Apr 2002
    Posts
    40,657

    Re: FLAC encoding produces corrupt file for short silent track

    The file was corrupted, it looks like:

    cd ripper has not finished with it, at the end of ripping ID tags are written and the file is updated with sample count etc. This did not happen for this file, Where do you rip to? a network drive or locally? do you have any security software?

  7. #7

    Join Date
    Feb 2014
    Posts
    10

    Re: FLAC encoding produces corrupt file for short silent track

    Quote Originally Posted by Spoon View Post
    cd ripper has not finished with it, at the end of ripping ID tags are written and the file is updated with sample count etc. This did not happen for this file, Where do you rip to? a network drive or locally? do you have any security software?
    I rip to a local hard drive. Tried it twice yesterday and once again a minute ago, same problem. The only security software running is MS Security Essentials.

  8. #8
    Administrator
    Join Date
    Apr 2002
    Posts
    40,657

    Re: FLAC encoding produces corrupt file for short silent track

    Try ripping to wave, what size is the file?

  9. #9

    Join Date
    Feb 2014
    Posts
    10

    Re: FLAC encoding produces corrupt file for short silent track

    Quote Originally Posted by Spoon View Post
    Try ripping to wave, what size is the file?
    Ripping to Wave results in an corrupt files of only 178 Bytes and gives this message:
    Code:
    Information ripping to Wave, 'Track 19' to 'F:\NMZS - Der Ekelhafte (2013)\19 NMZS - (Stille).wav'
       Track 19:  Ripped LBA 203419 to 204544 (0:15) in 0:02. Filename: F:\NMZS - Der Ekelhafte (2013)\19 NMZS - (Stille).wav
         Secure  [Pass 1 & 2]
         CRC32: B8C4F957     AccurateRip CRC: 00000000 (CRCv2)     [DiscID: 021-00253eee-0242162d-3c0b5b15-19]
       Warning 'RiffSizeLeft != FileSizeLeft' must be extra data on end of file.  [clRIFFHandler::ScanFile]
       Error calculated total RIFF chunk size differs from file.  [clRIFFHandler::ScanFile]
    Actually, ripping to MP3 also only works partly. I get the audio in the file, but no meta data. And the AccurateRip CRC seems strange:
    Code:
    Information ripping to mp3 (Lame), 'Track 19' to 'F:\NMZS - Der Ekelhafte (2013)\19 NMZS - (Stille).mp3'
       Track 19:  Ripped LBA 203419 to 204544 (0:15) in 0:02. Filename: F:\NMZS - Der Ekelhafte (2013)\19 NMZS - (Stille).mp3
         Secure  [Pass 1 & 2]
         CRC32: B8C4F957     AccurateRip CRC: 00000000 (CRCv2)     [DiscID: 021-00253eee-0242162d-3c0b5b15-19]

  10. #10
    Administrator
    Join Date
    Apr 2002
    Posts
    40,657

    Re: FLAC encoding produces corrupt file for short silent track

    Do you have any DSP effects running?

  11. #11

    Join Date
    Feb 2014
    Posts
    10

    Exclamation Re: FLAC encoding produces corrupt file for short silent track

    Quote Originally Posted by Spoon View Post
    Do you have any DSP effects running?
    Only Replaygain. And that obviously is the reason for the problem. If I deactivate it, I can rip to Wave and FLAC without problems:
    Code:
    Information ripping to Wave, 'Track 19' to 'I:\NMZS - Der Ekelhafte (2013)\19 NMZS - (Stille).wav'
       Track 19:  Ripped LBA 203419 to 204544 (0:15) in 0:00. Filename: I:\NMZS - Der Ekelhafte (2013)\19 NMZS - (Stille).wav
         Secure  [Pass 1 & 2]
         CRC32: B8C4F957     AccurateRip CRC: 00000000 (CRCv2)     [DiscID: 021-00253eee-0242162d-3c0b5b15-19]
    Code:
    Information ripping to FLAC, 'Track 19' to 'I:\NMZS - Der Ekelhafte (2013)\19 NMZS - dsdsdsds.flac'
       Track 19:  Ripped LBA 203419 to 204544 (0:15) in 0:00. Filename: I:\NMZS - Der Ekelhafte (2013)\19 NMZS - dsdsdsds.flac
         Secure  [Pass 1 & 2]
         CRC32: B8C4F957     AccurateRip CRC: 00000000 (CRCv2)     [DiscID: 021-00253eee-0242162d-3c0b5b15-19]
    Maybe it is because the algorithm calculates an infinite track gain for a track peak of 0? Foobar2000 returns no track gain value when scanning this file. I think that makes sense.

    Zhe integrated ReplayGain scan was one main reason for me to buy dBpa, so I would of course like to have a reliably working ReplayGain DSP.

  12. #12
    Administrator
    Join Date
    Apr 2002
    Posts
    40,657

    Re: FLAC encoding produces corrupt file for short silent track


  13. #13

    Join Date
    Feb 2014
    Posts
    10

    Re: FLAC encoding produces corrupt file for short silent track

    Quote Originally Posted by Spoon View Post
    With the beta, the track rips OK. But I get a track gain of -9223371830 dB (!). Album gain is OK nevertheless and I have no problems with that in foobar. But I do not know how other players might handle this extreme value. I think it would be better to just write no track gain value (like foobar does).

  14. #14
    Administrator
    Join Date
    Apr 2002
    Posts
    40,657

    Re: FLAC encoding produces corrupt file for short silent track


Tags for this Thread

Posting Permissions

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