From a2dc198a77393b83a3b83ba76d7ba57ade61a4e6 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 8 Dec 2008 19:12:13 +0100 Subject: [PATCH] try f2t options --- oxdbarchive/model.py | 5 +++++ 1 file changed, 5 insertions(+) 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