This is the jellyfish h264 demo on a #librem5 using the #imx8mq's #hantro VPU.
Using the CPU we take 300% of CPU time, using the VPU instead we take 10% (and even that can be optimized further). Using the VPU also saves ~1.5W of power. Thanks go to the #gstreamer and #linux kernel folks for making this possible!
@leimon yes, that's why i wanted to get this going with #gstreamer since that's the framwork used by #epiphany/#firefox for video playback.
@agx So this means watching videos will drain less battery?
@iooioio ...yes, and be smoother (for h264 atm)
@agx Awesome! Which changes were required to make this happen? Did both gstreamer and the kernel require patches? And when is this landing for librem5 owners?
Sorry for all the questions. Guess I'm just excited.
@iooioio track https://source.puri.sm/Librem5/linux-next/-/merge_requests/328 which will gather the details (or references to those)
@agx, I hope that this means that we will soon have H.265 decoding soon as well:
https://www.cnx-software.com/2021/02/18/open-source-h-265-hevc-hantro-g2-decoder-support-added-to-nxp-i-mx-8m-in-linux/
@amosbatto at some point yes, but afaik #gstreamer devs are still working on support for that (but they merged Ezequiel Garcia #h264 changes today so it will be part of future gstreamer releases, yay!)
@agx WOW, 1.5W is a bit on difference on a battery-powered device!. Looking forward to watch jellyfish on mine.
@agx Does this VPU capability work within epiphany/firefox for streaming videos?