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 696631 - hlsdemux: unnecessary switching to lowest bitrate
hlsdemux: unnecessary switching to lowest bitrate
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
0.10.36
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-03-26 12:27 UTC by Andreas Frisch
Modified: 2014-12-30 19:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas Frisch 2013-03-26 12:27:00 UTC
i investigated the phenomenon that hls-demux playback tends to switch to the lowest available bitrate which seemed to happen especially on super fast connections.
i observed that this happens in the log before the bitrate switches to the lowest available stream:

0:00:10.514954329  2180   0x87f570 INFO                hlsdemux gsthlsdemux.c:1268:gst_hls_demux_get_next_fragment:<hlsdemux0> Fetching next fragment http://***:8080/***/***-1_541759.ts

** (gst-launch-0.10:2180): CRITICAL **: gst_fragment_get_total_size: assertion `GST_IS_FRAGMENT (fragment)' failed
0:00:11.626698109  2180   0x87f570 DEBUG               hlsdemux gsthlsdemux.c:1244:gst_hls_demux_switch_playlist: Downloaded 0 bytes in 0:00:01.202326000. Bitrate is : 0
0:00:11.627190331  2180   0x87f570 INFO                hlsdemux gsthlsdemux.c:1145:gst_hls_demux_change_playlist:<hlsdemux0> Client was on 2085600bps, max allowed is 0bps, switching to bitrate 985600bps

then, it downloads the same fragment index again with the lowest bitrate
it turns out that hlsdemux actually starts the download of the fragment too early, before it is actually present on the server, hence the 0 byte size.
Comment 1 Tim-Philipp Müller 2013-03-26 12:36:04 UTC
Does this still happen with 1.0.6 or git master?
Comment 2 Andreas Frisch 2013-03-26 16:07:31 UTC
i can't test because i don't have the bandwidth on this machine / no gst 1.x on the other machine. 

i've observed the "Downloaded 0 bytes" message also on the bip-bop-stream on git master (https://devimages.apple.com.edgekey.net/resources/http-streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8) where every fragment should be available all the time. it's probably something else then!
Comment 3 Tim-Philipp Müller 2013-11-24 18:46:11 UTC
Do you have another link? That one doesn't seem to work anymore.
Comment 5 Thiago Sousa Santos 2014-05-06 12:51:07 UTC
hlsdemux has changed a lot since this report. Can you confirm it still fails with git 1.3?
Comment 6 Thiago Sousa Santos 2014-05-06 12:51:29 UTC
(In reply to comment #5)
> hlsdemux has changed a lot since this report. Can you confirm it still fails
> with git 1.3?
I meant "git or 1.3"
Comment 7 Thiago Sousa Santos 2014-12-30 19:41:15 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!