[sound-juicer] Add opus encoding option
- From: Phillip Wood <pwood src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer] Add opus encoding option
- Date: Wed, 22 Jan 2014 12:06:27 +0000 (UTC)
commit bf1cbae2ac9b7279ed886f5ecef8b9bc46d23fca
Author: Phillip Wood <phillip wood dunelm org uk>
Date: Mon Oct 14 11:11:30 2013 +0100
Add opus encoding option
This is based on rhythmbox commit 7102535 by Jonathan Matthew.
https://bugzilla.gnome.org/show_bug.cgi?id=679478
data/rhythmbox.gep | 12 ++++++++++++
libjuicer/rb-gst-media-types.c | 2 ++
2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/data/rhythmbox.gep b/data/rhythmbox.gep
index 6383d96..08e769b 100644
--- a/data/rhythmbox.gep
+++ b/data/rhythmbox.gep
@@ -27,6 +27,18 @@ type = audio
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
diff --git a/libjuicer/rb-gst-media-types.c b/libjuicer/rb-gst-media-types.c
index 3777060..42a22f4 100644
--- a/libjuicer/rb-gst-media-types.c
+++ b/libjuicer/rb-gst-media-types.c
@@ -106,6 +106,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")) {
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]