Muting a few words in a 15-hour audiobook can still take time because the encoder must process the full audio stream. The number of muted words is only one part of the work. Understanding the pipeline helps you make better speed and quality decisions.

Why stream copy will not work

FFmpeg's -c:a copy moves compressed audio packets without changing their samples. A word-level mute changes samples, so the audio must be decoded, filtered, and encoded again. Keeping one continuous pass avoids introducing joins in the middle of speech.

Choose an output codec

Clean Read prefers the source codec when it is a practical M4B target: AAC sources remain AAC, and ALAC sources remain ALAC. For other codecs, it uses AAC. The CLI has a --lossless option to encode as ALAC, which can make the output much larger; it does not undo any loss already present in a lossy source.

On macOS, the project checks for FFmpeg's AudioToolbox AAC encoder aac_at. It retains FFmpeg's portable aac encoder as a fallback when AudioToolbox is unavailable or fails to initialize. Encoder availability is not the same as successful encoding, so a real start-up check matters.

Measure real progress

For a long encode, use FFmpeg's machine-readable progress output:

ffmpeg -nostats -progress pipe:1 -i book.m4b ... edited.m4b

In the desktop workflow, out_time_us is compared with the source duration to show encoded media time. Recent samples estimate processing speed and remaining time. If FFmpeg has not reported a usable media timestamp yet, output bytes provide a provisional estimate. That estimate should be labeled as such.

Do not assume parallel chunks are seamless

Encoding independent AAC chunks and concatenating them may introduce priming, padding, or navigation differences. The project's speed plan treats this as an experiment, not a shipped optimization. A faster export would need listening tests at joins, duration checks, chapter checks, and proof that no words repeat or disappear. The current design favors a continuous encode.