Batch Finding corrupt dead sounds

Discussion in 'Genre Specific Production' started by curtified, Oct 12, 2022.

  1. curtified

    curtified Rock Star

    Joined:
    Feb 3, 2015
    Messages:
    650
    Likes Received:
    441
    Is there a tool to search for audio files that are corrupt? Every once and a while I go into packs that didn't download properly and find sounds that won't play. They are their full file size but they have no use because they are corrupt. Is there a tool I could use to batch-locate them and delete them?
     
  2.  
  3. xorome

    xorome Audiosexual

    Joined:
    Sep 28, 2021
    Messages:
    909
    Likes Received:
    690
    No idea if you need a GUI.
    If you're handy with the command line, grab a copy of fd and ffmpeg:

    ffmpeg -loglevel error -hide_banner -nostats -i the_file_to_check.wav -f null -

    It'll stay silent if the file works and spit out an error if the file is corrupt.

    For all wav, flac and aif files in a folder and all its subfolders:

    fd -ewav -eflac -eaif -tf -x ffmpeg -loglevel error -hide_banner -nostats -i "{}" -f null -

    Same deal. Silence if the files decode correctly, error msg if not.
     
Loading...
Loading...