4 months ago
usando la libreria ffmpeg
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
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2058"></script>
8 months ago
http://code.google.com/p/django-tagging/
#instalamos:
setup.py install
#agregamos a las aplicaciones en el settings y syncronizamos para crear las tablas en la bd
1. INSTALLED_APPS = (
....
'tagging'
2. Run the command manage.py syncdb
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1916"></script>