Post-production
Make a folder of WAVs streaming-ready with ffmpeg: even loudness, a safe peak, clean endings and clean names.
Anyone with finished takes as WAV files who needs them to behave like an album before distribution, and is comfortable running ffmpeg (or has an AI that can).
This is a volume knob and a safety check, not a creative master. No EQ, no compression, no widening: a polished generated take rarely needs them, and they change its character.
Every command reads the original file and writes a new one in a separate folder. Run it again from the original, never from a file you already processed.
This runs on your own computer. Music never edits your audio; it records which file became the master.
Every time
- Never overwrite the source. Output goes to a sibling folder, such as Album (mastered).
- Every pass starts from the original file. No master of a master.
- Same gain for every track on an album, so quiet songs stay quiet and big songs stay big.
- Peaks stay at or below -1 dBTP, so the file survives the stores' own encoding.
- Fades and trims only where the person approves. A hard ending may be intended.
1. Measure every track
Read the loudness (LUFS), true peak and format before changing anything.
- Run the first command on each file and note input_i (loudness), input_tp (true peak) and input_lra (dynamics).
- The loudest track is the album's anchor. Flag any track more than about 1.5 dB quieter than it, and any with a true peak at -0.5 dBTP or higher.
- Ask about each quiet outlier: is it meant to be soft (an intimate ballad), or did it just come out quiet?
ffmpeg -hide_banner -i "01 - Title.wav" -af loudnorm=I=-14:TP=-1:print_format=json -f null -
ffprobe -v error -show_entries stream=sample_rate,bits_per_sample,channels -of default=nw=1 "01 - Title.wav"2. Work out one album gain
- Gain = -14 minus the anchor's loudness. A -11.2 LUFS anchor means -2.8 dB.
- Check it against the hottest true peak on the album: the peak plus the gain must stay at or below -1. If not, use -1 minus that peak instead.
- Every track gets the same gain. An outlier the person called too quiet gets its own small lift toward the others (about -14.5 LUFS), and nothing else changes.
- Check any lifted track against its own true peak too: its peak plus its gain must stay at or below -1.
3. Apply it from the source
Pure gain, then 44.1 kHz 16-bit with dither: the distribution format.
- Replace -2.8 with the gain you worked out. Write into the (mastered) folder.
- For a single track rather than an album, use the two-pass loudnorm below. Measure with the same targets (I=-14, TP=-1, LRA=20), then copy the five measured values in.
- Read normalization_type in its report. If it says dynamic, discard that file (loudnorm compressed it) and use the volume command instead, with a gain capped by the track's true peak.
- If the check in step 5 finds a track more than 0.1 dB off target, adjust that track's gain by the difference and run it again from the source.
ffmpeg -i "01 - Title.wav" -af "volume=-2.8dB,aresample=44100:dither_method=triangular" -c:a pcm_s16le "Album (mastered)/01 - Title.wav"
ffmpeg -hide_banner -i "01 - Title.wav" -af loudnorm=I=-14:TP=-1:LRA=20:print_format=json -f null -
ffmpeg -i "01 - Title.wav" -af "loudnorm=I=-14:TP=-1:LRA=20:measured_I=-11.2:measured_TP=-0.4:measured_LRA=6.1:measured_thresh=-21.5:offset=0.3:linear=true:print_format=json,aresample=44100:dither_method=triangular" -c:a pcm_s16le "Album (mastered)/01 - Title.wav"4. Clean the endings (only where approved)
- Find where the music really ends: a silence_start whose silence runs to the end of the file. If a silence_end follows it before the end, the music came back and that was only a pause.
- Keep about one second after the real end rather than cutting flush, and fade over the last few seconds.
- Fold the trim and fade into the same command as the gain, from the source. The example ends at 183.4 seconds with a 3-second fade.
- Listen to the proposed cut before keeping it.
- Ask about fade-ins longer than five seconds: an intended build, or a problem?
ffmpeg -hide_banner -i "01 - Title.wav" -af silencedetect=noise=-50dB:d=1 -f null -
ffmpeg -i "01 - Title.wav" -af "atrim=end=183.4,afade=t=out:st=180.4:d=3,volume=-2.8dB,aresample=44100:dither_method=triangular" -c:a pcm_s16le "Album (mastered)/01 - Title.wav"5. Check the result
- Measure each new file again and read the Input values (they describe the finished file). Every track should land within about 0.1 dB of its target, with a true peak at or below -1.
- astats shows the sample peak and any DC offset. A sample peak at 0 dBFS is a clipping warning: go back to the source and lower the gain.
- Listen to each ending and to every change from one track to the next. A jump of more than about 12 dB between a tail and the next head is worth a look.
ffmpeg -hide_banner -i "Album (mastered)/01 - Title.wav" -af loudnorm=I=-14:TP=-1:print_format=summary -f null -
ffmpeg -hide_banner -i "Album (mastered)/01 - Title.wav" -af astats -f null -6. Name the files
- NN - Title (Style).wav, for example 03 - Morning Light (Country Two-Step).wav.
- Strip the stray *, - and ! that generators leave at the start of titles.
- Title case, with small words (a, the, of, to) lowercase except at the start.
- Use a specific two-word style, not just (Pop). The DistroKid toolkit reads it for the Version field.
7. Record it in Music
- Tell Music which take became the master and what was done to it, on the song or album.
- Release progress on the album records how far it has got. Recording it never submits anything.
Goes with
Turn a finished lyric sheet and style prompt into takes on Suno, then bring the keepers and the files back to Music.
Fill DistroKid's album form correctly from mastered files, stop before submit, then add plain lyrics after release.
Where every song lives in Music, how to save the takes you keep, and how to choose the one that ships.