Hi all,
I’m running into some issues trying to get MP4 playback through QtWebEngine 5.9.2.
Our hardware is a DFI KS310 (http://www.dfi.com/products/product.html?productId=1962) running an i.MX6 ARM processor. We are using Yocto to build the OS based on version 3.14.52 of the Linux kernel and are including the qtwebengine recipe from Yocto to include it in the image. We are also using Wayland/Weston as a compositor.
When I run the Qt5 minimal browser sample application and navigate to a page that contains an MP4 video file (embedded in a <video> HTML tag), the app crashes with a segmentation fault and the following stack trace:
Received signal 11 SEGV_MAPERR 000069646551
#0 0x0000b4108086 <unknown>
#1 0x0000b4108356 <unknown>
#2 0x0000b33b0b80 <unknown>
[end of stack trace]
At first, I thought this was because the default compilation configuration for QtWebEngine (and Chromium) disables support for proprietary codecs. So, I changed the compilation configuration to enable proprietary codecs, but the Qt5 minimal browser application still crashes when trying to display the MP4 video.
My next thought was to ensure that hardware acceleration was fully enabled in the underlying instance of Chromium. I was able to achieve almost full hardware acceleration by adding the following command line switches when running the Qt5 minimal browser application:
--ignore-gpu-blacklist --disable-gpu-sandbox --blacklist-accelerated-compositing --enable-native-gpu-memory-buffers
After this, the ‘chrome://gpu’ page in Chromium reported:
Graphics Feature Status:
Problems Detected:
As you can see, it seems as though video decode and VPx video decode are not hardware accelerated, and I think this is where my real problem lies.
I also tried to load the same MP4 video file using Chromium (version 40), but the page crashes just the same as with QtWebEngine and displays an “Oh, snap” Chromium error message with no error messages on the console.
I have also tried to pre-install through Yocto many of the Freescale/NXP i.MX6 graphics support libraries and drivers, but it’s possible that I could be missing a vital one or not configuring one correctly:
Has anyone been able to get MP4 video playback to work in QtWebEngine built with Yocto on the i.MX6 chipset?
Thanks,
Chris
Hi Chris
regarding QtWebEngine support please look at
[meta-freescale] [question] What is the state of qt5 webengine html5 hw acceleration support?
How to build Qt (with QtWebEngine support) using meta-toolchain-qt5? - Stack Overflow
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------