Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-05-04 13:53:49 (GMT)
committer Daniel Drake <dan@reactivated.net>2010-05-04 14:00:10 (GMT)
commitabfdb73a5d72c186481afff82949aed3ad5fcbda (patch)
tree81fa91af56c69ea4f1438e03e205a800ea9ad0e0
parent090319555c040fc60e126f5402c30fc10ffbb761 (diff)
Fix video thumbnail scaling
High/best quality thumbnails weren't scaled properly
-rw-r--r--glive.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/glive.py b/glive.py
index c051491..87aff84 100644
--- a/glive.py
+++ b/glive.py
@@ -413,6 +413,7 @@ class Glive:
return
self.record = True
+ self.ogg_quality = quality
self.cfgVideoBin (OGG_TRAITS[quality]['quality'],
OGG_TRAITS[quality]['width'],
OGG_TRAITS[quality]['height'])
@@ -530,7 +531,9 @@ class Glive:
muxFilepath = os.path.join(Instance.instancePath, "mux.ogg") #ogv
os.remove( wavFilepath )
os.remove( oggFilepath )
- self.ca.m.saveVideo(self.thumbBuf, str(muxFilepath), self.VIDEO_WIDTH_SMALL, self.VIDEO_HEIGHT_SMALL)
+ ogg_w = OGG_TRAITS[self.ogg_quality]['width']
+ ogg_h = OGG_TRAITS[self.ogg_quality]['height']
+ self.ca.m.saveVideo(self.thumbBuf, str(muxFilepath), ogg_w, ogg_h)
self.ca.m.stoppedRecordingVideo()
return False
else: