Ivo Woltring wrote:
The output of mencoder is not readable with readlines (i tried it) because
after the initial informational lines You don't get lines anymore (you get a
linefeed but no newline)
The prints are all on the same line (like a status line)
something like
Pos: 3,1s 96f ( 0%)
Ivo Woltring wrote:
The output of mencoder is not readable with readlines (i tried it) because
after the initial informational lines You don't get lines anymore (you get a
linefeed but no newline)
The prints are all on the same line (like a status line)
something like
Pos: 3,1s 96f ( 0%)
Hi Pythoneers,
I am trying to make my own gui for mencoder.exe (windows port of the
terrific linux mencoder/mplayer) to convert divx to Pocket_PC size.
My current app creates a batch script to run the mencoder with the needed
params, but now I want to integrate mencoder as a subprocess in my app.
Ivo, my initial thought would be, you need to know how much text you
will get back from popen. My Python reference has the following
example:
import os
dir = os.popen('ls -al', 'r')
while (1):
line = dir.readline()
if line:
print line,
else:
break
that example shows how to capture the process
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Ivo, my initial thought would be, you need to know how much text you
will get back from popen. My Python reference has the following
example:
import os
dir = os.popen('ls -al', 'r')
while (1):
line = dir.readline()
if line: