How to make androidmedia support direct output on surface

lucky chou luckychsj at gmail.com
Fri Mar 31 02:21:49 UTC 2017


Matthew Waters wrote
> On 09/01/17 23:59, lucky chou wrote:
>> Hi,
>> As far as I know, it seems that  androidmedia plugin can only use OpenGL
>> output video, right?
>> I hope similar to nuplayer, Video frame  be displayed on surface which is
>> passed down by MediaPlayer, how to do it? 
>> AMediaCodec_configure (codec,format, surface,
>>               NULL, flags)
>>
>> Because in some devices,  especially on TV device, 
>> direct surface output video usually has hardware acceleration.
> 
>>The other possibility (that's not currently implemented) is to pass a
>>SurfaceView based Surface into MediaCodec for decoding to render the
>>resulting video frames.  To do so, one would need a special sink element
>>as well as modifications to the androidmedia decoder to allow setting
>>the Surface from outside.  All doable though :)
> 
> Sounds great.Indeed, I think if support  surfaceview in Android, it should
> be more friendly for app developers.
> 
> 
> 
> _______________________________________________
> gstreamer-devel mailing list

> gstreamer-devel at .freedesktop

> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> signature.asc (527 bytes)
> <http://gstreamer-devel.966125.n4.nabble.com/attachment/4681385/0/signature.asc>





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-make-androidmedia-support-direct-output-on-surfaceview-tp4681374p4682465.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list