-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Streaming on low bandwith #7
Comments
@donkeylobster @TermeHansen @twinther Do you know, if choosing streaming quality/rate is possible via the DR API? I can't seem to find anything related to streaming quality on the API documentation Unless anyone knows a specific method, I think we should close this issue - Leaving this open for a couple of weeks to see if we have some luck finding a way. |
I don't really understand how HLS and DASH work, but I think it's in the protocol, somehow. To clarify, I think DASH chooses itself based on bandwidth. You can definitely get the information somehow, here's sample output from
This may or may not be the relevant part of You can get a list of all links using this.
It seems HDS links are all the same; we can't simply select the quality via the url. For HLS links it seems pretty easy (I only checked one video), we just need to add a suffix to the decrypted url:
|
Thanks pank - Exactly what we are looking for here. Is it both on LiveTV and Archive it is available? MPEG-DASH is an adaptive streaming method - So not sure i understand why their is a link per fixed bitrate!? I have seen that the DR website uses DASH - So we should be able to implement it. Only "downside" risk would be the "bad" picture quality untill the video buffer have build up. A simple settings.json selector config option with a dropdown of the 6 options could also be viable solution My python skills are limited, so if anyone are up for the job, i'll happily assist with testing and getting it into official KODI release. |
Just tested one of the DASH streams....... You can actually specify the bitrate range directly in the DASH url - So you can partially define both min and max :-) https://dr01-lh.akamaihd.net/i/live/dr01_0@147054/master.m3u8?b=100-500 https://dr01-lh.akamaihd.net/i/live/dr01_0@147054/master.m3u8?b=3000-4000 Note: Not all bitrates are accepted by the endpoint |
Ah cool. Is there any advantage of hls or dash when constraining size? When I use iPlayer I specifically set the hls link as dash anyway doesn't manage to select an acceptable bitrate in terms of not lacking. Do you know which bitrates work with dash? We could also make an option for dash vs hls and an option for quality. I know python but not the xbmc libraries. It shouldn't be too hard to add, tho. |
(The below only relates to playing a show/episode and not the live TV channel streaming (e.g. DR1)) I live in Australia and i am experiencing problems with the bitrate too (I think it is a mix of distance and a slow connection). It does not even buffer data and nothing happens when I select a show. I have experimented a bit based on your comments (I have otherwise no knowledge about streaming protocols) Controlling the bitrate via https://dr01-lh.akamaihd.net/some/show/url/master.m3u8?b=100-500 seems to be specific to each show regarding the best setting. And i have so far not got close to an ok picture quality. But if I go e.g. https://dr01-lh.akamaihd.net/some/show/url/index_2_av.m3u8 Then it works great and I also get an ok picture quality on any show i have picked so far. Just wanted to add this to your findings. Cheers, |
Hi all, I was having a similar kind of issue: I use Kodi 19.4 on Android 9 device that is limited in resolution to 480p; however the DR Kodi plugin would always start with the largest (HD?) resolution/bandwidth; then my device has to start downsampling to 480p, and it had a really hard time doing that, which results with audio and video interruptions, quite irritating. Some months ago, I even tried to build @neslo's PR #28 ; I managed to do that, and I was happy to choose the low quality streams, so I can enjoy uninterrupted video and audio playback. What I learned from this, as far as I can remember, is:
Nevertheless, device crashed a month or so ago, and I needed reset to factory sattings, so all that was gone. So I started with the vanilla DR addon again, and like a week or so ago I also got an update for it. Nevertheless, I got into the same problems again - and just as I was ready to waste some more hours on getting into Python for Kodi again, I played around a bit, and I was happy to realize: with this addon version (TermeHansen-6.0.0-matrix.1), there is no more need for patching; I can select live stream quality in the vanilla addon! Not exactly sure what I did, but I was first playing with InputStream Adaptive (it only gets listed in the My add-ons/All list): Then from there, on Configure, and I ended up with these settings: Now I go to DR addon, and play a live stream, say DR1 - you have to show the player bar there, and select the Settings (cogwheel) icon: ... then in the Settings submenu, Select Program: ... and voilà - select your variant_bitrate program: Great to have this again, and not even having to hack the addon myself :) Thanks for the great work to the developers! EDIT: turns out, "Select Program" is a built-in Kodi functionality for m3u8 streams (see e.g. xbmc/PlayListM3U.cpp); if you would like to have a lower bitrate by default when you select a channel (DR1, DR2 etc) from the plugin, use the advice from this post Changing playback quality:
For me, with a setting of "1024 kbps" for Internet connection bandwidth limitation, I consistently get lowest quality stream chosen, when I click on (say) DR2 channel from this addon -- which is is great, because it's exactly how I want it setup (otherwise my device chokes on being unable to render the highest quality stream, and then there's a minute fight to lower the bitrate manually via "Select Program", unless Kodi crashes in the meantime). |
I am currently in Africa, and miss seeing DR. My son misses Ramasjang.
We have a stable, but slow (1.25 Mbit) connection. I cannot stream with the default quality, as this exceeds my available bandwidth.
Is there a way to set set quality/bandwidth manually, or have it change automatically like DR's flash player?
The text was updated successfully, but these errors were encountered: