Re: Playing 8-bit raw Audio with mplayer
On Fri, Aug 14, 2009 at 10:09:19AM -0500, Martin McCormick wrote:
> 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.
In the worst case, convert it to a wav file:
sox -r8000 -u -c1 -8 streamfile file.wav
--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend
Reply to: