SIGSEGV with glimagesink

Linus Lüssing linus.luessing at c0d3.blue
Thu Jan 21 02:26:43 PST 2016


On Tue, Jan 19, 2016 at 11:46:49PM -0800, Matthew Waters wrote:
> On 19/01/16 22:38, Linus Lüssing wrote:
> > On Tue, Jan 19, 2016 at 12:29:33PM -0800, Matthew Waters wrote:
> >> 1. create a symlink from libGLESv2.so.1 in a directory pointed by
> >> LD_LIBRARY_PATH to RPi's libGLESv2.so (and the same for libEGL.so)
> > Tried that but does not seem to help (or am I doing something
> > wrong?):
> >
> > -----
> > $ ls -lah ~/foobar
> > total 8.0K
> > drwxr-xr-x  2 pi pi 4.0K Jan 20 07:19 .
> > drwxr-xr-x 41 pi pi 4.0K Jan 20 07:20 ..
> > lrwxrwxrwx  1 pi pi   21 Jan 20 07:19 libEGL.so.1 -> /opt/vc/lib/libEGL.so
> > lrwxrwxrwx  1 pi pi   24 Jan 20 07:19 libGLESv2.so.1 -> /opt/vc/lib/libGLESv2.so
> 
> libGLESv2.so.2 here ;)

That works, I get something \o/. :)

So, hm, I guess to avoid somone else tumbling over the same
problem again, the best way is to get some Raspbian maintainer to
change $something?


Still, I have one remaining issue though, too: The reason why I switched
from fbdevsink to eglessink was to have hardware accelerated
scaling. eglessink did that by default, glimagesink currently does
not do that :(.

Even trying to do hw scaling through glcolorscale does not seem to
work, a pipeline like the following

'... ! omxh264dec ! glcolorscale ! "video/x-raw(memory:GLMemory),format=(string)RGBA, width=(int)1280" ! glimagesink'

only works with width=640 (the original size of the video),
anything else has failing assertions.

In the following, relatively recent thread people seem to have
difficulties getting hardware scaling to work, too:

https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=83225

And basically suggested to copy the eglessink library from an old
dpkg :(.


More information about the gstreamer-devel mailing list