-
import commands
-
import os
-
def execute():
-
cmd = ‘c:/ffmpeg/ffmpeg.exe -y -itsoffset -4 -i c:/input.mpg -vframes 1 -s 100×90 -f image2 c:/uploads/img_gen.jpg’
-
#c = commands.getoutput(cmd) # linux
-
c = os.system(self.cmd) #windows
-
return c
Note
usando la libreria ffmpeg