Reading ogg123 output with popen3

oziko oziko at fusiondementes.com
Mon Aug 16 11:46:26 EDT 2004


Hi, I am trying to read ogg123's output with popen3:

stin, sto, ste = os.popen3('ogg123 music.ogg')
out=sto.readlines()

The problem is I can not get any text from the output when I read 
ogg123's stdout, instead I can read some text from stderr with:

out2=ste.readlines()

Another problem is, qhen I read stderr, ogg123 breaks and I just get a 
little part og the output.

So, my question is. What is the best form to get ogg123's output, so I 
can use it in an UI, to make a progress bas for example?



More information about the Python-list mailing list