diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2013-10-14 11:11:30 +0100 |
---|---|---|
committer | Phillip Wood <phillip.wood@dunelm.org.uk> | 2014-01-22 12:01:52 +0000 |
commit | bf1cbae2ac9b7279ed886f5ecef8b9bc46d23fca (patch) | |
tree | 689a800bf1b4af17baccb0a24a324b1d739dbdc1 | |
parent | 723028261378654b94f34bf7dd90a58e5397164c (diff) |
Add opus encoding option
This is based on rhythmbox commit 7102535 by Jonathan Matthew.
https://bugzilla.gnome.org/show_bug.cgi?id=679478
-rw-r--r-- | data/rhythmbox.gep | 12 | ||||
-rw-r--r-- | 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")) { |