avimux: Allow muxing v210 video into AVI

avidemux already handles this.
This commit is contained in:
Sebastian Dröge 2019-12-16 21:07:08 +02:00 committed by GStreamer Merge Bot
parent 7cbc351e05
commit 4dbaff424f

View file

@ -93,7 +93,7 @@ static GstStaticPadTemplate video_sink_factory =
GST_PAD_SINK, GST_PAD_SINK,
GST_PAD_REQUEST, GST_PAD_REQUEST,
GST_STATIC_CAPS ("video/x-raw, " GST_STATIC_CAPS ("video/x-raw, "
"format = (string) { YUY2, I420, BGR, BGRx, BGRA, GRAY8, UYVY }, " "format = (string) { YUY2, I420, BGR, BGRx, BGRA, GRAY8, UYVY, v210 }, "
"width = (int) [ 16, 4096 ], " "width = (int) [ 16, 4096 ], "
"height = (int) [ 16, 4096 ], " "height = (int) [ 16, 4096 ], "
"framerate = (fraction) [ 0, MAX ]; " "framerate = (fraction) [ 0, MAX ]; "
@ -493,6 +493,10 @@ gst_avi_mux_vidsink_set_caps (GstPad * pad, GstCaps * vscaps)
avipad->vids.compression = GST_MAKE_FOURCC ('Y', '8', '0', '0'); avipad->vids.compression = GST_MAKE_FOURCC ('Y', '8', '0', '0');
avipad->vids.bit_cnt = 8; avipad->vids.bit_cnt = 8;
break; break;
case GST_VIDEO_FORMAT_v210:
avipad->vids.compression = GST_MAKE_FOURCC ('v', '2', '1', '0');
avipad->vids.bit_cnt = 20;
break;
case GST_VIDEO_FORMAT_BGR: case GST_VIDEO_FORMAT_BGR:
avipad->vids.compression = GST_MAKE_FOURCC (0x00, 0x00, 0x00, 0x00); avipad->vids.compression = GST_MAKE_FOURCC (0x00, 0x00, 0x00, 0x00);
avipad->vids.bit_cnt = 24; avipad->vids.bit_cnt = 24;