[transmageddon] it add HTML5 profile and also fix support for webm in presets



commit d46f2f1e7d0d36a71933256546197a9123c6b501
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date:   Mon May 30 13:38:18 2011 +0100

    it add HTML5 profile and also fix support for webm in presets

 profiles/html5webm.xml |   32 ++++++++++++++++++++++++++++++++
 src/transmageddon.py   |    5 +++--
 2 files changed, 35 insertions(+), 2 deletions(-)
---
diff --git a/profiles/html5webm.xml b/profiles/html5webm.xml
new file mode 100644
index 0000000..aec0aa3
--- /dev/null
+++ b/profiles/html5webm.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+
+<device>
+    <make>HTML5</make>
+    <model>WebM</model>
+    <description>Profile for HTML5 video</description>
+    <author>
+        <name>Christian Schaller</name>
+        <email>christian schaller collabora co uk</email>
+    </author>
+    <version>1.0</version>
+    <icon>file://computer.svg</icon>
+    <default>Normal</default>
+    <profile>
+        <name>Normal</name>
+        <container>video/webm</container>
+        <extension>webm</extension>
+        <audio>
+            <name>audio/x-vorbis, rate=44100</name>
+            <channels>1, 2</channels>
+        </audio>
+        <video>
+            <name>video/x-vp8</name>
+            <passes>0</passes>
+            <pixelaspectratio>0/0</pixelaspectratio>
+            <width>320, 1920</width>
+            <height>240, 1080</height>
+            <framerate>1, 30</framerate>
+        </video>
+    </profile>
+</device>
+
diff --git a/src/transmageddon.py b/src/transmageddon.py
index cff0645..bd1ac0a 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -74,7 +74,6 @@ supported_containers = [
 ]
 
 supported_audio_codecs = [
-     #  "apass",
        "vorbis",
        "flac",
        "mp3",
@@ -392,8 +391,10 @@ class TransmageddonUI:
            self.containerchoice.set_active(9)
        elif preset.container == "video/x-ms-asf":
            self.containerchoice.set_active(10)
+       elif preset.container == "video/webm":
+           self.containerchoice.set_active(11)
        else:
-            print "failed to set container format"
+            print "failed to set container format from preset data"
 
 
        # Check for number of passes



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]