Skip to content

Instantly share code, notes, and snippets.

@timss
Created September 5, 2014 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timss/181bcd872463a3518b8b to your computer and use it in GitHub Desktop.
Save timss/181bcd872463a3518b8b to your computer and use it in GitHub Desktop.
mpd http pcm wav stream + mplayer, only giving 705.6 kbit/s
$ mediainfo 06.Black Sun Empire - The Rat (Kemal Remix).flac
General
Complete name : 06.Black Sun Empire - The Rat (Kemal Remix).flac
Format : FLAC
Format/Info : Free Lossless Audio Codec
File size : 43.3 MiB
Duration : 6mn 55s
Overall bit rate mode : Variable
Overall bit rate : 873 Kbps
Album : Driving Insane CD1
Track name : The Rat (Kemal Remix)
Track name/Position : 06
Performer : Black Sun Empire
Genre : Drum & Bass
Recorded date : 2004
...
audio_output {
type "httpd"
name "HTTP stream (pcm wav)"
encoder "wave"
port "8000"
format "44100:16:1"
}
$ mplayer --idle -cache 2048 <stream>
...
Selected audio codec: Uncompressed PCM [pcm]
AUDIO: 44100 Hz, 1 ch, s16le, 705.6 kbit/100.00% (ratio: 88200->88200)
AO: [pulse] 44100Hz 1ch s16le (2 bytes per sample)
...
@timss
Copy link
Author

timss commented Sep 5, 2014

Solution: format should be 44100:16:2, giving a bitrate of 1411.2 kbit/s over stereo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment