OpenGL (including ES) is for 3D (and some 2D) graphics hardware acceleration and has nothing to do with video decoding/encoding.ksharindam wrote: ↑Tue Oct 17, 2017 4:49 amAs far as I know, OpenGL ES can not be integrated with xwindows. So every app that uses hw accelerated playback, overlays on screen. But I am quite surprised Chromium browser is able to play video with hw accleration without overlaying.
Can anyone explain how is it possible?
There is no "hwacclerated rendering" (except by using OpenGL, perhaps). The video is decoded on the GPU (if HW decoding is used) and the result has to be copied back into the frame buffer in real time, which includes a costly colour space conversion (some kind of YUV to RGB(A)).ksharindam wrote: ↑Tue Oct 17, 2017 7:03 amI am not saying about hw accelerated decoding, I am saying about hwacclerated rendering.
Raspberry Pi2 processor is strong enough to decode 720p video but it is not strong enough to render video on fullscreen. You can not play smoothly a hw decoded video on x11 output. I have confirmed this by playing a video with mpv using ffmpeg compiled for raspberry pi (that supports hw accelerated decoding). But mpv can not play that video smoothly on fullscreen using x11 output (thouth decoding was hw acclerated).
But chromium can play video smoothly.
Thats what I wanted to know.which includes a costly colour space conversion (some kind of YUV to RGB(A)).
How efficient this process is depends on the software components being used.
The method used by the specially patched chromium version works best so far.
Sort of on MPlayer and VLC. Firefox page rendering sounds like only composition to me which has nothing to do with it.pagenotfound wrote: ↑Fri Oct 20, 2017 2:21 pmRecently, Eric Anholt wrote on his blog:
"Dave Stevenson has VCSM successfully importing dma-bufs. This is a major step for displaying or GL rendering from of the media decode engine’s buffers."
Does that have anything to do with video rendering?
More generally, is there any hope that the whole situation will improve and VLC or MPlayer will be able to use the GPU just like they do on other systems? Full screen, with their own transport controls on top. Or Firefox use the GPU for page rendering?
Users browsing this forum: No registered users and 1 guest