make derivatives more generic

This commit is contained in:
j 2011-02-06 18:10:28 +05:30
commit b563afcfc8
7 changed files with 34 additions and 41 deletions

View file

@ -196,10 +196,13 @@ def stream(video, target, profile, info):
+ audio_settings \
+ video_settings
if format == 'mp4':
cmd += ["%s.mp4"%target]
else:
if format == 'webm':
cmd += ['-f', 'webm', target]
if format == 'mp4':
#mp4 needs postprocessing(qt-faststart), write to temp file
cmd += ["%s.mp4"%target]
else :
cmd += [target]
print cmd
p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=open('/dev/null', 'w'), stderr=subprocess.STDOUT)