Kodi Community Forum

Full Version: "iPlayer WWW" add-on
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2019-10-07, 23:15)Hitcher Wrote: [ -> ]@ilainftw any closer to an update?

Thanks. 
A victim of circumstance, unfortunately. There is working code in the "radio" branch in the GitHub repo, though it still needs some minor cleanup. However, it will only work as-is on master or the 2.0 Helix+ branch. It can't be merged with 3.0 Krypton+ branch without some minor fiddling, and DASH support can't be added until that merge is done (though DASH isn't particularly useful for radio). But before any of that can happen, the entire add-on must be made compatible with Python 3 (to satisfy Kodi repo maintainers), which is a bigger job for CaptainT. Because of that, and for other reasons, I split my code. This add-on only gets the basic radio functionality that I could resuscitate. I'm working on a separate add-on to integrate with BBC Sounds, which is necessary to support personalisation features. It will be a few weeks before I'm in UK long enough to finish it.
(2019-10-08, 13:29)ilainftw Wrote: [ -> ]I'm working on a separate add-on to integrate with BBC Sounds, which is necessary to support personalisation features. It will be a few weeks before I'm in UK long enough to finish it.

Sounds interesting, thanks for the update.
Hi, I have video OK and the subtitles turned on in the Add-on settings. Subtitles were working for a little while, but now they no longer appear. Tried reinstalling with no success. Raspbian on RPi 4, 18.4 latest iPlayer WWW from the official repo.
I have iPlayer (WWW) installed on Kodi 18.4 on LibreElec.  The hardware is an Intel NUC (NUC5I3RYH) with 8 GB of RAM, 240GB OS/App drive and 4TB SATA drive for videos.  Everything plays perfectly except for iPlayer (WWW).  Even iPlayer plays reliably with good video quality, but when there is a lot of motion in the frame, the video becomes somewhat jerky.  Since I also have the CBC (Canadian tv) add-on installed and it plays flawlessly, I believe the issue is associated with transcoding from BBC's 50 fps to 30 fps.  I get no buffering issues or other indication of bandwidth issues (and the Kodi box is on a 1Gb internet connection and using SmartDNSProxy.com), just somewhat jerky video.  Can someone nudge me in the right direction to find the cause of this problem?
(2019-11-04, 22:14)neutronJK Wrote: [ -> ]I have iPlayer (WWW) installed on Kodi 18.4 on LibreElec.  The hardware is an Intel NUC (NUC5I3RYH) with 8 GB of RAM, 240GB OS/App drive and 4TB SATA drive for videos.  Everything plays perfectly except for iPlayer (WWW).  Even iPlayer plays reliably with good video quality, but when there is a lot of motion in the frame, the video becomes somewhat jerky.  Since I also have the CBC (Canadian tv) add-on installed and it plays flawlessly, I believe the issue is associated with transcoding from BBC's 50 fps to 30 fps.  I get no buffering issues or other indication of bandwidth issues (and the Kodi box is on a 1Gb internet connection and using SmartDNSProxy.com), just somewhat jerky video.  Can someone nudge me in the right direction to find the cause of this problem?

Changing the video output settings in Kodi, resolved the jerkiness issue, so all is well now.   I would mention that I occasionally encounter an issue in iPlayer where when I click a link to begin playing a video, it displays a warning saying that I am not in the service area of BBC, but then I click it a second time and it plays fine.  Not sure what that's about but it only happens randomly so I am prepared to live with it.
I'd be grateful if someone could have a look at my log to determine what's throwing these errors with the addon running on the latest libreelec 9.0.2.

https://paste.kodi.tv/ikumugunix.kodi

I've set up the same basic test configurations on both a RPi4.arm RPi2.arm
I've tried both setups multiple times using different versions of inputstream.adaptive and the various stream settings in the addon.

In all cases I used the same network configuration and IP profiles that are working fine with the addon on a Pi3 running OSMC.

Thanks
(2019-11-11, 02:31)deepeeme Wrote: [ -> ]I'd be grateful if someone could have a look at my log to determine what's throwing these errors with the addon running on the latest libreelec 9.0.2.

https://paste.kodi.tv/ikumugunix.kodi

I've set up the same basic test configurations on both a RPi4.arm RPi2.arm
I've tried both setups multiple times using different versions of inputstream.adaptive and the various stream settings in the addon.

In all cases I used the same network configuration and IP profiles that are working fine with the addon on a Pi3 running OSMC.

Thanks
Not to worry, worked it out and now functional on all platforms.
How do I trial 4k uhd? I tried the trial streams nothing comes up. Dash is enabled and other streams work in BBC. Also, tried the strm file but its not showing up as selectable in my flash drive....all I see is folders. The file only shoes up in file manager but not in video player. How do I select this in BBC iplayer?
(2019-11-22, 05:35)technoobmaster Wrote: [ -> ]How do I trial 4k uhd? I tried the trial streams nothing comes up. Dash is enabled and other streams work in BBC. Also, tried the strm file but its not showing up as selectable in my flash drive....all I see is folders. The file only shoes up in file manager but not in video player. How do I select this in BBC iplayer?
It depends if the BBC is running a stream to be honest, last one I remember was the world cup!
(2019-11-22, 10:32)docwra Wrote: [ -> ]
(2019-11-22, 05:35)technoobmaster Wrote: [ -> ]How do I trial 4k uhd? I tried the trial streams nothing comes up. Dash is enabled and other streams work in BBC. Also, tried the strm file but its not showing up as selectable in my flash drive....all I see is folders. The file only shoes up in file manager but not in video player. How do I select this in BBC iplayer?
It depends if the BBC is running a stream to be honest, last one I remember was the world cup!

Why can’t I play the seven planets uhd video or the fa cup cup finals? Both of these are avaibke in iplayer FireStick app.
We are using kodi 18.5 on Windows 10
The laptop is plugged into our LG (not smart) tv via a yamaha rx-A3050 AV receiver by hdmi.
A bizarre thing happens when we watch iplayer this way (not when just using the laptop), every now and then the screen goes black and we lose sound for a split second. Sometimes it happens quite frequently through a programme but other times it's only once or twice during an hour long program.
It never happens when watching through the laptop (not connected to the tv). It never happens with any other kodi addons.
We have updated the laptop drivers, checked the hdmi cable etc. We have done a complete fresh install of kodi and iplayer. I am at a total loss now. Any ideas pleaseHuh




(2015-09-19, 12:51)CaptainT Wrote: [ -> ]This Kodi add-on enables UK users to playback TV content from the BBC iPlayer website.

It uses the BBC website for retrieving information about programmes, which is why it was called "iPlayer WWW".

Pretty much everything should work by now:
  • HD streams are available.
  • Automatic stream selection can be configured.
  • Audio described and Signed content works.
  • Subtitles work for catchup content.
  • Note that all of this needs to be configured in the add-on settings.
  • Personalised features using your BBCiD are available.
  • Radio is supported since version 2.0.0.
  • DASH streams are supported since version 3.0.0, on Kodi Krypton or later using inputstream.adaptive

The development site is available on Github (see changelog.txt for more details).
See https://github.com/vonH/plugin.video.ipl...tree/helix for the 2.x branch of the add-on (Kodi Helix till Jarvis)
See https://github.com/vonH/plugin.video.ipl...ee/krypton for the 3.x branch of the add-on (Kodi Krypton and later)
These are work in progress. If you want a specific snapshot/release, please download it from here: https://github.com/vonH/plugin.video.ipl...w/releases

The latest release can be installed from the official repo (helix and krypton).

If you post any problems with the add-on, please first read the FAQ below and try to be as specific as possible:
  • Where did you encounter the problem? Which section/menu entry did you select?
  • What is the nature of the problem? A typo? Empty content? A stream not playing?
  • Is there an error message you get in the GUI or in your kodi.log file? If so, please specify.
  • Which version and platform of Kodi are you using?
  • Which version of the add-on are you using?

FAQ

1. Version 3.x of the add-on fails to install because of a missing dependency to inputstream.adaptive.

Version 3 of the add-on needs the add-on InputStream Adaptive to be installed and enabled before you can install or upgrade it.
Some devices might not be able to install InputStream Adaptive but most platforms should be ok.

Usually, InputStream Adaptive just needs to be enabled:
  • Start Kodi 17 or later.
  • Go to System->Add-ons->My Add-ons->VideoPlayer.InputStream -> InputStream Adaptive
  • Right click and select Information->Enable or left click and then choose Enable
Please note that the exact procedure may depend on the skin you are using. For Estuary, just skip System and go for Add-ons right away.

2. Kodi keeps buffering when I play a programme.

The add-on will use the highest available quality and bitrate by default. This can lead to problems if your internet connection is too slow for the selected stream or if it is suffering from high load because of other users on the same network.

If Kodi keeps buffering frequently, the most likely cause is that your connection is too slow. In this case, go to the add-on settings and disable the "Play streams automatically using these settings" option on the "Streams" tab. With this option disabled, the add-on will always show you a list of different streams available for each programme. Try different bitrates and suppliers until you find a combination which works well on your internet connection. Then go back to the add-on settings, switch "Play streams automatically using these settings" back on and select the appropriate CDN and bitrate below. Now, the add-on will automatically start with your favourite bitrate and CDN.

If Kodi is just buffering occasionally, it might simply run out of buffer for a moment. Instead of using a different bitrate, it might be sufficient to increase the size of your buffer. For more information on buffers in Kodi, please see the Kodi wiki: HOW-TO:Modify the video cache.

On a side note: The best option to avoid buffering would be if Kodi could switch between different streams/bitrates on the fly. This is the way the official iPlayer works. Unfortunately, this functionality is not available for HLS streams and not yet perfect for DASH streams in Kodi.
Any thoughts as to what's throwing this python error, please?
It only happens on catchup streams.
Live streams works fine using the same HLS, Limelight and manual stream select settings:
Pi4 running 9.2.0 (Leia).

Thanks.

2019-11-28 13:12:39.482 T:2624578416   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: 'keyword'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/default.py", line 167, in <module>
                                                Video.GetAvailableStreams(name, url, iconimage, description)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/resources/lib/ipwww_video.py", line 826, in GetAvailableStreams
                                                AddAvailableStreamsDirectory(name, stream_ids['stream_id_st'], iconimage, description)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/resources/lib/ipwww_video.py", line 1023, in AddAvailableStreamsDirectory
                                                streams = ParseStreamsHLSDASH(stream_id)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/resources/lib/ipwww_video.py", line 1052, in ParseStreamsHLSDASH
                                                return ParseStreams(stream_id)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/default.py", line 93, in <module>
                                                keyword = utf8_unquote_plus(params["keyword"])
                                            KeyError: 'keyword'
                                            -->End of Python script error report<--
2019-11-28 13:12:39.592 T:2652873584   ERROR: GetDirectory - Error getting plugin://plugin.video.iplayerwww/?description=Live%20boxing%20coverage%20of%20Lee%20McGregor%20v%20Kash%20Farooq%20from%20Glasgow%27s%20Emirates%20Arena.&iconimage=https%3a%2f%2fichef.bbci.co.uk%2fimages%2fic%2f832x468%2fp07tyl6z.jpg&logged_in=False&mode=122&name=Boxing%20-%20Lee%20McGregor%20v%20Kash%20Farooq&subtitles_url&url=https%3a%2f%2fwww.bbc.co.uk%2fiplayer%2fepisode%2fm000bkry
2019-11-28 13:12:39.624 T:3012052304   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.iplayerwww/?description=Live%20boxing%20coverage%20of%20Lee%20McGregor%20v%20Kash%20Farooq%20from%20Glasgow%27s%20Emirates%20Arena.&iconimage=https%3a%2f%2fichef.bbci.co.uk%2fimages%2fic%2f832x468%2fp07tyl6z.jpg&logged_in=False&mode=122&name=Boxing%20-%20Lee%20McGregor%20v%20Kash%20Farooq&subtitles_url&url=https%3a%2f%2fwww.bbc.co.uk%2fiplayer%2fepisode%2fm000bkry) failed
2019-11-28 13:14:10.592 T:2882610032   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: 'keyword'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/default.py", line 167, in <module>
                                                Video.GetAvailableStreams(name, url, iconimage, description)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/resources/lib/ipwww_video.py", line 826, in GetAvailableStreams
                                                AddAvailableStreamsDirectory(name, stream_ids['stream_id_st'], iconimage, description)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/resources/lib/ipwww_video.py", line 1023, in AddAvailableStreamsDirectory
                                                streams = ParseStreamsHLSDASH(stream_id)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/resources/lib/ipwww_video.py", line 1052, in ParseStreamsHLSDASH
                                                return ParseStreams(stream_id)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/default.py", line 93, in <module>
                                                keyword = utf8_unquote_plus(params["keyword"])
                                            KeyError: 'keyword'
                                            -->End of Python script error report<--
2019-11-28 13:14:10.690 T:2863825776   ERROR: GetDirectory - Error getting plugin://plugin.video.iplayerwww/?description=Live%20boxing%20coverage%20of%20Lee%20McGregor%20v%20Kash%20Farooq%20from%20Glasgow%27s%20Emirates%20Arena.&iconimage=https%3a%2f%2fichef.bbci.co.uk%2fimages%2fic%2f832x468%2fp07tyl6z.jpg&logged_in=False&mode=122&name=Boxing%20-%20Lee%20McGregor%20v%20Kash%20Farooq&subtitles_url&url=https%3a%2f%2fwww.bbc.co.uk%2fiplayer%2fepisode%2fm000bkry
2019-11-28 13:14:10.706 T:3012052304   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.iplayerwww/?description=Live%20boxing%20coverage%20of%20Lee%20McGregor%20v%20Kash%20Farooq%20from%20Glasgow%27s%20Emirates%20Arena.&iconimage=https%3a%2f%2fichef.bbci.co.uk%2fimages%2fic%2f832x468%2fp07tyl6z.jpg&logged_in=False&mode=122&name=Boxing%20-%20Lee%20McGregor%20v%20Kash%20Farooq&subtitles_url&url=https%3a%2f%2fwww.bbc.co.uk%2fiplayer%2fepisode%2fm000bkry) failed
2019-11-28 13:15:03.543 T:3012052304  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.iplayerwww/?url=http%3A%2F%2Fvs-hls-uk-live.bbcfmt.hs.llnwd.net%2Fpool_902%2Flive%2Fuk%2Fbbc_one_hd%2Fbbc_one_hd.isml%2Fbbc_one_hd-pa4%253d128000-video%253d2812032.m3u8&mode=201&name=BBC+One+-+%5BI%5D%5BCOLOR+ff008000%5D3.1+Mbps%5B%2FCOLOR%5D+%5BCOLOR+fff1f1f1%5DLimelight%5B%2FCOLOR%5D%5B%2FI%5D&iconimage=%2Fstorage%2F.kodi%2Faddons%2Fplugin.video.iplayerwww%2Fmedia%2Fbbc_one_hd.png&description=&subtitles_url=&logged_in=False
2019-11-28 13:15:04.791 T:2624578416  NOTICE: Creating InputStream
2019-11-28 13:15:06.033 T:2624578416  NOTICE: Creating Demuxer
2019-11-28 13:15:09.864 T:2624578416  NOTICE: Opening stream: 1 source: 256
2019-11-28 13:15:09.865 T:2624578416  NOTICE: Creating video codec with codec id: 27
2019-11-28 13:15:09.888 T:2624578416  NOTICE: Creating video thread
2019-11-28 13:15:09.888 T:2882610032  NOTICE: running thread: video_thread
2019-11-28 13:15:10.022 T:2624578416  NOTICE: Opening stream: 0 source: 256
2019-11-28 13:15:10.022 T:2624578416  NOTICE: Finding audio codec for: 86018
2019-11-28 13:15:10.024 T:2624578416  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2019-11-28 13:15:10.024 T:2624578416  NOTICE: Creating audio thread
2019-11-28 13:15:10.024 T:2592072560  NOTICE: running thread: CVideoPlayerAudio:Tonguerocess()
2019-11-28 13:15:10.037 T:2592072560  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
2019-11-28 13:15:11.504 T:2882610032 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
2019-11-28 13:16:21.846 T:3012052304   ERROR: Control 602 in window 12901 has been asked to focus, but it can't
2019-11-28 13:16:23.520 T:3012052304  NOTICE: CVideoPlayer::CloseFile()
2019-11-28 13:16:23.525 T:2624578416  NOTICE: CVideoPlayer::OnExit()
2019-11-28 13:16:23.525 T:2624578416  NOTICE: Closing stream player 1
2019-11-28 13:16:23.525 T:2624578416  NOTICE: Waiting for audio thread to exit
2019-11-28 13:16:23.530 T:2592072560  NOTICE: thread end: CVideoPlayerAudio::OnExit()
2019-11-28 13:16:23.530 T:2624578416  NOTICE: Closing audio device
2019-11-28 13:16:23.562 T:3012052304  NOTICE: VideoPlayer: waiting for threads to exit
2019-11-28 13:16:23.581 T:2624578416  NOTICE: Deleting audio codec
2019-11-28 13:16:23.581 T:2624578416  NOTICE: Closing stream player 2
2019-11-28 13:16:23.581 T:2624578416  NOTICE: waiting for video thread to exit
2019-11-28 13:16:23.608 T:2882610032  NOTICE: thread end: video_thread
2019-11-28 13:16:23.613 T:2624578416  NOTICE: deleting video codec
2019-11-28 13:16:23.640 T:3012052304  NOTICE: VideoPlayer: finished waiting
2019-11-28 13:16:23.640 T:3012052304  NOTICE: CVideoPlayer::CloseFile()
2019-11-28 13:16:23.640 T:3012052304  NOTICE: VideoPlayer: waiting for threads to exit
2019-11-28 13:16:23.641 T:3012052304  NOTICE: VideoPlayer: finished waiting
2019-11-28 13:16:23.721 T:3012052304   ERROR: Control 55 in window 10025 has been asked to focus, but it can't
2019-11-28 13:17:08.690 T:2600465264   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: 'keyword'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/default.py", line 167, in <module>
                                                Video.GetAvailableStreams(name, url, iconimage, description)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/resources/lib/ipwww_video.py", line 826, in GetAvailableStreams
                                                AddAvailableStreamsDirectory(name, stream_ids['stream_id_st'], iconimage, description)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/resources/lib/ipwww_video.py", line 1023, in AddAvailableStreamsDirectory
                                                streams = ParseStreamsHLSDASH(stream_id)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/resources/lib/ipwww_video.py", line 1052, in ParseStreamsHLSDASH
                                                return ParseStreams(stream_id)
                                              File "/storage/.kodi/addons/plugin.video.iplayerwww/default.py", line 93, in <module>
                                                keyword = utf8_unquote_plus(params["keyword"])
                                            KeyError: 'keyword'
                                            -->End of Python script error report<--
Please do not post logs or log snippets to the forum directly.

Enable debug logging, reboot and reproduce the issue and then upload the full debug log (wiki) to paste.kodi.tv and supply the URL for that upload here. The simplest way is to use the log uploader addon, as detailed in the wiki link.
(2019-11-29, 01:26)deepeeme Wrote: [ -> ]Any thoughts as to what's throwing this python error, please?
It only happens on catchup streams.
Live streams works fine using the same HLS, Limelight and manual stream select settings:
Pi4 running 9.2.0 (Leia).

Hard to tell. Does this happen for all catch-up programmes, or just some? If it is only some, please post an example.

In general HLS streams should not be used any more. They may (or may not) disappear sooner or later. DASH is more future proof.
(2019-11-29, 08:38)CaptainT Wrote: [ -> ]
(2019-11-29, 01:26)deepeeme Wrote: [ -> ]Any thoughts as to what's throwing this python error, please?
It only happens on catchup streams.
Live streams works fine using the same HLS, Limelight and manual stream select settings:
Pi4 running 9.2.0 (Leia).

Hard to tell. Does this happen for all catch-up programmes, or just some? If it is only some, please post an example.

In general HLS streams should not be used any more. They may (or may not) disappear sooner or later. DASH is more future proof. 
Thanks for the suggestion and feedback. Yes, it happens for all catchup streams.
I'll do some more testing and post back if I come up with something.
Pi4 on libreelec is something of a work in progress at the moment.