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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Mailing List SVR
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel