Audio Formats & Transcoding
MusicOrbit streams your original files directly whenever the browser supports the codec, and transparently transcodes browser-incompatible lossless formats on the fly.
Direct streaming
Section titled “Direct streaming”For browser-native formats — FLAC, MP3, AAC (.m4a / .aac), Ogg Vorbis, Opus, and WAV — MusicOrbit serves your exact file from disk with full HTTP 206 Partial Content byte-range support:
- Instant seeking to any timestamp, even on large hi-res FLAC files
- Zero re-encoding and zero quality loss
- Accurate duration, bitrate, sample rate, and codec badges displayed in the UI
Automatic Lossless Transcoding (ALAC → FLAC)
Section titled “Automatic Lossless Transcoding (ALAC → FLAC)”Apple Lossless (ALAC, typically inside .m4a containers), AIFF, and WMA are not natively playable in Chrome, Firefox, or most non-Safari browsers.
Instead of failing with a playback error, MusicOrbit detects incompatible lossless codecs at stream time and transparently converts them to lossless FLAC:
- Lossless preservation: Bit-for-bit lossless audio quality is preserved (no lossy MP3/AAC downgrade).
- Disk caching: Converted streams are cached under
DATA_DIR/transcode-cache/keyed by file path and modification time, so subsequent plays start instantaneously with full seeking support. - Zero config encoder selection:
- Uses
ffmpegwhen available inPATH(standard on Linux, Docker, and Homebrew). - On macOS, automatically falls back to Apple’s built-in
/usr/bin/afconvertifffmpegis not installed.
- Uses
ffmpeg availability
Section titled “ffmpeg availability”- Official Docker image (
ghcr.io/musicorbit/musicorbit): Bundlesffmpegout of the box — ALAC, AIFF, and WMA playback works with zero extra setup. - macOS bare-metal: Automatically uses Apple’s built-in
/usr/bin/afconvertifffmpegis not installed. - Linux / Windows bare-metal: Install
ffmpeginPATHif you play ALAC/AIFF/WMA files. All standard.flac,.mp3,.aac,.ogg,.opus, and.wavfiles stream natively with zero external dependencies.