fix(docker): build ffmpeg with the m4a muxer for Medium downloads #144

Merged
joshuafhiggins merged 1 commits from t3/fix-medium-download-transcode into main 2026-11-20 10:24:15 -05:00
Owner

Downloading a song at Medium quality returned 500. The image's audio-only ffmpeg was built with only the adts, flac, hls and mpegts muxers, so the download transcode (which writes audio.m4a) failed with "Unable to choose an output format for '…/audio.m4a'". High, Lossless and Atmos send the source file or write FLAC, so they were unaffected. The same failure would hit High for songs that only have a lossless or Atmos file.

Fix: enable the ipod muxer (ffmpeg's muxer for .m4a). It shares code with the mov muxer that hls already pulls in.

Verified locally by building the image and running it against the music share: GET /api/song/<Boat from - (Deluxe)>/download?quality=medium now returns 200 audio/mp4 (AAC 128k, 3:05 duration, tags and synced lyrics kept). High and Lossless still return 200.

Made by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

Downloading a song at Medium quality returned 500. The image's audio-only ffmpeg was built with only the `adts`, `flac`, `hls` and `mpegts` muxers, so the download transcode (which writes `audio.m4a`) failed with "Unable to choose an output format for '…/audio.m4a'". High, Lossless and Atmos send the source file or write FLAC, so they were unaffected. The same failure would hit High for songs that only have a lossless or Atmos file. Fix: enable the `ipod` muxer (ffmpeg's muxer for `.m4a`). It shares code with the `mov` muxer that `hls` already pulls in. Verified locally by building the image and running it against the music share: `GET /api/song/<Boat from - (Deluxe)>/download?quality=medium` now returns 200 `audio/mp4` (AAC 128k, 3:05 duration, tags and synced lyrics kept). High and Lossless still return 200. Made by Claude Opus 5.5 in Claude Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
joshuafhiggins added 1 commit 2026-11-20 10:23:08 -05:00
joshuafhiggins merged commit 682aff44fa into main 2026-11-20 10:24:15 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joshuafhiggins/otunes#144