mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
encoder: Only support YUV420 native format as input for now
Practically we should be able to support more formats, for eg: JPEG Encoder can support YUV422, RGBA and all. But this is causing more issues which need proper fix here and there.
This commit is contained in:
parent
fc7e6b19fd
commit
0f40843bb3
1 changed files with 7 additions and 0 deletions
|
@ -585,6 +585,13 @@ set_context_info (GstVaapiEncoder * encoder)
|
|||
if (!cip->chroma_type && (format != GST_VIDEO_FORMAT_ENCODED))
|
||||
goto error_unsupported_format;
|
||||
|
||||
if (cip->chroma_type != GST_VAAPI_CHROMA_TYPE_YUV420 &&
|
||||
format != GST_VIDEO_FORMAT_ENCODED) {
|
||||
GST_ERROR ("We are only supporting YUV:4:2:0 for encoding,"
|
||||
"please try to use vaapipostproc to convert the input format!");
|
||||
goto error_unsupported_format;
|
||||
}
|
||||
|
||||
memset (config, 0, sizeof (*config));
|
||||
config->rc_mode = GST_VAAPI_ENCODER_RATE_CONTROL (encoder);
|
||||
config->packed_headers = get_packed_headers (encoder);
|
||||
|
|
Loading…
Reference in a new issue