Problem when binding Android Surface to glimagesink

Sebastian Dröge sebastian at centricular.com
Tue Sep 13 07:10:40 UTC 2016


On Di, 2016-09-13 at 09:20 +1000, Matthew Waters wrote:
> On 13/09/16 07:25, pedjaman wrote:
> > 
> > So i have same problem like creator of this thread.
> > I'm rendering to SurfaceTexture from android MediaPlayer, VLC, ExoPLayer,
> > but gStreamer is not rendering to it. Sound goes, but no video rendered.
> > Also onFrameAvailable(SurfaceTexture surface) meaning that new frame is
> > ready is fired, meaning that gStreamer rendered something but it black.
> > 
> > I've used
> > 
> > https://github.com/sdroege/gst-player
> > > > <https://github.com/sdroege/gst-player>  
> > 
> > as a base and just not getting surface from SurfaceView. I was using
> > SurfaceTexture
> > 
> >                 mSurface = new SurfaceTexture(mTextureID);
> >                 mSurface.setOnFrameAvailableListener(this);
> >                 Surface surface = new Surface(mSurface);
> >                 mGstMediaPlayer.setSurface(surface);
> > 
> > Any tips?
> 
> glimagesink doesn't support rendering into a SurfaceTexture and a new
> video sink element would be needed for that functionality.  The GL part
> would look very similar to the existing gtkglsink/qmlglsink elements
> with only the platform specific stuff changing.

And for that please file a bug, ideally even working on that yourself
if it's something you need :)

There's already a similar bug for Android, but that way it wouldn't
solve your specific problem:
  https://bugzilla.gnome.org/show_bug.cgi?id=766044

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 967 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160913/bdc1a0ca/attachment.sig>


More information about the gstreamer-devel mailing list