After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 737703 - dashdemux: improve bandwidth calculation
dashdemux: improve bandwidth calculation
Status: RESOLVED DUPLICATE of bug 742979
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.4.1
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-01 08:20 UTC by Matthieu Bouron
Modified: 2015-01-28 12:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
dashdemux: improve bandwidth calculation (6.77 KB, patch)
2014-10-01 08:20 UTC, Matthieu Bouron
none Details | Review

Description Matthieu Bouron 2014-10-01 08:20:33 UTC
Created attachment 287500 [details] [review]
dashdemux: improve bandwidth calculation

The current method used in dashdemux compute the overall bandwidth from the beginning of the stream download, so the more you go in time, the less you are likely to be able to react to a (big) bandwidth change.

The following patch uses a simple sliding window, where the download rate is computed for each fragment download. A simple average is made out of the N previous value to get the current bandwidth, so dashdemux is more likely to react to bandwidth changes.

This patch is a WIP and obviously need to be tweaked / completed (and more tested): so we don't end up switching representations all the time.

Maybe we can try to react quickly when the bandwidth goes down, and slightly recover when it goes up to preserve playback smoothness ?

Comments welcome :)
Comment 1 Matthieu Bouron 2015-01-28 12:56:33 UTC

*** This bug has been marked as a duplicate of bug 742979 ***