Commit e0cf764b authored by Snir Sheriber's avatar Snir Sheriber
Browse files

gst-plugin: Use autovideoconvert element for color space conversion



When VAAPI based encoder is used it's likely that also VAAPI based
conversion is available (using the vaapipostproc element).
Moving to autovideoconvert will automatically choose a suitable
convert element according to elements availability (e.g. in the
VAAPI case it would select vaapipostproc due to its high rank).
Signed-off-by: Snir Sheriber's avatarSnir Sheriber <ssheribe@redhat.com>
Acked-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
parent 1997e62e
Pipeline #45795 passed with stage
in 6 minutes and 59 seconds
......@@ -216,9 +216,9 @@ void GstreamerFrameCapture::pipeline_init(const GstreamerEncoderSettings &settin
if (!capture) {
throw std::runtime_error("Gstreamer's capture element cannot be created");
}
GstObjectUPtr<GstElement> convert(gst_element_factory_make("videoconvert", "convert"));
GstObjectUPtr<GstElement> convert(gst_element_factory_make("autovideoconvert", "convert"));
if (!convert) {
throw std::runtime_error("Gstreamer's 'videoconvert' element cannot be created");
throw std::runtime_error("Gstreamer's 'autovideoconvert' element cannot be created");
}
GstCapsUPtr sink_caps;
GstObjectUPtr<GstElement> encoder(get_encoder_plugin(settings, sink_caps));
......
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