|| at Jun 19, 2006 at 12:00 am
On Sunday 18 June 2006 21:28, ph0b0s wrote:
i'm making an mp3 conversion program in Python, but am kind of stuck now.
The conversion routines work, using LAME, but now a i'm building a GUI
?with GLADE around it, and would like to be able to show LAME's output
?to the user in a status window in my gui.. but don't know where to
The command i use to invoke LAME is this :
command = ("lame -b " + str(bitrate) + " " + infile + " \"" +
dir_outpath + separator + outfile + "\"")
??? ?? ??
You can do this in various ways, ranging from the very simple and not very good
from commands import getoutput
- to your more common and better popens.
(stdOut, stdIn) = popen2.popen4(command)
- asynchronously if appropriate.
How are you running the command at the moment?
There are 10 types of people in this world,
those who understand binary, and those who don't.