Mencoder not working from a python script

aditya shukla adityashukla1983 at gmail.com
Fri Jan 8 14:14:07 EST 2010


Hello guys,

I am trying to create a python script which uses mencoder to create videos
from a set of images.When I am using  the command(windows 7) i am able to
generate the video properly.But when used within a python script i am
ggetting error.Below is the code and error.any help is appreciated.


import *subprocess*,*sys*,os

def *createVideo*():

mencoder = *"C:\\MPlayer-p4-svn-30075\\mencoder.exe"*

path=*"mf://\"C:\\videos\\test\\*.jpg\""
*

output=*"\"C:\\videos\\test\\xyz.avi\""*

commande = *"%s %s -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy -o
%s"*

os.system(commande % (mencoder, path,output))

 if __name__==*"__main__"*:

createVideo()

--------------------------------error-----------------

MEncoder Sherpya-SVN-r30075-4.2.5 (C) 2000-2009 MPlayer Team

success: format: 16 data: 0x0 - 0x0

MF file format detected.

[mf] search expr: C:\cameras\Perkins Road\*.jpg

[mf] number of files: 301 (1204)

VIDEO: [IJPG] 800x600 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)

[V] filefmt:16 fourcc:0x47504A49 size:800x600 fps:25.000 ftime:=0.0400

videocodec: framecopy (800x600 24bpp fourcc=47504a49)

Writing index...

Writing header...

ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.

Video stream: nan kbit/s (-2147483648 B/s) size: 0 bytes 0.000 secs 0 frames

Thanks



Aditya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100108/efe7c722/attachment.html>


More information about the Python-list mailing list