[MPlayer-users] Piping live stream converting to ogg or mp3

Original Brownster original_brownster at yahoo.co.uk
Thu Dec 28 11:48:38 CET 2006


Hi,
Can anyone help me by looking at how I'm doing this below and say
whether it's ok to do it this way or is there a better way?
I'm writing a program in python with a gui frontend to help people
download streams and convert them if required. Initially I'm working on
realplayer streams but it should work with others like 'wma' 

I have worked out how to do this by:
creating a named pipe 'foo'
in a terminal running either lame or oggenc that reads from the pipe
and writes the encoded file out '$ oggenc -q5 foo -o bar.ogg'
in a separate terminal using mplayer: '$ stream-url.ra -ao
pcm:file=foo'

This works fine and saves creating a massive wav file hence using the
pipe, I didn't think I could do it with an inline pipe in one command
but I'm happy to be proved wrong!

Thanks in advance,
Wayne.


Send instant messages to your online friends http://uk.messenger.yahoo.com 



More information about the MPlayer-users mailing list