diff --git a/oxdbarchive/model.py b/oxdbarchive/model.py index fb9c5b7..97edf78 100644 --- a/oxdbarchive/model.py +++ b/oxdbarchive/model.py @@ -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