Menu

#94 "ERROR: during analysis (decoding file)"

closed
None
5
2007-11-07
2007-10-30
Anonymous
No

I have a lot of FLAC files that I created using the official encoder. They all play perfectly and "metaflac --list" works fine too.

However, for a majority of the files, "metaflac --add-replay-gain" terminates with "ERROR: during analysis (decoding file)".

I'm running version 1.2.1 of the flac tools.

Discussion

  • Josh Coalson

    Josh Coalson - 2007-11-02

    Logged In: YES
    user_id=78173
    Originator: NO

    can you host a problem file somewhere, along with the exact metaflac command you used?

     
  • Josh Coalson

    Josh Coalson - 2007-11-02
    • assigned_to: nobody --> jcoalson
     
  • Paul

    Paul - 2007-11-02

    Logged In: YES
    user_id=1078709
    Originator: NO

    Here's a file:
    http://www.sendspace.com/file/poiycs

    The command that fails is "metaflac --add-replay-gain [filename]".

     
  • Josh Coalson

    Josh Coalson - 2007-11-07
    • status: open --> closed
     
  • Josh Coalson

    Josh Coalson - 2007-11-07

    Logged In: YES
    user_id=78173
    Originator: NO

    the FLAC file is corrupted, so replaygain cannot be calculated:

    $ flac -t 01\ Azita\ -\ Better\ end\ in\ time.flac

    flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson
    flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
    welcome to redistribute it under certain conditions. Type `flac' for details.

    01 Azita - Better end in time.flac: testing, 80% complete01 Azita - Better end in time.flac: *** Got error code 2:FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH

    01 Azita - Better end in time.flac: ERROR while decoding data
    state = FLAC__STREAM_DECODER_READ_FRAME

     
  • Paul

    Paul - 2007-11-07

    Logged In: YES
    user_id=1078709
    Originator: NO

    How can I proceed to figure out why such a large percentage of my FLAC library is similarly corrupted, then? I rip from CD using cdparanoia and flac.

     
  • Josh Coalson

    Josh Coalson - 2007-11-07

    Logged In: YES
    user_id=78173
    Originator: NO

    dunno, I've been getting a lot of reports about errors transferring files (not just FLAC) to some bad external HD (usually USB)

     
  • Paul

    Paul - 2007-11-07

    Logged In: YES
    user_id=1078709
    Originator: NO

    These files are all on the same drive they were created on, and the drive tests out healthy.

    Is it possible that there could be a way to fix the corrupted files? Since the audio plays fine, with maybe just a faint click at the point of corruption. Or could "metaflac --add-replay-gain" be told to skip over the little error in the same way that the audio players do? I have no desire to re-rip the bad files, since there are thousands of them and they all sound fine.

     
  • Josh Coalson

    Josh Coalson - 2007-12-17

    Logged In: YES
    user_id=78173
    Originator: NO

    decoding with the -F option to flac will allow it to skip over errors and decode as much as possible. how audio players handle it depends, some stop on any error, some act skip over errors, some have an option.

     

Log in to post a comment.

MongoDB Logo MongoDB