Lich
Posts: 22
Joined: Wed Apr 11, 2018 8:41 pm
Location: Russia

Displaying video in Raspbian Buster Gstreamer via GLES (not OpenGL).

Tue Jul 23, 2019 9:43 pm

Hello to all!

Raspbian Stretch includes Gstreamer 1.10.4. I have compiled the gstreamer1.0-plugins-bad module with the flags "...-disable-x11 --disable-glx --disable-opengl --disable-wayland --enable-gles2 --enable-egl --enable-dispmanx..." to display video via GLES (see this thread) . Displaying is done using the GPU in a separate layer on top of all X11 windows.

Code: Select all

gst-launch-1.0  videotestsrc ! glimagesink

Raspbian Buster includes Gstreamer 1.14.4, by default, video is displayed using OpenGL. Removing or compiling a gstreamer1.0-plugins-bad similar to the algorithm for Raspbian Stretch doesn't help - Gstreamer tries to use the OpenGL. I think that in this version of Gstreamer, the "glimagesink" element is not in gstreamer1.0-plugins-bad, but in gstreamer1.0-plugins-base.

If the OpenGL driver is included in raspi-config, the hardware acceleration works, but I assume that GLES works better. How do I get the video displaying via GLES?.

Thanks in advance for the answers.

fruitoftheloom
Posts: 23132
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Displaying video in Raspbian Buster Gstreamer via GLES (not OpenGL).

Tue Jul 23, 2019 9:47 pm

Lich wrote:
Tue Jul 23, 2019 9:43 pm
Hello to all!

Raspbian Stretch includes Gstreamer 1.10.4. I have compiled the gstreamer1.0-plugins-bad module with the flags "...-disable-x11 --disable-glx --disable-opengl --disable-wayland --enable-gles2 --enable-egl --enable-dispmanx..." to display video via GLES (see this thread) . Displaying is done using the GPU in a separate layer on top of all X11 windows.

Code: Select all

gst-launch-1.0  videotestsrc ! glimagesink

Raspbian Buster includes Gstreamer 1.14.4, by default, video is displayed using OpenGL. Removing or compiling a gstreamer1.0-plugins-bad similar to the algorithm for Raspbian Stretch doesn't help - Gstreamer tries to use the OpenGL. I think that in this version of Gstreamer, the "glimagesink" element is not in gstreamer1.0-plugins-bad, but in gstreamer1.0-plugins-base.

If the OpenGL driver is included in raspi-config, the hardware acceleration works, but I assume that GLES works better. How do I get the video displaying via GLES?.

Thanks in advance for the answers.

You appear to have forgotten what Raspberry Pi SBC you have ?
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Lich
Posts: 22
Joined: Wed Apr 11, 2018 8:41 pm
Location: Russia

Re: Displaying video in Raspbian Buster Gstreamer via GLES (not OpenGL).

Wed Jul 24, 2019 4:45 pm

I have Raspberry Pi 3

Return to “OpenGLES”