View

Sacar imagenes de un video con ffmpeg

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

Note

usando la libreria ffmpeg

You may also like