try f2t options

This commit is contained in:
j 2008-12-08 19:12:13 +01:00
parent d58c6f9928
commit a2dc198a77
1 changed files with 5 additions and 0 deletions

View File

@ -588,7 +588,9 @@ class ArchiveFile(SQLObject):
#ignore files known to not be
return
ogg_cache = '/mnt/0xOgg/cache'
oggFile = self.mini_movie_file.replace('.avi', '.ogg')
oggFile = oggFile.replace(cache.cache_root, ogg_cache)
movieFile = self.absolutePath
if not movieFile or not exists(movieFile):
return
@ -597,9 +599,12 @@ class ArchiveFile(SQLObject):
return
self.extractedOgg = False
oxdb_makedir(dirname(oggFile))
'''
options = ''
options += " --no-skeleton -K 16 -V 180 -a -1 -H 44100 -S 1 --speedlevel 0 -c 2 "
options += " -x %s -y %s" % (self.sceneWidth, self.sceneHeight)
'''
options = '--speedlevel 0 --no-skeleton -K 16 --max_size 192 -a -1 -V 140 -c 1 -H 22050'
options += ' "%s"' % movieFile.replace('"', '\\"')
options += ' -o "%s"' % oggFile
cmd = "ffmpeg2theora %s >/dev/null 2>&1" % options