Commit 64f28e25 authored by Olivier Crête's avatar Olivier Crête 👻

avimux: Add UYVY format

parent b22aed9b
......@@ -93,7 +93,7 @@ static GstStaticPadTemplate video_sink_factory =
GST_PAD_SINK,
GST_PAD_REQUEST,
GST_STATIC_CAPS ("video/x-raw, "
"format = (string) { YUY2, I420, BGR, BGRx, BGRA, GRAY8 }, "
"format = (string) { YUY2, I420, BGR, BGRx, BGRA, GRAY8, UYVY }, "
"width = (int) [ 16, 4096 ], "
"height = (int) [ 16, 4096 ], "
"framerate = (fraction) [ 0, MAX ]; "
......@@ -479,6 +479,10 @@ gst_avi_mux_vidsink_set_caps (GstPad * pad, GstCaps * vscaps)
avipad->vids.compression = GST_MAKE_FOURCC ('Y', 'U', 'Y', '2');
avipad->vids.bit_cnt = 16;
break;
case GST_VIDEO_FORMAT_UYVY:
avipad->vids.compression = GST_MAKE_FOURCC ('U', 'Y', 'V', 'Y');
avipad->vids.bit_cnt = 16;
break;
case GST_VIDEO_FORMAT_I420:
avipad->vids.compression = GST_MAKE_FOURCC ('I', '4', '2', '0');
avipad->vids.bit_cnt = 12;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment