matroska/webmmux: Support Opus in webmmux and VP9 in matroskamux
authorSebastian Dröge <sebastian@centricular.com>
Tue, 3 Nov 2015 10:42:52 +0000 (12:42 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 3 Nov 2015 18:35:27 +0000 (20:35 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=729950

gst/matroska/matroska-mux.c
gst/matroska/webm-mux.c

index b669242..ed8019b 100644 (file)
@@ -125,6 +125,8 @@ static GstStaticPadTemplate videosink_templ =
         COMMON_VIDEO_CAPS "; "
         "video/x-vp8, "
         COMMON_VIDEO_CAPS "; "
+        "video/x-vp9, "
+        COMMON_VIDEO_CAPS "; "
         "video/x-raw, "
         "format = (string) { YUY2, I420, YV12, UYVY, AYUV, GRAY8, BGR, RGB }, "
         COMMON_VIDEO_CAPS "; "
index 0ba330f..aaf9d19 100644 (file)
@@ -70,10 +70,11 @@ static GstStaticPadTemplate webm_videosink_templ =
     );
 
 static GstStaticPadTemplate webm_audiosink_templ =
-GST_STATIC_PAD_TEMPLATE ("audio_%u",
+    GST_STATIC_PAD_TEMPLATE ("audio_%u",
     GST_PAD_SINK,
     GST_PAD_REQUEST,
-    GST_STATIC_CAPS ("audio/x-vorbis, " COMMON_AUDIO_CAPS)
+    GST_STATIC_CAPS ("audio/x-vorbis, " COMMON_AUDIO_CAPS ";"
+        "audio/x-opus, " COMMON_AUDIO_CAPS)
     );
 
 static void