mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
avimux: add support for raw monochrome 8-bit video
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=692932
This commit is contained in:
parent
63235d1054
commit
18ff57d6b3
1 changed files with 5 additions and 1 deletions
|
@ -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 }, "
|
||||
"format = (string) { YUY2, I420, GRAY8 }, "
|
||||
"width = (int) [ 16, 4096 ], "
|
||||
"height = (int) [ 16, 4096 ], "
|
||||
"framerate = (fraction) [ 0, MAX ]; "
|
||||
|
@ -476,6 +476,10 @@ gst_avi_mux_vidsink_set_caps (GstPad * pad, GstCaps * vscaps)
|
|||
avipad->vids.compression = GST_MAKE_FOURCC ('I', '4', '2', '0');
|
||||
avipad->vids.bit_cnt = 12;
|
||||
break;
|
||||
case GST_VIDEO_FORMAT_GRAY8:
|
||||
avipad->vids.compression = GST_MAKE_FOURCC ('Y', '8', '0', '0');
|
||||
avipad->vids.bit_cnt = 8;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue