summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2015-10-11 09:18:40 +0100
committerThibault Saunier <tsaunier@gnome.org>2015-10-28 14:19:00 +0100
commit78e5871e52666f5906d1e21839f1d5c47b2acd1a (patch)
tree19147d3839f9737a4bb07648147627934133fd12
parent38da14a4e7c3baffaa3af656e42cb5c0a70bedeb (diff)
downloadgstreamer-plugins-good-78e5871e52666f5906d1e21839f1d5c47b2acd1a.tar.gz
qtmux: Add prores support
https://bugzilla.gnome.org/show_bug.cgi?id=756388
-rw-r--r--gst/isomp4/gstqtmux.c12
-rw-r--r--gst/isomp4/gstqtmuxmap.c5
2 files changed, 17 insertions, 0 deletions
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c
index c62171b5a..e1e22df50 100644
--- a/gst/isomp4/gstqtmux.c
+++ b/gst/isomp4/gstqtmux.c
@@ -4026,6 +4026,18 @@ gst_qt_mux_video_sink_set_caps (GstQTPad * qtpad, GstCaps * caps)
gst_structure_get_uint (structure, "format", &fourcc);
entry.fourcc = fourcc;
+ } else if (strcmp (mimetype, "video/x-prores") == 0) {
+ const gchar *variant;
+
+ variant = gst_structure_get_string (structure, "format");
+ if (!variant || !g_strcmp0 (variant, "standard"))
+ entry.fourcc = GST_MAKE_FOURCC ('a', 'p', 'c', 'n');
+ else if (!g_strcmp0 (variant, "lt"))
+ entry.fourcc = GST_MAKE_FOURCC ('a', 'p', 'c', 's');
+ else if (!g_strcmp0 (variant, "hq"))
+ entry.fourcc = GST_MAKE_FOURCC ('a', 'p', 'c', 'h');
+ else if (!g_strcmp0 (variant, "proxy"))
+ entry.fourcc = GST_MAKE_FOURCC ('a', 'p', '4', 'h');
}
if (!entry.fourcc)
diff --git a/gst/isomp4/gstqtmuxmap.c b/gst/isomp4/gstqtmuxmap.c
index e088a424a..006f16d33 100644
--- a/gst/isomp4/gstqtmuxmap.c
+++ b/gst/isomp4/gstqtmuxmap.c
@@ -73,6 +73,10 @@
"divxversion = (int) 5, "\
COMMON_VIDEO_CAPS
+#define PRORES_CAPS \
+ "video/x-prores, variant = (string) {standard, lt, hq, proxy}, " \
+ COMMON_VIDEO_CAPS
+
#define SVQ_CAPS \
"video/x-svq, " \
"svqversion = (int) 3, " \
@@ -156,6 +160,7 @@ GstQTMuxFormatProp gst_qt_mux_format_list[] = {
"format = (string) { RGB, UYVY, v210 }, "
COMMON_VIDEO_CAPS "; "
MPEG4V_CAPS "; "
+ PRORES_CAPS "; "
H263_CAPS "; "
H264_CAPS "; "
SVQ_CAPS "; "