soc-qcom-sdm845: Discourage hw video de-/encoders in Gst
Gstreamer enables hw de- and encoding by default for the most common APIs, including V4L2-stateful. Unfortunately the venus driver is still quite unstable, reliably crashing in very common scenarios, triggering apps like Snapshot, Showtime or Tuba to show error messages or not working properly - partly because of non-optimal error-handling.
Until the kernel driver situation improves, set environment variables that demote the decoders to fallbacks in case nothing else is available, and disable the hw-encoders completely as they tend to destabalise the whole system if something goes wrong.
This is a "FOSDEM" MR - i.e. I'd love if we could get this into edge in time for the event :)
Notes:
- I'm not sure how to do this reliably on openRC setups - does anyone have a suggestion?
- Given that this depends on the kernel driver and can hopefully be dropped in future kernel versios I figured the kernel package would be the most appropriate place to put this - please let me know if you prefer some other place.
Related:
- main/postmarketos-base-ui-gnome: add some gst p... (!6086 - merged)
- https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/79084
How to test:
mrtest upgrade 6105
-
mrtest add 6105
->u
->y
Edited by Robert Mader