navidrome/resources/mime_types.yaml
Aditya Raj Singh 3867fab4da
fix(transcoding): report AAC streams as audio/aac instead of audio/mp4 (#5998)
The default AAC transcode emits raw ADTS (`ffmpeg ... -f adts -`), but
the MIME table mapped `.aac` to `audio/mp4`. Clients that dispatch
strictly on Content-Type could reject the stream because the declared
container did not match the payload.

`.m4a` and `.alac` stay on `audio/mp4`, since those really are MP4.

Fixes #5958

Signed-off-by: Aditya Raj Singh <aditya@bncw.in>
Co-authored-by: Deluan Quintão <deluan@navidrome.org>
2026-08-30 11:21:14 -04:00

54 lines
1.2 KiB
YAML

# This file controls the MIME types that are used by the Navidrome.
# You can add or modify entries to match your needs.
# Any "audio/*" MIME type is considered a valid audio file for Navidrome, but will only work properly if
# supported by `taglib` and/or `ffmpeg`.
# Any "image/*" MIME type is considered a valid image file to be used as cover art.
types:
# Audio
.mp3: audio/mpeg
.ogg: audio/ogg
.oga: audio/ogg
.opus: audio/ogg
.aac: audio/aac
.alac: audio/mp4
.m4a: audio/mp4
.m4b: audio/mp4
.flac: audio/flac
.wav: audio/x-wav
.wma: audio/x-ms-wma
.ape: audio/x-monkeys-audio
.mpc: audio/x-musepack
.shn: audio/x-shn
.aif: audio/x-aiff
.aiff: audio/x-aiff
.m3u: audio/x-mpegurl
.pls: audio/x-scpls
.dsf: audio/x-dsf
.wv: audio/x-wavpack
.wvp: audio/x-wavpack
.tak: audio/tak
.mka: audio/x-matroska
# Image
.gif: image/gif
.jpg: image/jpeg
.jpeg: image/jpeg
.webp: image/webp
.png: image/png
.bmp: image/bmp
.jxl: image/jxl
.heic: image/heic
.heif: image/heif
# List of audio formats that are considered lossless
lossless:
- .flac
- .alac
- .ape
- .shn
- .dsf
- .wv
- .wvp
- .tak
- .wav