Re: Starting an external, independent process from a script

2007-03-14 Thread skam
I use ffmpeg instead of mencoder, calling it using os.popen(). You can also use the "commands" module, but I prefer the first one. Bye, Massimo -- http://mail.python.org/mailman/listinfo/python-list

Re: Starting an external, independent process from a script

2007-03-13 Thread Gabriel Genellina
On 12 Mar 2007 16:13:51 -0700, Henrik Lied <[EMAIL PROTECTED]> wrote: >> I'm trying to create a video uploading service (just to learn). The >> system is mostly based on Django, but the question I'm looking an >> answer for is more related to Python. En Tue, 13 Mar 2007 06:57:33 -0300, rishi path

Re: Starting an external, independent process from a script

2007-03-13 Thread Henrik Lied
Unfortunately, that didn't work either. The output is empty, I don't get a message, and I definitely don't get a converted file. 2007/3/13, rishi pathak <[EMAIL PROTECTED]>: You can do something like this: pid = os.fork() if pid != 0: os.execl("mencoder variables here and its arguments") el

Re: Starting an external, independent process from a script

2007-03-13 Thread rishi pathak
You can do something like this: pid = os.fork() if pid != 0: os.execl("mencoder variables here and its arguments") else: continue exec will replace the current child process with the given command and as we are doing fork the command will get executed in a child process.You can also use os.s

Re: Starting an external, independent process from a script

2007-03-13 Thread Henrik Lied
I've tried os.spawnv and os.spawn, but these give no error and no result. Henrik Lied skreiv: > Hi there! > > I'm trying to create a video uploading service (just to learn). The > system is mostly based on Django, but the question I'm looking an > answer for is more related to Python. > > So, the

Re: Starting an external, independent process from a script

2007-03-12 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Henrik Lied wrote: > Hi there! > > > So - I want to spawn a new system process. I need some good > pointers on how to do this right. > > Any input? :-) > > Thanks a lot in advance! > You can try os.spawnl(). The url is http://docs.python.org/lib/os-pro

Starting an external, independent process from a script

2007-03-12 Thread Henrik Lied
Hi there! I'm trying to create a video uploading service (just to learn). The system is mostly based on Django, but the question I'm looking an answer for is more related to Python. So, the user gets to upload a video file. This can either be a mpg, avi or mp4-file. When the file is saved to its