[transmageddon] Initial fixes to re-enable multipass encoding, still some UI ugliness
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Initial fixes to re-enable multipass encoding, still some UI ugliness
- Date: Sun, 9 Sep 2012 17:08:16 +0000 (UTC)
commit e4d99e3ab210d79d9cff1160a1e50edddc017a70
Author: Christian Fredrik Kalager Schaller <uraeus linuxrisin org>
Date: Sun Sep 9 19:07:29 2012 +0200
Initial fixes to re-enable multipass encoding, still some UI ugliness
src/transcoder_engine.py | 2 +-
src/transmageddon.py | 22 +++++++++++-----------
2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 82356a7..a0f250b 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -88,7 +88,7 @@ class Transcoder(GObject.GObject):
# if needed create a variable to store the filename of the multipass \
# statistics file
if self.multipass != False:
- self.cachefile = (str (glib.get_user_cache_dir()) + "/" + \
+ self.cachefile = (str (GLib.get_user_cache_dir()) + "/" + \
"multipass-cache-file" + self.timestamp + ".log")
# gather preset data if relevant
diff --git a/src/transmageddon.py b/src/transmageddon.py
index 1be5108..a811319 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -22,7 +22,7 @@ import sys
import os
os.environ["GST_DEBUG_DUMP_DOT_DIR"] = "/tmp"
-os.putenv('GST_DEBUG_DUMP_DIR_DIR', '/tmp')
+
import which
import time
from gi.repository import Notify
@@ -422,12 +422,14 @@ class TransmageddonUI:
# Check for number of passes
- # passes = preset.vcodec.passes
- #if passes == "0":
- self.multipass = False
- #else:
- # self.multipass = int(passes)
- # self.passcounter = int(0)
+ passes = preset.vcodec.passes
+ print "passes is " +str(passes)
+ if passes == "0":
+ self.multipass = False
+ else:
+ print "self.multipass " +str(self.multipass)
+ self.multipass = int(passes)
+ self.passcounter = int(0)
# Create query on uridecoder to get values to populate progressbar
# Notes:
@@ -853,11 +855,9 @@ class TransmageddonUI:
self.outputfilename = str(self.nosuffix+self.timestamp+self.ContainerFormatSuffix)
context_id = self.StatusBar.get_context_id("EOS")
self.StatusBar.push(context_id, (_("Writing %(filename)s") % {'filename': self.outputfilename}))
- if self.multipass == False:
- self.ProgressBar.set_text(_("Transcoding Progress"))
- else:
+ if self.multipass != False:
self.passcounter=int(1)
- self.ProgressBar.set_text(_("Pass %(count)d Progress") % {'count': self.passcounter})
+ self.StatusBar.push(context_id, (_("Pass %(count)d Progress") % {'count': self.passcounter}))
if self.haveaudio:
if self.audiodata.has_key("samplerate"):
# self.check_for_elements()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]