efm-stacker-f2

EFM F2 Section Multi-Source Stacker

Overview

efm-stacker-f2 combines multiple F2 section files from different captures of the same source material to produce a higher-quality result through majority-vote error correction. This tool is essential for recovering heavily damaged or degraded EFM data by leveraging multiple independent captures.

Usage

efm-stacker-f2 [options] <input1.f2> <input2.f2> [input3.f2 ...] <output.f2>

Options

Arguments

Processing Algorithm

Multi-Source Voting

The stacker examines each F2 frame across all input sources and uses a voting algorithm:

  1. Alignment: Automatically aligns F2 sections across sources
  2. Comparison: Compare each byte position across all sources
  3. Majority Vote: Select the most common value at each position
  4. Confidence: Higher confidence with more agreeing sources
  5. Error Flags: Preserve error correction flags from individual sources

Quality Improvement

Alignment and Synchronization

Automatic Alignment

The tool automatically handles:

Sync Requirements

All input sources must represent the same original material:

Pipeline Integration

Input Requirements

Multiple Capture Stacking

# Capture same disc multiple times
ld-decode disc_capture1.ldf disc1 --efm
ld-decode disc_capture2.ldf disc2 --efm  
ld-decode disc_capture3.ldf disc3 --efm

# Process each to F2 sections
efm-decoder-f2 disc1.efm disc1.f2
efm-decoder-f2 disc2.efm disc2.f2
efm-decoder-f2 disc3.efm disc3.f2

# Stack for improved quality
efm-stacker-f2 disc1.f2 disc2.f2 disc3.f2 stacked.f2

# Continue with normal pipeline using Unix pipes
efm-decoder-d24 stacked.f2 - | efm-decoder-audio - final.wav

# Or step by step
efm-decoder-d24 stacked.f2 stacked.d24
efm-decoder-audio stacked.d24 final.wav

Domesday Multi-Source Recovery

# Stack multiple Domesday captures
efm-stacker-f2 domesday1.f2 domesday2.f2 domesday3.f2 domesday4.f2 stacked.f2
efm-decoder-d24 stacked.f2 stacked.d24
efm-decoder-data stacked.d24 domesday.bin --output-metadata
vfs-verifier domesday.bin domesday_metadata.txt

Performance and Quality Metrics

Stacking Effectiveness

Debug Output

When --debug is enabled, shows:

Quality Assessment

Before Stacking

Check individual F2 files for:

After Stacking

The output quality can be verified by:

Technical Notes

Section-Level Processing

Error Correction Integration