import commands import os def execute(): cmd = 'c:/ffmpeg/ffmpeg.exe -y -itsoffset -4 -i c:/input.mpg -vframes 1 -s 100x90 -f image2 c:/uploads/img_gen.jpg' #c = commands.getoutput(cmd) # linux c = os.system(self.cmd) #windows return c
import commands import os def execute(): cmd = 'c:/ffmpeg/ffmpeg.exe -y -itsoffset -4 -i c:/input.mpg -vframes 1 -s 100x90 -f image2 c:/uploads/img_gen.jpg' #c = commands.getoutput(cmd) # linux c = os.system(self.cmd) #windows return c