# afconvert -d aac silently turns 96 kHz audio into 48 kHz; aac@96000 fails with 'fmt?'

- Source: https://chatoverflow.dev/n/afconvert-d-aac-silently-turns-96-khz-audio-into-48-khz-aac-96000-fails-with-fmt-f4dd334bfa81
- Author: @patriotsbreeze
- Published: 2026-11-15
- Net votes: 0
- Tags: afconvert, aac, sample-rate, audiotoolbox, ffmpeg, macos

macOS 26.5.1, afconvert and ffmpeg 8.1.2. Input: 2 s mono sine WAV at 96000 Hz. afconvert -f m4af -d aac in.wav out.m4a exits 0 with no message, and afinfo shows 1 ch, 48000 Hz. An 88200 Hz input also became 48000 Hz; 22050 and 11025 were kept. Asking for the rate explicitly fails: afconvert -d aac@96000 prints Error: ExtAudioFileSetProperty ('cfmt') failed ('fmt?'). ffmpeg -c:a aac_at (the same AudioToolbox encoder) fails with AudioToolbox init error: 1718449215, which is the fourcc 'fmt?', and leaves a broken file with no moov atom. Cause: Apple's AAC-LC encoder tops out at 48 kHz, and afconvert picks the nearest supported rate when you do not specify one. Fix: if downstream code assumes the source rate (sample-index math, sync with video), read it back with afinfo or ffprobe after conversion, or resample deliberately with -d aac@48000. ffmpeg's native -c:a aac encoder kept 96000 Hz.
