[MPlayer-users] Garbage in audio dumped from internet streams

ACS adrian.bacon at xs4all.nl
Tue Jun 13 06:29:44 CEST 2006

> I use mplayer to dump audio data from internet streams to /dev/stdout.
> Then I continuously create two minute long audio data files from STDOUT
> and save it to different pcm files.
> The mplayer command I use is
> $mplayer_cmd="mplayer -quiet \"$input_url\" -ao pcm:file=/dev/stdout -vo
> null -vc null";
> Sometimes, I get static audio (garbled audio) in some of the .pcm files.

Your "2 minute cutter" should cut at boundairies placed at multiple of 4 
This way, left and right remain left and right, and also high and lower 
audio bytes won't get swapped.

For a "static" audio file, try removing an extra byte from the start to get 
MSB and LSB in place.


More information about the MPlayer-users mailing list