Reading ogg123 output with popen3

Discussion in 'Python' started by oziko, Aug 16, 2004.

  1. oziko

    oziko Guest

    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?
     
    oziko, Aug 16, 2004
    #1
    1. Advertisements

  2. oziko

    marco Guest

    Sorry, not quite an answer to your question, but perhaps
    the following might be of use:

    http://pymedia.sourceforge.net/features.html

    Cheers,
     
    marco, Aug 17, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.