glimagesink last-sample: convert texture-target from external-oes to 2D

Mailing List SVR lists at svrinformatica.it
Thu Oct 31 11:12:11 UTC 2019


Hi,

I need to take a snapshot from the last-sample obtained from 
glimagesink, here is my snapshot pipeline:

appsrc ! gldownload ! videoconvert ! jpegenc ! filesink

the snapshot is fine if, in the caps, texture-target is 2D but 
fails/crashs if texture-target is external-oes.

On Android, using sw decoders, the texture-target is 2D and so the 
snapshot works but using hw decoders the texture-target is external-oes 
and so the snapshot does not work.

I think this was changed in newer GStreamer's versions: I have this 
issue with 1.16.1 while it worked in previous versions (for example 
1.12.x where the texture-target probably was 2D even using hw decoders).

Is there a way to convert texture-target to 2D after I get the 
last-sample from glimagesink and so make the snapshot pipeline work?

I tryed using something like this with no success:

appsrc ! glcolorconvert ! video/x-raw(memory:GLMemory), 
texture-target=(string)2D ! gldownload ! videoconvert ! jpegenc ! filesink

any suggestion is really appreciated,  thanks!

Nicola


More information about the gstreamer-devel mailing list