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

Nicolas Dufresne nicolas at ndufresne.ca
Tue May 8 14:01:20 UTC 2018


Le mar. 8 mai 2018 10:27, rland <rlandjon at gmail.com> 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
> <http://gstreamer-devel.966125.n4.nabble.com/> at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180508/ffb3ed65/attachment.html>


More information about the gstreamer-devel mailing list