[pitivi] RenderDialog: implement video / audio encoder settings
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] RenderDialog: implement video / audio encoder settings
- Date: Fri, 10 Dec 2010 17:51:17 +0000 (UTC)
commit c0b0b7dd0805c056379a7ec15cf9dfce103e6467
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 19:04:35 2010 +0000
RenderDialog: implement video / audio encoder settings
pitivi/ui/encodingdialog.py | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index f52b6a4..3bf1bce 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -31,6 +31,7 @@ from gettext import gettext as _
import pitivi.configure as configure
from pitivi.log.loggable import Loggable
+from pitivi.ui.encodingprogress import EncodingProgressDialog
from pitivi.ui.gstwidget import GstElementSettingsDialog
from pitivi.ui.glade import GladeWindow
from pitivi.actioner import Renderer
@@ -109,6 +110,7 @@ class EncodingDialog(GladeWindow, Renderer):
ellipsize(self.video_encoder_combo)
self.timestarted = 0
+ self.containersettings = {}
self._displaySettings()
self.window.connect("delete-event", self._deleteEventCb)
@@ -133,6 +135,10 @@ class EncodingDialog(GladeWindow, Renderer):
self.muxercombobox.set_model(factorylist(
self.settings.muxers))
+ # Encoder/Muxer settings
+ self.containersettings = self.settings.containersettings
+
+
# Summary
self._updateSummary()
@@ -152,11 +158,30 @@ class EncodingDialog(GladeWindow, Renderer):
self.settings.setEncoders(muxer=muxer)
self.updateFilename(basename)
+
+ def _videoSettingsButtonClickedCb(self, button):
+ self._elementSettingsDialog(self.video_encoder_combo,
+ 'vcodecsettings')
+
def _updateSummary(self):
text = self.settings.getVideoDescription() + "\n\n" +\
self.settings.getAudioDescription()
self.summary_label.props.label = text
+ def _audioSettingsButtonClickedCb(self, button):
+ self._elementSettingsDialog(self.audio_encoder_combo,
+ 'acodecsettings')
+
+ def _elementSettingsDialog(self, combo, settings_attr):
+ factory = get_combo_value(combo)
+ settings = getattr(self.settings, settings_attr)
+ dialog = GstElementSettingsDialog(factory, settings)
+
+ response = dialog.run()
+ if response == gtk.RESPONSE_OK:
+ setattr(self.settings, settings_attr, dialog.getSettings())
+ dialog.destroy()
+
self.startAction()
def _settingsButtonClickedCb(self, unused_button):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]