add missing imports

This commit is contained in:
j 2014-11-20 18:30:12 +00:00
parent 40cc50723a
commit c9fa0c78cd
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import shutil
from glob import glob
import subprocess
from urllib import quote
import tempfile
import ox
from ox.django.fields import DictField, TupleField
@ -355,6 +356,7 @@ class Edit(models.Model):
for clip in self.clips.all().order_by('index'):
data = clip.json()
clips.append(os.path.join(tmp, '%06d.webm' % data['index']))
path = clip.item.streams()[0].media.path
cmd = ['avconv', '-i', path,
'-ss', data['in'], '-t', data['out'],
'-vcodec', 'copy', '-acodec', 'copy',