GNOME Bugzilla – Bug 602629
Multiple audio streams in random order
Last modified: 2009-12-01 13:11:45 UTC
When playing a URI containing several audio stream, they are in a random order. Launching several times the same pipelines results in hearing different streams. I tried that using french Freebox providing RTSP streams. Each URI has 6 audio streams (corresponding to 6 different radio stations) and one video stream (for "decorative" purpose). When launching this command : gst-launch playbin uri="rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=100006" I get randomly one of the six radio station from this URI. I tried to change the "current-audio" property using gst-python and I got the same random order problem : for example, setting current-audio to 3 will give a random station for each start.
The order of the audio streams are given by the order in which they have decodeable data. You should distinguish them by their tags instead of looking at the random stream number. (Also you should use playbin2 nowadays but that's another story :) )