GNOME Bugzilla – Bug 464678
Add connection-speed property to mmssrc element
Last modified: 2007-08-08 15:18:09 UTC
The 4th parameter of libmms/mms_connect() is the bandwidth available, libmms uses this argument in the stream activation strategy. Currently the bandwidth available is hardcoded to 128kbps, this cause some problems. I propose add connection-speed property to that element so it can be properly selected. The value 0 for bandwidth will take the meaning unknown, and max bandwitdh will be passed to libmms, this will ensure that best audio and video streams are activated in the server side and the other ones are deactivated. Current strategy for stream selection in libmms is: bandwidth_avil = x 1) select the audio stream with the max bitrate 2) bandwidth_avil -= selected_audio_stream_bitrate 3) try to select the video stream with a higher bitrate constrained to the remaining bandwidth. 4) if no video stream is selected, select the video stream with the lowest bitrate.
Created attachment 93269 [details] [review] Patch to implement it
Created attachment 93275 [details] [review] Patch to implement it Added doc to the previous patch
Patch by: Josep Torre Valles <josep@fluendo.com> * docs/plugins/gst-plugins-bad-plugins.args: * ext/libmms/gstmms.c: (gst_mms_class_init), (gst_mms_init), (gst_mms_start), (gst_mms_set_property), (gst_mms_get_property): * ext/libmms/gstmms.h: Add connection speed property to libmms. Fixes #464678.