[pitivi] ExportSettings: implement get{Audio,Video}Encoders
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ExportSettings: implement get{Audio,Video}Encoders
- Date: Fri, 10 Dec 2010 17:50:16 +0000 (UTC)
commit 4259f0d3872adacad15e51f5ebba41ab6168a44d
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 19:18:17 2010 +0000
ExportSettings: implement get{Audio,Video}Encoders
pitivi/settings.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/settings.py b/pitivi/settings.py
index b6b5bfa..250832a 100644
--- a/pitivi/settings.py
+++ b/pitivi/settings.py
@@ -596,6 +596,16 @@ class ExportSettings(Signallable, Loggable):
if changed:
self.emit("encoders-changed")
+ def getAudioEncoders(self):
+ """ Returns the list of audio encoders compatible with the current
+ muxer """
+ return self.aencoders[self.muxer]
+
+ def getVideoEncoders(self):
+ """ Returns the list of video encoders compatible with the current
+ muxer """
+ return self.vencoders[self.muxer]
+
def export_settings_to_render_settings(export,
have_video=True, have_audio=True):
# Get the audio and video caps/encoder/settings
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]