adaptivedemux: track per-fragment bitrates.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 27 Jan 2015 12:48:42 +0000 (13:48 +0100)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Wed, 11 Feb 2015 23:07:15 +0000 (00:07 +0100)
commitc98348c1417fbe6cabe0fd4dfcb3d65acd8d5c81
tree4b2e358fe8dbb941cb2d12aed62415a187438552
parent767fefafb36260849463f60a076a5cfcb2afe172
adaptivedemux: track per-fragment bitrates.

And use the average to go up in resolution, and the last fragment
bitrate to go down.

This allows the demuxer to react rapidly to bitrate loss, and
be conservative for bitrate improvements.

+ Add a construct only property to define the number of fragments
  to consider when calculating the average moving bitrate.

https://bugzilla.gnome.org/show_bug.cgi?id=742979
gst-libs/gst/adaptivedemux/gstadaptivedemux.c
gst-libs/gst/adaptivedemux/gstadaptivedemux.h