Decode multiple video/audio files (DASH's adaption sets)

Jan Schmidt thaytan at noraisin.net
Thu Nov 12 04:18:00 PST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 05/11/15 13:33, Majaja wrote:
> Dear all:
> 
> I had a problm about DASH (in fact, even local file playback & if
> the file has multiple video or audio tracks) and would like to ask
> for your help.
> 
> The problem is, for my application, I have an unique Video/Audio
> decoder HW instance and they both DONOT support multi-thread usage.
> So they can only decode a sinle stream at one time. Once we create
> multiple instances for, ex video. It will lead to system crash.

As Duncan suggested, using the autoplug-select signal of decodebin,
you can control which decoder it uses and ensure only 1 stream gets
access to the hardware decoder.

Alternatively, it's possible to set it up as a hardware decoder sink
in playbin with a custom bin that uses one instance of the decoder,
and switches when caps change (you can use the autoconvert plugin for
that).

Or finally, we're working on decodebin3 which only instantiates a
decoder for actively decoded streams and switches streams into
decoders dynamically, which will fix the problem at the designed-in
level, but decodebin3 isn't ready for external testing just yet.

Regards,
Jan.

> 
> Please refer to the following link: 
> http://marea.tilab.com:8085/content/dash/clear/multiaudio/2audio/c1/al
l.mpd
>
>  The graph dump for this URL is as the link below. 
> https://bug756794.bugzilla-attachments.gnome.org/attachment.cgi?id=313
633
>
>  You can find that there are two audio adaption sets there, one for
> English and the other for Italian.
> 
> It makes playback fail here as the description above.
> 
> If we use software CODEC which supports multiple decoding threads,
> I think it will be O.K.
> 
> I believe there may be somebody who has the same problem with me,
> since for embedeed system applicaiton, it is a comman case to allow
> decode an unique stream only at a time.
> 
> DO you have any suggestion for this issue or has thers had an
> existing solution already?
> 
> Thank you
> 
> 
> 
> -- View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Decode-multiple-video-audi
o-files-DASH-s-adaption-sets-tp4674394.html
>
> 
Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________ gstreamer-devel
> mailing list gstreamer-devel at lists.freedesktop.org 
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJWRIN2AAoJEEqdx1eGJfOecMEP/RpIEuQ0k5A7kIrZNhpj3TFB
Yj84HKe5UsuvE6WtdtIr4Gtq6vGSLsi6+PHDnFCnaOQqaMdxb0V9pVT8v6oqoycY
2K9ikcu25ugp/+9fD9kSk8tUEUvyza6lg5/T8kmJkXbtYZBlntYB1kOoBEDc4HJ0
SR6eJ7QyjBJH6S98y3652RYWm6+sgzzdPfF8mtMoLbSzpu2h3eBxfeXOwoM6b3Zo
8HuLerRUrcyolp2yR/zCp8nEc4K4kmMsZhsTHjMoG4Mc+RQXFtJCVgcmrfDbbprO
ikzji8S2H4tbd0/xquAZzgDp+G+rGdncyLlMSNlIcfMR6wjts6tVjothYuGu+4Fp
Y/sjtoA+1QAdVZ2BkaKC9nV1s1bU+MMfiw6sAy0Ci+cmOeKF2PIJrPgZOAX7tsKZ
qR1j96/08vqJWOrNbvXiX3adchdx5wTvJFzU+QqR7s0283dJE22KciFzPvI5kwwF
HaaRHiLEeAO9yPyeUchnOzuW+d4c675bp3KzbrAfNN7wogm4MkeRdXdsDPBQJMw4
0POHkkLtW/017rxrcaNKJjHkGA06JqtWFfWWDjsD3591GrqdYAxV07Z/FdS9p+fZ
1mQH3ollkhua4Io27QqnUU/2/AxIDFQSUHXr4aYk1ayqgAhyhY0menkFTd2cL0xE
B09WFsalwKStucxc5CEL
=9sXk
-----END PGP SIGNATURE-----


More information about the gstreamer-devel mailing list