subprocess module

placid Bulkan at gmail.com
Wed Jul 26 22:06:48 EDT 2006


Hi all,

ive been trying to create a thumbnail using the ffmpeg converter
running the ffmpeg.exe using the subprocess module with the following
code

>>> import subprocess
>>> p = subprocess.Popen(["ffmpeg.exe -i video.mpg", "-f mjpeg  -ss 5 -vframes 1 -s 160x120 -an video.gif"], shell=True, stdout=subprocess.PIPE)

but the ffmpeg complains about the input file being corrupter, whereas
when i run the same command via the command shell (cmd.exe) it works.
Does anyone know what the problem is?


Cheers




More information about the Python-list mailing list