[LAD] Mplayer decode to stdout

Paul Davis paul at linuxaudiosystems.com
Sat Jan 28 22:41:08 UTC 2012


On Sat, Jan 28, 2012 at 5:35 PM, Alfs Kurmis <kallipygos at inbox.lv> wrote:
> Hi Experts.
>
> For my small multimedia audio project i wanna use mplayer as external
> decoder.
> As usually via pipe , for example so
> mplayer  -af resample=44100:0:1,channels=2,format=s16le  -ao
> pcm:nowaveheader:file=/dev/stdout -quiet -really-quiet  'saund_file.ext'  |
> nextprog -options ...

you're just resampling and reformatting?

> Is here another decoder progs/libs with easy-to-use C API ?

sndfile-resample and sndfile-convert can both be given "-" as the name
of their output or input. they are much simpler programs that mplayer
and will also likely do a better job.

--p



More information about the Linux-audio-dev mailing list