FLAC Recovery

Windows · PowerShell 7 · Python 3.13

✓ Corruption detection
✓ Lossless recovery
✓ Backup and undo
✓ Automated self-testing
✓ Local processing
✓ CSV and JSON reports
✓ Persistent recovery tracking
✓ Album-based rechecking
✓ Automatic resolved archiving
✓ Outstanding album checklists
✓ Guided version upgrades
✓ Multi-threaded processing

Recover the audio. Preserve the quality. Protect the original.

FLAC Recovery v2.3.2 — Public Edition

Detect corruption. Recover audio. Verify replacements. Maintain a healthy FLAC library.

FLAC Recovery is a Windows-based FLAC integrity verification, corruption recovery and ongoing library management utility designed for music collectors, archivists, audio enthusiasts and anyone maintaining a large lossless music collection.

Unlike traditional FLAC testing utilities that simply identify corrupted files, FLAC Recovery provides a complete workflow for detecting, classifying, repairing, replacing, validating and tracking corrupted audio files until the affected collection has been restored.

Version 2.3.2 introduces automatic resolved album archiving, persistent recovery tracking, album-based rechecking, guided upgrades and dedicated outstanding and resolved album reports.

Whether you have a few hundred FLAC files or a collection containing tens of thousands of albums, FLAC Recovery helps you identify what is damaged, determine what can be recovered and manage what still needs to be replaced.

Key Features

  • FLAC corruption detection
  • Lossless audio recovery where supported
  • Persistent recovery inventory
  • Album-based integrity rechecking
  • Automatic resolved album archiving
  • Outstanding album and track checklists
  • Renamed track and changed track count support
  • Manual album directory mapping
  • Guided previous-version migration
  • Backup and undo functionality
  • SHA-256 file verification
  • Automated self-testing
  • Multi-threaded file processing
  • Resume and healthy-file caching
  • Real-time progress and estimated completion times
  • CSV and JSON reporting
  • Interactive PowerShell menu
  • Local processing without cloud dependencies

Why FLAC Recovery Was Created

FLAC Recovery was developed following the discovery of widespread corruption within a personal music collection containing more than 88,000 FLAC files.

Although conventional FLAC integrity testing tools could identify damaged files, they provided little assistance in determining whether the original audio could be recovered.

Replacing every affected album would have required considerable time, effort and potentially significant expense, particularly for rare, discontinued or difficult-to-find releases.

The goal was to develop a utility capable of:

  • Identifying corrupted FLAC files.
  • Determining the nature of the corruption.
  • Recovering audio whenever it could be reliably validated.
  • Preserving original files until repairs were verified.
  • Identifying files requiring manual replacement.
  • Tracking recovery progress over time.
  • Confirming that manually acquired replacements are healthy.

What began as a personal recovery project has evolved into a comprehensive FLAC integrity and recovery management utility.

Real-World Recovery Results

FLAC Recovery was developed and refined through extensive testing against a real-world music collection.

MetricResult
FLAC files scanned88,004
Originally healthy files86,519
Files requiring attention1,485
Files recovered, installed and validated through the recovery project1,178
Files remaining after software-assisted recovery307
Software-assisted recovery project success rate79.33%

Following additional manual album replacements and targeted validation, another 85 previously affected file paths were confirmed healthy.

Recovery progressFiles
Software-assisted recovery1,178
Subsequently confirmed healthy85
Total resolved1,263
Remaining validation failures212
Missing paths requiring reconciliation10
Overall resolution rate at this checkpoint85.05%

These results represent a historical checkpoint from the broader FLAC Recovery development project, including earlier recovery engines, specialized recovery procedures and manually acquired replacements.

They are not a guarantee that the current public release will achieve the same recovery rate against another collection. Recovery success depends heavily on the type, location and severity of the corruption.

The Complete Recovery Lifecycle

FLAC Recovery is designed around an ongoing recovery process rather than a single integrity scan.

Step 1 — Scan

Scan your FLAC collection using the official Xiph FLAC decoder to identify corrupted or unreadable files.

Step 2 — Classify

Analyze affected files to determine whether supported recovery techniques may be able to repair the damage.

Step 3 — Recover

Generate repaired candidates for supported corruption types and validate them before allowing installation.

Step 4 — Replace

Safely install validated repaired files or manually acquire replacement albums for files that cannot be recovered.

Step 5 — Recheck

Validate the current contents of previously affected albums, including newly acquired replacement files.

Step 6 — Archive

Automatically move successfully validated albums out of the outstanding recovery list while preserving their recovery history.

Step 7 — Repeat

Continue resolving outstanding albums until no known recovery issues remain.

Periodic full-library scans can then be performed to identify newly developed corruption.

FLAC Integrity Verification

FLAC Recovery uses the official Xiph FLAC decoder to perform native integrity testing.

Depending on the information available within the file, validation can detect:

  • Invalid FLAC frame headers.
  • Frame synchronization errors.
  • Frame CRC failures.
  • PCM MD5 checksum mismatches.
  • Unexpected end-of-stream conditions.
  • Invalid sample counts.
  • Truncated audio streams.
  • Empty files.
  • Completely zero-filled files.
  • Certain malformed metadata conditions.
  • Unexpected trailing data.
  • Other native decoder errors.

Files that pass native validation are classified as healthy.

A successful integrity test establishes that the current file passes native FLAC validation. It does not independently prove that the file matches a particular original CD, digital release or historical recording.

FLAC files without an embedded PCM MD5 checksum may also pass native validation, although the additional embedded checksum verification is unavailable.

Supported Recovery Techniques

FLAC Recovery includes specialized recovery techniques designed to recover damaged files without intentionally modifying the original audio samples.

Trailing Data Removal

Some corrupted FLAC files contain unexpected data appended after an otherwise valid audio stream.

FLAC Recovery can investigate supported trailing-data conditions and attempt to remove invalid trailing bytes while preserving the valid audio stream.

A repaired candidate must pass native validation before being accepted.

Trailing ID3v1 Metadata Recovery

Certain FLAC files contain trailing ID3v1 metadata that may interfere with proper decoding.

Where supported, FLAC Recovery can remove the problematic trailing metadata and validate the remaining FLAC stream.

Repeated Data and Terminal Replay Recovery

Some corruption conditions cause previously existing data to be repeated near the end of a file.

FLAC Recovery includes specialized detection and recovery logic for supported terminal replay conditions, including exact 6,144-byte trailing replay patterns.

The repaired candidate must pass native validation against the unchanged embedded PCM MD5 checksum.

Fixed-Block FLAC Frame Analysis

FLAC Recovery can analyze supported fixed-block FLAC streams to identify frame boundaries and investigate certain terminal corruption conditions.

Frame analysis uses bounded searches and structural validation to avoid accepting unsupported or ambiguous repair candidates.

Single-Bit Frame Correction

Under certain conditions, a damaged FLAC frame may contain a correctable single-bit error.

FLAC Recovery can investigate supported frame CRC failures and attempt unique single-bit corrections.

The recovery engine supports corrections across up to four damaged frames under its defined analysis limits.

A candidate is only accepted when the required structural checks and native FLAC validation succeed.

Recovery Evidence

Supported recovery operations preserve relevant evidence, including removed data and cryptographic hashes, to provide an additional record of the recovery process.

What Can and Cannot Be Recovered?

Not every corrupted FLAC file can be repaired.

Corruption typeDetectionPotential recovery
Trailing invalid dataYesSupported cases
Trailing ID3v1 metadataYesSupported cases
Exact terminal replayYesSupported cases
Certain fixed-block terminal errorsYesSupported cases
Certain single-bit frame errorsYesSupported cases
PCM MD5 mismatchYesDepends on underlying damage
Invalid frame headersYesLimited
Missing or invalid STREAMINFO informationYesLimited
Truncated audioYesGenerally requires replacement if audio is missing
Completely empty filesYesNo
Completely zero-filled filesYesNo
Extensive overwritten audioOftenGenerally no
Missing original audio samplesOftenNo
Variable-block stream corruptionYesSpecialized repair not currently supported

FLAC Recovery does not attempt to recreate missing audio, fabricate samples or regenerate an embedded PCM checksum simply to make a corrupted file appear healthy.

When the software cannot establish a sufficiently validated repair, the file remains outstanding for further investigation or replacement.

Lossless Recovery Philosophy

The primary objective of FLAC Recovery is to preserve the original audio whenever possible.

The software does not intentionally:

  • Convert FLAC files to lossy formats.
  • Upsample audio.
  • Downsample audio.
  • Change audio bit depth.
  • Normalize audio volume.
  • Apply audio filters.
  • Replace missing samples with silence.
  • Recalculate an embedded PCM MD5 checksum to conceal corruption.
  • Automatically install unverified repair candidates.

Supported repair candidates must satisfy the applicable recovery checks and native FLAC validation requirements.

Where an unchanged embedded PCM MD5 checksum is available and required by the recovery method, it provides additional evidence that the decoded audio remains consistent with the checksum stored in the original file.

This is distinct from independently authenticating the audio against an external, known-good historical source.

Persistent Recovery Inventory

Introduced in version 2.3.0, the persistent recovery inventory transforms FLAC Recovery from an individual file repair utility into an ongoing recovery management solution.

Previously, each scan produced a report identifying corrupted files. Users then needed to manually track which files had been repaired or replaced.

FLAC Recovery now maintains an ongoing inventory of affected albums and their current validation status.

The recovery inventory tracks:

  • Previously affected album directories.
  • Original affected file paths.
  • Current album directory mappings.
  • Current FLAC validation results.
  • Outstanding recovery issues.
  • Successfully resolved albums.
  • Missing albums.
  • Mixed-format albums.
  • Historical affected file information.
  • Current album validation information.

The inventory is maintained between software executions, allowing users to continue their recovery project without repeatedly scanning their entire music collection.

Album-Based Rechecking

One of the most significant improvements introduced in version 2.3.0 is album-based rechecking.

Traditional file-based rechecking relies on the exact filenames and paths recorded during an earlier scan.

This creates problems when replacement albums contain:

  • Different track names.
  • Different track numbering.
  • Additional bonus tracks.
  • Fewer tracks.
  • Different release editions.
  • Remastered audio.
  • Different disc arrangements.
  • Updated file naming conventions.

FLAC Recovery now discovers the current FLAC files within a tracked album directory rather than relying exclusively on the original filenames.

For example, an originally affected 12-track album may be replaced with a 15-track deluxe edition.

Instead of reporting the original filenames as missing, FLAC Recovery can validate all 15 current tracks within the tracked album directory.

Replacement scenarioFLAC Recovery behavior
Same filename with replacement audioValidates the replacement
Renamed tracksDiscovers current filenames
Changed track numberingDiscovers current files
Additional tracksValidates additional tracks
Fewer tracksValidates current album contents
Different edition in the same directoryValidates current album contents
Renamed album directoryRequires album mapping
Missing album directoryRemains outstanding
Album replaced with MP3 filesReports no FLAC files
Mixed FLAC and other audio formatsReports mixed format
Newly acquired corrupted FLACRemains outstanding

Album-based rechecking validates the files currently present. It does not independently verify whether a particular release contains every expected track.

Automatic Resolved Album Archiving

New in version 2.3.2, FLAC Recovery automatically separates successfully resolved albums from outstanding recovery issues.

There is no need to manually remove healthy albums from a spreadsheet or maintain a separate replacement checklist.

Consider a collection with 64 affected albums.

After replacing and successfully validating 30 albums, FLAC Recovery automatically separates the inventory into:

Recovery statusAlbums
Originally affected64
Successfully resolved30
Outstanding34
Recovery progress46.88%

The next standard recheck will examine only the 34 outstanding albums.

The 30 successfully resolved albums remain in the historical recovery inventory but are excluded from the active replacement list.

As more albums are repaired or replaced, the outstanding list becomes progressively smaller.

If a future scan or full affected-album recheck discovers new corruption within a previously resolved album, that album automatically returns to the outstanding list.

Archiving is logical and non-destructive. No music files or recovery history are deleted.

Recheck vs. Recheck All Affected

FLAC Recovery provides two different album-based rechecking options.

Recheck Outstanding Albums

This is the recommended option for regular use during an ongoing recovery project.

Only albums that remain outstanding are selected for validation.

Previously resolved albums are skipped, reducing unnecessary processing.

.\Invoke-FlacRecovery.ps1 -Mode Recheck -Workers 4

Recheck All Affected Albums

This option validates every album within the recovery inventory, including albums that were previously resolved.

It is useful for periodic verification or performing a final validation after completing a recovery project.

.\Invoke-FlacRecovery.ps1 -Mode Recheck -AllAffected -Workers 4

Full Library Scan

A full scan examines the entire configured FLAC collection and can identify corruption outside the existing recovery inventory.

.\Invoke-FlacRecovery.ps1 -Mode Scan -Workers 4
FunctionRecheckRecheck All AffectedFull Scan
Outstanding albumsYesYesYes
Previously resolved albumsNoYesYes
Previously unaffected albumsNoNoYes
Discover new corruption outside inventoryNoNoYes
Recommended for regular replacement validationYesOccasionallyNo

Outstanding and Resolved Album Reports

Version 2.3.2 introduces dedicated reports that make ongoing recovery management significantly easier.

RemainingAlbums.csv

Contains only albums that have not yet been successfully resolved.

This report can be used as an active replacement shopping list when searching for replacement downloads, CDs or other legitimate sources.

RemainingTracks.csv

Contains outstanding track-level validation failures and applicable album-level issues.

ResolvedAlbums.csv

Contains previously affected albums that have successfully passed current validation.

AlbumChecklist.csv

Contains the complete tracked album inventory, including both outstanding and resolved albums.

RecoveryInventory.json

Contains structured recovery inventory information for persistent tracking and historical reporting.

Summary.json

Contains summary statistics for the associated operation.

Reports are generated in timestamped directories, allowing previous results to be retained for historical comparison.

Recovery Status

The Recovery Status function provides a summary of the stored recovery inventory without decoding audio files again.

.\Invoke-FlacRecovery.ps1 -Mode Status

This allows users to quickly review their progress, including outstanding and resolved album counts.

Recovery Status reflects the most recently recorded validation information. It is not a new integrity scan.

Renamed Album Directory Mapping

Album directories may change when using music management applications, reorganizing a collection or replacing an album with a different release.

FLAC Recovery supports explicitly associating an original affected album directory with its current location.

For example:

.\Invoke-FlacRecovery.ps1 -Mode MapAlbum `
    -OldAlbum 'D:\Music\Artist\Original Album' `
    -NewAlbum 'D:\Music\Artist\Replacement Album'

After mapping the album, run a recheck to validate its current contents.

Album mapping is also available through the interactive menu.

Automatic fuzzy album matching and direct Lidarr API integration are not currently implemented. Explicit mapping avoids incorrectly associating an unrelated album with an existing recovery record.

Guided Upgrade and Migration

Introduced in version 2.3.1, the guided upgrade process helps existing users migrate to newer versions without restarting their recovery project.

When launched interactively, FLAC Recovery can discover supported previous installations located alongside the new installation directory.

The upgrade process can migrate supported information such as:

  • Existing library configuration.
  • Previous scan results.
  • Previously affected album records.
  • Existing persistent recovery inventories.

Users can select a detected previous installation or choose to start fresh.

Previous installations and their historical reports are preserved.

Historical backups, repair manifests, recovery evidence and scan caches may remain in their original installation directories. Users should retain those directories when they contain information required for previous recovery transactions.

Imported historical records may require a fresh album-based recheck before their current health can be established.

Backup and Undo Protection

FLAC Recovery separates recovery candidate generation from installation.

During a repair operation, the original corrupted file remains unchanged while a repaired candidate is generated and validated.

Before installing a repaired candidate, FLAC Recovery performs applicable checks including:

  • Original source SHA-256 verification.
  • Repaired candidate SHA-256 verification.
  • Recovery evidence verification.
  • Native FLAC validation.
  • Available disk space checks.
  • Original backup verification.

The original file is preserved in a backup location before the repaired candidate is installed.

After installation, the replacement is validated again.

If post-installation validation fails, the software attempts rollback when the transaction state permits safe restoration.

The Undo function allows users to restore the exact original file from its verified backup.

Restoring an original file may also restore its original corruption.

Existing backups are not automatically overwritten or deleted.

SHA-256 Verification

FLAC Recovery uses SHA-256 cryptographic hashing throughout its recovery and replacement workflow.

SHA-256 verification helps establish that:

  • The original file has not unexpectedly changed.
  • The staged candidate matches the validated candidate.
  • The backup matches the original file.
  • The installed file matches the intended replacement.
  • Recovery evidence has not unexpectedly changed.

These checks provide additional protection against accidental file substitution and unexpected changes between recovery operations.

Multi-Threaded Processing

Large FLAC collections can contain tens of thousands of files and require significant processing time.

FLAC Recovery supports configurable parallel processing workers.

.\Invoke-FlacRecovery.ps1 -Mode Scan -Workers 4

Additional workers can be configured depending on available CPU resources, storage performance and system memory.

For example:

.\Invoke-FlacRecovery.ps1 -Mode Scan -Workers 8

More workers do not always result in faster processing. Storage throughput and available system resources can become limiting factors.

Four workers are a reasonable starting point for many systems.

Live Progress and Estimated Completion Time

FLAC Recovery provides progress information during supported scanning operations, including:

  • File enumeration progress.
  • Total files identified.
  • Files processed.
  • Healthy file counts.
  • Non-healthy file counts.
  • Processing throughput.
  • Elapsed time.
  • Estimated time remaining.
  • Resume cache hits.

This is particularly useful when scanning large music collections that may require several hours to complete.

Resume and Intelligent Caching

FLAC Recovery includes a persistent healthy-file validation cache.

When Resume is enabled, previously validated healthy files may be skipped from native decoding when the applicable file hash and decoder version checks match.

.\Invoke-FlacRecovery.ps1 -Mode Scan -Resume -Workers 4

Files that have changed or do not meet cache reuse requirements are validated again.

Previously corrupted files are not treated as healthy simply because they appeared in an earlier report.

Resume can reduce unnecessary decoding, although calculating file hashes still requires reading file contents.

The cache is not a backup and does not replace periodic integrity verification.

Operating Modes

FLAC Recovery provides the following operating modes.

ModeDescription
MenuLaunches the interactive menu
ScanScans the configured FLAC library
ClassifyInvestigates potential recovery methods
DryRunPreviews supported recovery operations
RepairGenerates and stages validated repair candidates
ReplaceDryRunPreviews installation of staged candidates
ReplaceInstalls validated candidates with backup protection
AuditVerifies previously installed repairs
UndoRestores original files from verified backups
ImportImports previous recovery results
RecheckValidates outstanding affected albums
StatusDisplays stored recovery progress
MapAlbumAssociates a renamed or relocated album
ViewOutstandingGenerates the outstanding album view
ViewResolvedGenerates the resolved album view

The AllAffected parameter can be used with Recheck to include previously resolved albums.

Interactive Menu

FLAC Recovery includes an interactive PowerShell menu for users who prefer not to memorize command-line parameters.

Launch the software without specifying an operating mode:

.\Invoke-FlacRecovery.ps1

Available menu options include:

OptionFunction
1Scan library
2Classify corruption
3Dry run
4Repair and stage
5Preview replacement
6Replace
7Audit
8Undo
9Check requirements
10Run regression tests
11Run integration self-test
12Open reports
13Recovery capabilities
14Configuration
15Help
16Recheck outstanding albums
17Recovery status
18Import prior results
19Map renamed album
20View outstanding albums
21View resolved albums
22Recheck all affected albums
0Exit

Most users can perform their ongoing recovery operations entirely through the interactive menu.

System Requirements

Required Software

  • Microsoft Windows
  • PowerShell 7
  • Python 3.13
  • Xiph FLAC command-line tools

FLAC Recovery has been developed using Xiph FLAC 1.5.0.

No additional Python packages are required through pip.

Recommended Hardware

  • Multi-core processor
  • SSD storage where practical
  • Sufficient free storage for temporary files
  • Sufficient storage for recovered candidates and original backups
  • NTFS storage for staging and backup operations

Storage requirements vary depending on collection size and the number of files requiring recovery.

Installing Required Software

Required components can be installed using Windows Package Manager.

Install PowerShell 7

winget install -e --id Microsoft.PowerShell

Install Python 3.13

winget install -e --id Python.Python.3.13

Install Xiph FLAC

winget install -e --id Xiph.FLAC

Restart PowerShell after installing the required components.

Official downloads are also available from:

FLAC Recovery checks for required components but does not automatically install third-party software.

Installation

  1. Download the latest FLAC Recovery ZIP package.
  2. Extract the entire archive to a directory of your choice.
  3. Open PowerShell 7.
  4. Navigate to the extracted directory.
  5. Unblock the extracted files.
  6. Launch FLAC Recovery.

Example:

Set-Location 'C:\Tools\FlacRecovery-v2.3.2-Public'

Get-ChildItem -Recurse -File | Unblock-File

.\Invoke-FlacRecovery.ps1

Administrator privileges are generally not required when the user has the necessary permissions to access the music library and recovery directories.

Do not extract a new release directly over an existing installation containing recovery records or backups.

Checking Requirements

Before performing a recovery operation, users can verify that the required software is available.

.\Invoke-FlacRecovery.ps1 -CheckRequirements

The prerequisite checker verifies applicable requirements such as:

  • PowerShell version.
  • Python availability and version.
  • FLAC executable availability.
  • Required supporting files.
  • Python module availability.

Normal recovery operations also perform additional applicable checks for library access, workspace configuration and available storage.

Automated Testing

FLAC Recovery includes automated regression and integration testing.

The tests use disposable synthetic audio files rather than the user’s personal music collection.

Regression Tests

.\Invoke-FlacRecovery.ps1 -RunTests

Regression tests cover applicable recovery algorithms, inventory tracking, migration and replacement safety behavior.

Full Integration Self-Test

.\Invoke-FlacRecovery.ps1 -SelfTest

The integration self-test creates a temporary test environment and exercises the supported recovery workflow.

Test coverage includes:

  • Healthy FLAC validation.
  • Corruption detection.
  • Synthetic damaged audio.
  • Dry-run behavior.
  • Recovery candidate generation.
  • Original file preservation.
  • Replacement preview.
  • Backup creation.
  • Validated replacement.
  • Installed file auditing.
  • Undo and restoration.
  • Resume cache invalidation.

The expanded regression suite additionally covers recovery inventory tracking, changed album contents, upgrade migration and outstanding/resolved album filtering.

Test reports and logs are retained in the temporary directory printed by the self-test.

Users are encouraged to run the self-test before performing production recovery operations.

Quick Start — New Users

Step 1 — Launch FLAC Recovery

.\Invoke-FlacRecovery.ps1

Step 2 — Configure and Scan Your Music Library

Select Scan from the interactive menu or use:

.\Invoke-FlacRecovery.ps1 -Mode Scan `
    -MusicLibrary 'D:\Music' `
    -Workers 4 `
    -SaveConfig

The initial scan establishes a baseline and records affected albums in the persistent recovery inventory.

Step 3 — Review the Results

Open the reports directory:

Invoke-Item .\Reports

Review the generated scan results and recovery inventory reports.

Step 4 — Classify Corrupted Files

Use the actual Results.csv generated by the initial scan.

.\Invoke-FlacRecovery.ps1 -Mode Classify `
    -InputCsv '.\Reports\SCAN-RUN\Results.csv' `
    -Workers 4

Replace SCAN-RUN with the actual timestamped report directory.

Step 5 — Attempt Supported Repairs

.\Invoke-FlacRecovery.ps1 -Mode Repair `
    -InputCsv '.\Reports\CLASSIFY-RUN\Results.csv' `
    -Workers 4

Successfully validated candidates are staged separately from the original music files.

Step 6 — Preview and Install Validated Repairs

Use the RepairManifest.json generated by the repair operation.

.\Invoke-FlacRecovery.ps1 -Mode ReplaceDryRun `
    -Manifest '.\Reports\REPAIR-RUN\RepairManifest.json'

After reviewing the results, install a small pilot group of repaired files.

.\Invoke-FlacRecovery.ps1 -Mode Replace `
    -Manifest '.\Reports\REPAIR-RUN\RepairManifest.json' `
    -Limit 5 `
    -ConfirmReplacement

Audit the installed pilot group before proceeding with the remaining repairs.

Step 7 — Replace Unrecoverable Albums

Acquire replacement files or albums from legitimate sources for the remaining recovery issues.

Step 8 — Recheck Outstanding Albums

.\Invoke-FlacRecovery.ps1 -Mode Recheck -Workers 4

Successfully validated albums are automatically removed from the outstanding recovery list.

Step 9 — Continue Until Resolved

Repeat the replacement and recheck process until no outstanding recovery issues remain.

Quick Start — Existing Users

Users upgrading from supported earlier releases do not necessarily need to repeat their initial full-library scan.

  1. Extract the new version alongside the previous installation.
  2. Unblock the extracted files.
  3. Launch FLAC Recovery.
  4. Select the previous installation when prompted by the upgrade wizard.
  5. Allow the supported recovery data to migrate.
  6. Run Recheck to validate current affected album contents.
.\Invoke-FlacRecovery.ps1

If automatic migration is unavailable, previous scan or classification results can be imported manually through the interactive menu.

Alternatively:

.\Invoke-FlacRecovery.ps1 -Mode Import `
    -MusicLibrary 'D:\Music' `
    -InputCsv 'D:\PreviousReports\Results.csv' `
    -SaveConfig

Import the original affected baseline when available rather than only the most recent unresolved list.

This preserves a more complete record of previously affected albums.

Common Usage Examples

Scan an Entire FLAC Library

.\Invoke-FlacRecovery.ps1 -Mode Scan `
    -MusicLibrary 'D:\Music' `
    -Workers 4 `
    -SaveConfig

Resume a Previous Scan

.\Invoke-FlacRecovery.ps1 -Mode Scan `
    -Resume `
    -Workers 4

Recheck Outstanding Albums

.\Invoke-FlacRecovery.ps1 -Mode Recheck -Workers 4

Recheck All Previously Affected Albums

.\Invoke-FlacRecovery.ps1 -Mode Recheck `
    -AllAffected `
    -Workers 4

View Outstanding Albums

.\Invoke-FlacRecovery.ps1 -Mode ViewOutstanding

View Resolved Albums

.\Invoke-FlacRecovery.ps1 -Mode ViewResolved

Display Recovery Status

.\Invoke-FlacRecovery.ps1 -Mode Status

Map a Renamed Album

.\Invoke-FlacRecovery.ps1 -Mode MapAlbum `
    -OldAlbum 'D:\Music\Artist\Old Album' `
    -NewAlbum 'D:\Music\Artist\New Album'

Audit Installed Repairs

.\Invoke-FlacRecovery.ps1 -Mode Audit `
    -Manifest '.\Reports\REPAIR-RUN\RepairManifest.json'

Undo Installed Repairs

.\Invoke-FlacRecovery.ps1 -Mode Undo `
    -Manifest '.\Reports\REPAIR-RUN\RepairManifest.json' `
    -ConfirmReplacement

Open Reports

Invoke-Item .\Reports

Display Built-In Help

Get-Help .\Invoke-FlacRecovery.ps1 -Full

Recommended Ongoing Recovery Workflow

Once the initial scan and recovery operations have been completed, most users will regularly use only a few menu options.

TaskMenu option
View albums that still need replacing20 — View outstanding albums
Validate newly acquired replacements16 — Recheck outstanding albums
Review overall recovery progress17 — Recovery status
View successfully resolved albums21 — View resolved albums
Perform final affected-album verification22 — Recheck all affected albums
Discover newly developed corruption1 — Scan library

There is no need to perform another full-library scan every time a replacement album is acquired.

File and Recovery Status Definitions

StatusDescription
HEALTHYCurrent file passed native FLAC validation
CORRUPT_OR_TEST_ERRORNative scan reported corruption or a testing failure
FIXABLEA supported candidate passed recovery validation
STAGEDA validated recovery candidate was saved
REVIEW_REQUIREDDamage requires further investigation or is unsupported
REPLACEMENT_REQUIREDFile requires replacement under the applicable classification
TEST_ERRORValidation could not be completed successfully
READYReplacement preview indicates the candidate is ready
INSTALLEDValidated candidate was installed
ALREADY_INSTALLEDIntended candidate is already installed
INSTALLED_VALIDATEDInstalled repair passed auditing
RESTOREDOriginal file was restored from backup

Album Status Definitions

StatusDescription
HEALTHYAll discovered current FLAC files pass validation
CORRUPTEDOne or more current FLAC files fail validation
PENDINGAlbum has been recorded but requires current validation
ALBUM_NOT_FOUNDTracked album directory could not be located
NO_FLAC_FILESAlbum directory contains no FLAC files
MIXED_FORMATAlbum contains FLAC and other audio formats
TEST_ERRORValidation could not be completed successfully
ENUMERATION_ERRORAlbum contents could not be reliably enumerated

Only albums classified as HEALTHY are included in the resolved album list.

All other album statuses remain outstanding.

Generated Directories and Files

FLAC Recovery creates dedicated working directories to separate reports, recovery candidates, backups and persistent state from the original music library.

Typical directories include:

DirectoryPurpose
ReportsTimestamped operation and recovery reports
StatePersistent recovery inventory and validation cache
RecoveredValidated recovery candidates
BackupOriginal files preserved before replacement
EvidenceRecovery evidence and associated information
LogsOperational logs
TempTemporary recovery workspace

Directory locations can be customized using the documented command-line parameters.

Standard Reports

FileDescription
Results.csvDetailed file-level operation results
Results.jsonStructured file-level operation results
Summary.jsonOperation statistics and summary
RepairManifest.jsonValidated staged recovery candidates
Transactions.jsonlReplacement transaction records
AlbumChecklist.csvComplete affected album inventory
RemainingAlbums.csvOutstanding album checklist
RemainingTracks.csvOutstanding track and album issues
ResolvedAlbums.csvSuccessfully resolved albums
RecoveryInventory.jsonPersistent recovery inventory or report snapshot

The files generated depend on the operation being performed.

Tracking reports may be located within a Tracking subdirectory of the associated operation report.

Advanced Configuration

FLAC Recovery supports configurable paths and processing options for advanced users.

ParameterPurpose
MusicLibraryOriginal music library directory
WorkersNumber of parallel processing workers
InputCsvPrevious results file used as operation input
ManifestRecovery manifest used for replacement operations
LimitLimits the number of selected files
ResumeEnables eligible healthy-file cache reuse
AllAffectedIncludes resolved albums during Recheck
TempPathTemporary workspace location
RecoveredPathRecovery candidate storage location
BackupPathOriginal file backup location
LogsPathOperational log location
ReportsPathReport storage location
StatePathPersistent state location
EvidencePathRecovery evidence location
ProtectPathAdditional protected directory roots
PythonPathExplicit Python executable location
FlacExplicit FLAC executable location
SaveConfigSaves supported configuration settings
NoOpenReportsPrevents automatic report opening
ConfirmReplacementExplicitly authorizes replacement or restoration
MaxFileMiBMaximum file size for applicable recovery analysis

For complete parameter information, consult the included documentation and built-in PowerShell help.

Safety Recommendations

FLAC Recovery includes multiple safeguards, but users should always exercise caution when performing recovery operations against important collections.

Recommended precautions include:

  • Maintain independent backups whenever possible.
  • Run the automated self-test before production recovery.
  • Pause music management applications during recovery operations.
  • Pause synchronization and automated library modification jobs.
  • Run only one FLAC Recovery instance at a time.
  • Review recovery reports before installing repaired candidates.
  • Test a small group of repaired files before performing bulk replacement.
  • Preserve recovery manifests and original backups.
  • Keep recovery workspaces outside the original music library.
  • Explicitly protect additional library mirrors using ProtectPath.
  • Do not manually modify recovery manifests.
  • Do not delete recovery evidence before completing validation.
  • Do not assume that an interrupted replacement operation completed successfully.

FLAC Recovery does not automatically delete corrupted source files simply because they cannot be repaired.

The software does not provide a guarantee against power loss, hardware failure, external concurrent modifications or every possible filesystem failure.

Privacy and Local Processing

FLAC Recovery operates locally on the user’s computer.

The software does not require:

  • A cloud account.
  • A subscription.
  • Uploading music files.
  • Uploading recovery reports.
  • An online audio database.
  • An external recovery service.

The public distribution does not include personal music library records, private recovery manifests, personal audio files or machine-specific configuration.

Generated reports may contain local filenames, directory paths, file hashes and other potentially private information.

Recovery evidence and backups may contain audio data.

Users should review generated files before sharing them publicly.

Frequently Asked Questions

Does FLAC Recovery repair every corrupted FLAC file?

No. Recovery depends on the type and severity of the corruption. Files containing missing or extensively overwritten audio may require replacement.

Will FLAC Recovery modify my original files during a scan?

No. Scan and Recheck are read-only operations with respect to your music files.

Does FLAC Recovery automatically replace corrupted files?

No. Supported repair candidates are staged separately. Installation requires a dedicated replacement operation with confirmation.

Can FLAC Recovery restore missing audio?

No. The software does not fabricate missing audio samples or insert silence to conceal corruption.

Does FLAC Recovery convert my files to MP3?

No. FLAC Recovery is designed for FLAC integrity verification and supported lossless recovery operations.

Do I need to scan my entire collection after replacing an album?

No. Use Recheck to validate outstanding affected albums.

What happens if the replacement album has different filenames?

FLAC Recovery discovers and validates the current FLAC files within the tracked album directory.

What happens if the replacement album has more or fewer tracks?

FLAC Recovery validates the current files. It does not require the replacement to have the same track count as the original affected album.

However, it does not independently verify release completeness.

What happens if an album directory changes?

Use MapAlbum to associate the original tracked directory with the replacement directory, then run Recheck.

Can I hide albums that have already been fixed?

Yes. Starting with version 2.3.2, successfully validated albums are automatically excluded from the outstanding album list.

They remain available in the resolved album report and complete historical inventory.

Can previously resolved albums become outstanding again?

Yes. If a full scan or Recheck All Affected discovers new corruption, the affected album returns to the outstanding list.

What is the difference between Recheck and Recheck All Affected?

Recheck validates only outstanding albums.

Recheck All Affected also validates previously resolved albums.

Neither option scans unrelated albums outside the recovery inventory.

Can I upgrade without rescanning my collection?

Supported previous installations can be migrated using the guided upgrade process or manual report import.

Does FLAC Recovery require Lidarr?

No. FLAC Recovery works independently of music management applications.

Users can use it alongside Lidarr or other music management software, but direct Lidarr API integration is not currently implemented.

Can I use FLAC Recovery with a network drive?

Accessible library paths may be usable, but network storage performance, permissions and filesystem behavior can affect operations.

Local NTFS storage is recommended for staging and backup workspaces.

Why does a large scan take several hours?

FLAC integrity verification requires reading and decoding audio data. Large collections can contain terabytes of audio, and validation speed depends on CPU and storage performance.

Does Resume completely eliminate file reading?

No. File hashing still requires reading file contents. Resume can avoid unnecessary native decoding when cached validation results remain eligible.

Can I restore a file after installing a repair?

Yes, provided the original verified backup and associated recovery manifest remain available.

Does a healthy result guarantee that an album is complete?

No. A healthy result indicates that the discovered current FLAC files passed native validation. Missing tracks that are not present on disk cannot be identified without an independent expected track listing.

Does FLAC Recovery require an internet connection?

No. Normal scanning, recovery, replacement, rechecking and reporting operations are performed locally.

Version History

Version 2.3.2 — Automatic Resolved Album Archiving

  • Added dedicated outstanding album reports.
  • Added dedicated resolved album reports.
  • Added automatic logical archiving of healthy albums.
  • Added RemainingAlbums.csv.
  • Added ResolvedAlbums.csv.
  • Added ViewOutstanding operating mode.
  • Added ViewResolved operating mode.
  • Added menu option to view outstanding albums.
  • Added menu option to view resolved albums.
  • Added menu option to recheck all affected albums.
  • Expanded recovery summary reporting.
  • Preserved complete historical album inventories.
  • Added regression coverage for active and resolved album filtering.
  • Updated documentation and usage examples.

Version 2.3.1 — Guided Upgrade and Migration

  • Added automatic discovery of supported previous installations.
  • Added interactive upgrade and migration functionality.
  • Added configuration migration.
  • Added previous report discovery.
  • Added existing recovery inventory migration.
  • Added duplicate destination protection.
  • Added interactive album directory mapping.
  • Added upgrade regression tests.
  • Added dedicated upgrade documentation.

Version 2.3.0 — Persistent Recovery Management

  • Added persistent recovery inventories.
  • Added album-based rechecking.
  • Added Import operating mode.
  • Added Recheck operating mode.
  • Added Status operating mode.
  • Added MapAlbum operating mode.
  • Added support for changed track filenames.
  • Added support for changed track counts.
  • Added current album validation reporting.
  • Added automatic tracking of affected albums discovered during scans.
  • Added recovery inventory snapshots.
  • Improved handling of completed scans containing file-level errors.

Version 2.2.5 — Progress and Scan Performance

  • Improved file enumeration feedback.
  • Added live processing statistics.
  • Improved elapsed time and estimated completion reporting.
  • Improved bounded parallel processing.
  • Improved resume cache handling.
  • Improved interruption handling and partial report preservation.

Version 2.2.4 — Self-Test Improvements

  • Corrected integration self-test package handling.
  • Improved self-test failure reporting.
  • Improved diagnostic logging.

Version 2.2.3 — Public Edition and Automated Testing

  • Added expanded interactive menu functionality.
  • Added automated regression testing.
  • Added automated integration self-testing.
  • Added synthetic audio test environments.
  • Expanded public documentation and usage examples.

Version 2.2.2 — Prerequisite Verification

  • Added automated environment verification.
  • Added PowerShell version checking.
  • Added Python version checking.
  • Added FLAC executable verification.
  • Added supporting file verification.
  • Added workspace and accessibility checks.

Version 2.2.1 — Terminal Replay Recovery

  • Improved exact 6,144-byte terminal replay recovery.
  • Improved handling of supported trailing corruption conditions.
  • Retained native validation and unchanged embedded PCM MD5 requirements.

Included Documentation

The FLAC Recovery download includes:

  • README.md — Detailed software documentation.
  • QUICKSTART.md — Installation and usage instructions.
  • UPGRADE.md — Previous-version migration instructions.
  • TESTING.md — Automated testing documentation.
  • CHANGELOG.md — Release history.
  • Built-in PowerShell help.
  • Automated regression tests.
  • Automated integration self-test utilities.

Current Limitations

FLAC Recovery continues to evolve as additional corruption conditions and recovery workflows are investigated.

Current limitations include:

  • Not all corrupted FLAC files can be repaired.
  • Missing audio cannot be reconstructed.
  • Extensive overwritten audio generally requires replacement.
  • Specialized variable-block FLAC repair is not currently supported.
  • Arbitrary FLAC header reconstruction is not supported.
  • Album release completeness is not independently verified.
  • Renamed album directories require explicit mapping.
  • Automatic Lidarr API integration is not currently implemented.
  • Automatic upgrade discovery is limited to supported installation layouts.
  • Historical recovery totals are not automatically imported as software recovery credits.
  • Concurrent library modification is not supported.
  • Full Windows launcher validation of the latest public packaging revision should be performed using the included self-test before production replacement operations.

Download FLAC Recovery

Current Version: v2.3.2 — Public Edition

Platform: Microsoft Windows

Requirements: PowerShell 7, Python 3.13 and Xiph FLAC

Distribution: ZIP archive

Processing: Local

Cloud account required: No

Subscription required: No

Download FLAC Recovery v2.3.2 — Public Edition

Extract the complete ZIP package, review the included documentation and run the automated self-test before performing production recovery operations.

Disclaimer

FLAC Recovery is provided as a utility for detecting, investigating and attempting to recover corrupted FLAC audio files.

Recovery success is not guaranteed. Users are responsible for maintaining appropriate backups, reviewing recovery results and determining whether a recovery operation is suitable for their collection.

Although FLAC Recovery includes validation, backup and restoration safeguards, no software can guarantee protection against every possible hardware failure, filesystem error, unexpected interruption or external modification.

Historical recovery statistics are provided for informational purposes and should not be interpreted as a guaranteed recovery rate.

Detect. Recover. Replace. Recheck. Resolve.

FLAC Recovery — Complete FLAC integrity and recovery management.

Leave a Reply

Your email address will not be published.