[rhythmbox] add ogg opus encoding profile and file extension
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] add ogg opus encoding profile and file extension
- Date: Fri, 5 Jul 2013 13:24:12 +0000 (UTC)
commit 71025350b967ebce4a3e6b53bc99e60eee2a0ff2
Author: Jonathan Matthew <jonathan d14n org>
Date: Fri Jul 5 23:23:42 2013 +1000
add ogg opus encoding profile and file extension
data/rhythmbox.gep | 14 ++++++++++++++
lib/rb-gst-media-types.c | 2 ++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/data/rhythmbox.gep b/data/rhythmbox.gep
index 9448922..5da9af5 100644
--- a/data/rhythmbox.gep
+++ b/data/rhythmbox.gep
@@ -30,6 +30,19 @@ format = audio/x-vorbis
presence = 1
+[profile-oggopus]
+name = oggopus
+description = Ogg Opus
+format = application/ogg
+type = container
+
+[streamprofile-oggopus-1]
+parent = oggopus
+type = audio
+format = audio/x-opus
+presence = 1
+
+
[profile-flac]
name = flac
description = FLAC
@@ -54,3 +67,4 @@ presence = 1
lamemp3enc = quality
faac = quality
vorbisenc = quality
+opusenc = bitrate
diff --git a/lib/rb-gst-media-types.c b/lib/rb-gst-media-types.c
index 1dc41e3..1f26189 100644
--- a/lib/rb-gst-media-types.c
+++ b/lib/rb-gst-media-types.c
@@ -163,6 +163,8 @@ rb_gst_media_type_to_extension (const char *media_type)
return "mp3";
} else if (!strcmp (media_type, "audio/x-vorbis") || !strcmp (media_type, "application/ogg") ||
!strcmp (media_type, "audio/ogg")) {
return "ogg";
+ } else if (!strcmp (media_type, "audio/x-opus")) {
+ return "opus";
} else if (!strcmp (media_type, "audio/x-flac") || !strcmp (media_type, "audio/flac")) {
return "flac";
} else if (!strcmp (media_type, "audio/x-aac") || !strcmp (media_type, "audio/aac") || !strcmp
(media_type, "audio/x-alac")) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]