[transmageddon] Add Opus support
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Add Opus support
- Date: Mon, 12 Nov 2012 09:59:07 +0000 (UTC)
commit 3bdd1863ca64d4da0db363bec2cb184d6dab8064
Author: Christian Fredrik Kalager Schaller <uraeus linuxrisin org>
Date: Mon Nov 12 10:58:41 2012 +0100
Add Opus support
src/codecfinder.py | 6 ++++--
src/transmageddon.py | 5 +++--
transmageddon.spec.in | 1 +
3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/codecfinder.py b/src/codecfinder.py
index ed13166..a9cb4f6 100644
--- a/src/codecfinder.py
+++ b/src/codecfinder.py
@@ -75,7 +75,8 @@ audiosuffixmap = { 'Ogg' : ".ogg", \
'FLV' : ".flv", \
'3GPP' : ".3gp", \
'ASF' : ".wma", \
- 'WebM' : ".webm" }
+ 'WebM' : ".webm", \
+ 'Opus' : ".opus" }
nocontainersuffixmap = {
'audio/mpeg, mpegversion=(int)1, layer=(int)3' : ".mp3", \
@@ -104,7 +105,8 @@ codecmap = { 'Vorbis' : "audio/x-vorbis", \
'H263+' : "video/x-h263,variant=itu,h263version=h263p", \
'On2 vp8' : "video/x-vp8", \
'mp2' : "audio/mpeg,mpegversion=(int)1, layer=(int)2", \
- 'MPEG1' : "video/mpeg,mpegversion=(int)1,systemstream=false"}
+ 'MPEG1' : "video/mpeg,mpegversion=(int)1,systemstream=false", \
+ 'Opus' : "audio/x-opus" }
#####
#This code checks for available muxers and return a unique caps string
diff --git a/src/transmageddon.py b/src/transmageddon.py
index d57dd08..a4f75f8 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -85,7 +85,8 @@ supported_audio_codecs = [
"speex",
"celt",
"amrnb",
- "wma2"
+ "wma2",
+ "Opus"
]
supported_video_codecs = [
@@ -121,7 +122,7 @@ supported_video_container_map = {
}
supported_audio_container_map = {
- 'Ogg': [ 'Vorbis', 'FLAC', 'Speex', 'Celt Ultra' ],
+ 'Ogg': [ 'Vorbis', 'FLAC', 'Speex', 'Celt Ultra', 'Opus' ],
'MXF': [ 'mp3', 'AAC', 'AC3' ],
'Matroska': [ 'FLAC', 'AAC', 'AC3', 'Vorbis' ],
'AVI': [ 'mp3', 'AC3', 'Windows Media Audio 2' ],
diff --git a/transmageddon.spec.in b/transmageddon.spec.in
index 43d22d1..f7223cf 100644
--- a/transmageddon.spec.in
+++ b/transmageddon.spec.in
@@ -16,6 +16,7 @@ Requires: gstreamer1 >= @GST_REQ@
Requires: notify-python
Requires: python3-gobject
Requires: xdg-user-dirs-gtk
+Requires: python-which
BuildRequires: gstreamer1-devel >= @GST_REQ@
BuildRequires: gettext
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]