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
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
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
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
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
-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