Comment 1 for bug 381782

Revision history for this message
Paul Fleischer (paul-xpg) wrote :

I just couldn't keep my mind off this problem, and now I know what is wrong.
The problem seems to be that the way that multiple bitrate streams are only supported in newer versions of ASF.
Therefore the stream properties header for all but one of the streams is hidden away in an extended header. The point is that any old player supporting older version of ASF will still work, but only with the single stream which has its stream properties header outside the extension header. Obviously, the Danish National Radio has chosen to use the lowest bitrate stream for older players.

I have hacked together the attached patch, which should enabled libmms to support multiple bitrate URLs. It's getting rather late here, so chances are that the patch is filled with exciting errors :-)

Oh, and when the patch has been applied, I can playback the URL mentioned previously in much better quality:

gst-launch-0.10 mmssrc location="mmsh://wmscr1.dr.dk/e02ch03m?wmcontentbitrate=300000&MSWMExt=.asf" ! ffdemux_asf ! decodebin ! alsasink

For some strange reason the ffdemux_asf element is needed, else it won't play back. I'm pretty sure that it is unrelated to libmms, but I'll wait to investigate further till I have gotten some sleep :-)

/Paul