Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/screencast_process.py
diff options
context:
space:
mode:
Diffstat (limited to 'screencast_process.py')
-rw-r--r--screencast_process.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/screencast_process.py b/screencast_process.py
index 6408ec9..20d090b 100644
--- a/screencast_process.py
+++ b/screencast_process.py
@@ -21,7 +21,6 @@ import subprocess
import os
import gobject
-import os
import signal
import popen2
import fcntl
@@ -85,16 +84,20 @@ class ScreencastProcess(gobject.GObject):
# Overwrite
self._args.append("--overwrite")
- # Encode on the fly
- #self._args.append("--on-the-fly-encoding")
-
# Quality
+ # Low
if str(q) == "2":
self._args.append("-v_quality")
self._args.append("0")
+ # Medium
elif str(q) == "1":
self._args.append("-v_quality")
- self._args.append("31")
+ self._args.append("10")
+ # High
+ elif str(q) == "0":
+ self._args.append("-v_quality")
+ #self._args.append("31")
+ self._args.append("20")
# Sound
if not s:
@@ -110,7 +113,6 @@ class ScreencastProcess(gobject.GObject):
# Check process every second
self._childtimer = gobject.timeout_add (1000, self.checkProcessStatus)
-
def checkProcessStatus(self):
""" Check the current status of the process
"""