GNOME Bugzilla – Bug 723282
vaapiencode: fix caps to report the supported resolution range
Last modified: 2018-11-03 15:44:46 UTC
Currently, the resolution reported in static caps is fixed to be [ 1 - 2147483647 ]. When a complete pipeline is built at run-time, the correct range needs to be probed and reported on query-caps event, so that appropriate fallback could possibly be taken care of earlier. Implementation note: VA surface attributes (min-width, min-height, max-width, max-height) are to be used. The GstVaapiEncoder object can now be created earlier, and appropriate dimensions be extracted through gst_vaapi_encoder_get_min_resolution() and gst_vaapi_encoder_get_max_resolution(). If VA surface attributes are not supported, the default minimum would be one macroblock (16x16) and the default maximum to match the codec specs. Or, the default maximum could be 1080p, and the underlying VA driver shall actually report the real HW capabilities.
Moving to Product:GStreamer, Component:gstreamer-vaapi
Also we shall to report the maximum quality level available (bug #783567)
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/12.