How to get HW decoder singleton(playbin2 or playbin3)?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get HW decoder singleton(playbin2 or playbin3)?

rland
This post was updated on .
Hi,
When I ran gstreamer on android, I had a problem.
Most devices only provide 1 HW videodecoder + 1 HW audiodecoder resource,
In other words, a/v decoder that is automatically loaded in playbin2/playbin3
must be kept in a single instance.

Such as,when play an MKV file, it has 1 video,4 audio tracks, 4
subtitles, playbin2 seems  to build a chain for each track all the way,and
each chain request a decoder resources, regardless of whether we  really
play it  -(so,i get  media_codec.configure error while request second audio
decoder instance.I have noticed that playbin2 has a
current-audio/current-video/current-text, which attempts to set its
properties immediately after the playbin2 is created. But there was no
miracle,Playbin2 is still trying to create instances for each audio
track.
(BTW, I'm using  GstPlayer API for building applications).

Can anyone help me on this?

Regards, rland



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to get HW decoder singleton(playbin2 or playbin3)?

Nicolas Dufresne-5


Le mar. 8 mai 2018 10:27, rland <[hidden email]> a écrit :
Hi,When I ran gstreamer on android, I had a problem, Most devices only provide 1 HW videodecoder + 1 HW audiodecoder resource,In other words, a/v decoder that is automatically loaded in playbin2/playbin3 must be kept in a single instance. Such as,when play an MKV file, it has 1 video,4 audio tracks, 4 subtitles, playbin2 seems to build a chain for each track all the way,and each chain request a decoder resources, regardless of whether we really play it -( so,i get media_codec.configure error while request second audio decoder instance. I have noticed that playbin2 has a current-audio/current-video/current-text, which attempts to set its properties immediately after the playbin2 is created. But there was no miracle,Playbin2 is still trying to create instances for each audio track. BTW, I'm using GstPlayer API for building applications. Can anyone help me on this? Regards, rland

There is little we can do about that.



Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to get HW decoder singleton(playbin2 or playbin3)?

rland
This post was updated on .
Nicolas Dufresne-5 wrote
> Le mar. 8 mai 2018 10:27, rland <

> rlandjon@

> > a écrit :
>
>>There is little we can do about that.
>
 Maybe something like this:
 https://bugzilla.gnome.org/show_bug.cgi?id=758689
 
 But still need  do some hacks in decodebin2.
 In this scenario, I think we just need to handle autoplug_select,
 and  don't need an inputselector. -)

Regards,
rland