mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-22 02:13:46 +00:00
qtmux: Add prores support
https://bugzilla.gnome.org/show_bug.cgi?id=756388
This commit is contained in:
parent
7f112af657
commit
6bfee34b93
2 changed files with 17 additions and 0 deletions
|
@ -4024,6 +4024,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)
|
||||
|
|
|
@ -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 "; "
|
||||
|
|
Loading…
Reference in a new issue