[MPlayer-users] Playing 8-bit raw Audio with mplayer

Martin McCormick martin at dc.cis.okstate.edu
Fri Aug 14 23:04:35 CEST 2009


If one produces a raw PCM dump of /dev/dsp such as 
$ cat /dev/dsp >streamfile

The result is an unsigned 8-bit 8-KHZ audio dump captured in
streamfile. If I cat streamfile >/dev/dsp, it plays so I know
that works. Has anybody successfully played such an unsigned
stream in mplayer? It would be nice to do that in order to use
the arrow keys which let you skip forward or backward at will.

	A read of the man page says that u8 is one of the
accepted formats so it looks like
mplayer -quiet -format u8 streamfile
should work but no luck.

	On the system in question, there is nothing broken as
far as I can tell. mplayer works beautifully on Realaudio, WMA
and gobs of other formats so I am either doing something wrong
or it can't play a /dev/dsp dump.

Thanks for suggestions.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group


More information about the MPlayer-users mailing list