try f2t options

This commit is contained in:
j 2008-12-08 19:12:13 +01:00
parent d58c6f9928
commit a2dc198a77

View file

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