From 4bb9ffa8fb7dbacb320964729abf7bf7ad4ff2cf Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 12 May 2010 18:50:34 -0700 Subject: [PATCH] qtmux: Add VP8 --- gst/quicktime/fourcc.h | 1 + gst/quicktime/gstqtmux.c | 3 +++ gst/quicktime/gstqtmuxmap.c | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gst/quicktime/fourcc.h b/gst/quicktime/fourcc.h index 559f45f..51a2a5f 100644 --- a/gst/quicktime/fourcc.h +++ b/gst/quicktime/fourcc.h @@ -147,6 +147,7 @@ G_BEGIN_DECLS #define FOURCC_s263 GST_MAKE_FOURCC('s','2','6','3') #define FOURCC_avcC GST_MAKE_FOURCC('a','v','c','C') #define FOURCC_VP31 GST_MAKE_FOURCC('V','P','3','1') +#define FOURCC_VP80 GST_MAKE_FOURCC('V','P','8','0') #define FOURCC_rle_ GST_MAKE_FOURCC('r','l','e',' ') #define FOURCC_MAC6 GST_MAKE_FOURCC('M','A','C','6') #define FOURCC_MAC3 GST_MAKE_FOURCC('M','A','C','3') diff --git a/gst/quicktime/gstqtmux.c b/gst/quicktime/gstqtmux.c index 5744e19..64f71ff 100644 --- a/gst/quicktime/gstqtmux.c +++ b/gst/quicktime/gstqtmux.c @@ -2411,6 +2411,9 @@ gst_qt_mux_video_sink_set_caps (GstPad * pad, GstCaps * caps) GST_DEBUG_OBJECT (qtmux, "missing or invalid fourcc in jp2 caps"); goto refuse_caps; } + } else if (strcmp (mimetype, "video/x-vp8") == 0) { + entry.fourcc = FOURCC_VP80; + sync = FALSE; } else if (strcmp (mimetype, "video/x-qt-part") == 0) { guint32 fourcc; diff --git a/gst/quicktime/gstqtmuxmap.c b/gst/quicktime/gstqtmuxmap.c index 5fdf339..4d238eb 100644 --- a/gst/quicktime/gstqtmuxmap.c +++ b/gst/quicktime/gstqtmuxmap.c @@ -164,7 +164,8 @@ GstQTMuxFormatProp gst_qt_mux_format_list[] = { COMMON_VIDEO_CAPS "; " "image/jpeg, " COMMON_VIDEO_CAPS_NO_FRAMERATE "; " - "video/x-qt-part, " COMMON_VIDEO_CAPS), + "video/x-vp8, " + COMMON_VIDEO_CAPS "; " "video/x-qt-part, " COMMON_VIDEO_CAPS), GST_STATIC_CAPS (PCM_CAPS_FULL "; " MP3_CAPS " ; " AAC_CAPS " ; " -- 2.7.4