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 ...
or so
http://martini.pudele.com/radio/programming/audio/mplayerdecso01.c

I prefer output to pipe, not FIFO.

It seems that mplayer also all messages put to stdout :(
If i run mplayer without options -quiet and -really-quiet and sound output to stdout , i become
music mixed with white noise , if  message length "A:  14.8 (14.8) of 189.0 (03:09.0)  1.1%"
is not N x 2 !
If  message length is is N x 2 but not M x 4, then stereo channels are swapped :D
Is mplayer really absolutley quiet with options -quiet and -really-quiet ?
Is mplayer also absolutley quiet if sound file/frame/tag/whatever is corrupt ?
How i can be 100% sure ?

Is it possible all mplayer's info message function calls , printf(), puts(), putch(), to replace with
fprintf(stderr, ... ) ,
or
#define  puts( ss )  fprintf(stderr, ss ) ?

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

Tnx in advance @ all

Alfs Kurmis


----