Problem with installing Widevine

  • Hello,

    I have done a clean install from LibreElec 10.0.4 on a Raspberry Pi 3B with and installed some Addons

    (Retrospekt, ARD) and can watch TV.

    However, some channels ask to install Widevine and when I try to do that then I get an error message.

    I have rebooted and tried to reinstall Widevine via the inputstreamhelper addon, but with the same result.

    When I look in Kodi.log then I see the following lines:

    Code
    2023-02-01 12:37:16.289 T:838     ERROR <general>: [script.module.inputstreamhelper] Widevine CDM is not installed.
    2023-02-01 12:37:16.296 T:838   WARNING <general>: [script.module.inputstreamhelper] Recursively create directory '/storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/temp/'.
    2023-02-01 12:37:17.658 T:774      INFO <general>: Skipped 1 duplicate messages..
    2023-02-01 12:37:17.658 T:774      INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
    2023-02-01 12:37:30.042 T:838   WARNING <general>: [script.module.inputstreamhelper] Downloading ChromeOS image for Widevine: BOB (15236.66.0)
    2023-02-01 12:37:30.350 T:838   WARNING <general>: [script.module.inputstreamhelper] The given file size does not match the request!
    2023-02-01 12:37:30.357 T:774      INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
    2023-02-01 12:40:36.358 T:838     FATAL <general>: [script.module.inputstreamhelper] Download failed, checksums do not match!

    Complete log can be found here https://pastebin.com/1Hg7rP49

    The reason I did a clean install is that I was also facing problems with Widevine in the previous installation i.e. LibreELEC (official): 9.2.8. ( Kodi 18.9.0)

    Up till a few days that install was working fine.

    When I search in the kodi.log of that installation, then I run into the same set of lines:

    Code
    2023-02-01 19:52:21.017 T:1790935936  NOTICE: [script.module.inputstreamhelper] Downloading ChromeOS image for Widevine: BOB (15236.66.0)
    2023-02-01 19:52:21.119 T:1790935936  NOTICE: [script.module.inputstreamhelper] The given file size does not match the request!
    2023-02-01 19:56:15.016 T:1790935936   ERROR: [script.module.inputstreamhelper] Download failed, checksums do not match!

    So I have the impression that there is a problem with widevine itself.

    I did some searching w.r.t. this issue and found some old posts, but they have a slightly different problem description and I'm not an expert.

    Any suggestions to solve this issue would be welcome.

  • Check how much disk space you have on the SD card (or USB, etc.). If there's not enough space the download might be truncating causing the mismatch in expected filesize vs. filesize on disk. The ChromeOS image is 1-1.2GB in size IRRC (and then you need additional space to unpack it and get the widevine lib inside).

  • FWIW I'm running the Latest Beta and I'm running into the same issue. My SD card should have enough space so I'm not convinced that is the issue.

    Code
    Filesystem      Size  Used Avail Use% Mounted on
    dev             7.8G     0  7.8G   0% /dev
    run             7.8G  1.5M  7.8G   1% /run
    /dev/nvme0n1p3  462G  299G  163G  65% /
    tmpfs           7.8G  103M  7.7G   2% /dev/shm
    tmpfs           7.8G  4.0M  7.8G   1% /tmp
    /dev/nvme1n1p1  1.9T  293G  1.6T  16% /home
    tmpfs           1.6G  100K  1.6G   1% /run/user/1000

    Edit: I just tried this on a fresh install of stable (RPi4.arm-10.0.4) and had the same results.

    Edited once, last by tbob: Additional Information (February 3, 2023 at 6:43 AM).

  • Thanks for your comments. I use a 16GB SD card from which 13.3G is still available.

    Code
    Filesystem                Size      Used Available Use% Mounted on
    devtmpfs                330.5M      4.0K    330.5M   0% /dev
    tmpfs                   184.4M      8.8M    175.7M   5% /run
    /dev/mmcblk0p1          511.7M    124.8M    386.9M  24% /flash
    /dev/loop0              110.0M    110.0M         0 100% /
    /dev/mmcblk0p2           13.4G    102.7M     13.3G   1% /storage
    tmpfs                   461.0M         0    461.0M   0% /dev/shm
    tmpfs                     4.0M         0      4.0M   0% /sys/fs/cgroup
    tmpfs                   461.0M      2.3M    458.8M   0% /var
    tmpfs                   461.0M         0    461.0M   0% /tmp
    1. Find latest libwidevinecdm.so on the net.
    2. Copy that file into /storage/.kodi/cdm.

    I have done so, but the Netflix addon is still prompting me to update, and then fails the update, ostensibly due to a checksum mismatch.

  • In order to try to solve the issue I have downloaded the file chromeos_15236.66.0_atlas_recovery_stable-channel_mp.bin.zip from https://chromiumdash.appspot.com/serving-builds…ory=Chrome%20OS

    Then I have copied this file to the RBpi 3B and have opened InputStreamHelper / Debug / Install Widevine CDM library from specific source and direct it to the chromeos zipfile that I just downloaded.

    Then it starts extracting and when it is finished it says that "Update of widevine is necessary".

    So back to the point where I started.

    Below the text in kodi.log as result from the action above

    The good thing is that there are no complaints any more about filesizes & checksums.

  • WARNING : [script.module.inputstreamhelper] Delete file '/storage/.kodi/cdm/libwidevinecdm.so'.

    WARNING : [script.module.inputstreamhelper] Hardlink file '/storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup/15236.66.0/libwidevinecdm.so' to '/storage/.kodi/cdm/libwidevinecdm.so'.

    FATAL : [script.module.inputstreamhelper] Widevine or Chrome OS recovery.json is missing. Reinstall is required.

    Remove that link: /storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup/15236.66.0/libwidevinecdm.so

  • Quote

    FATAL : [script.module.inputstreamhelper] Widevine or Chrome OS recovery.json is missing. Reinstall is required.

    Reinstall the InputStream Helper add-on.

  • There is another addon for installing Widevine, you can google for "SlyGuy Common" and see if that works. It doesn't use ChromeOS images, instead he hosts installs for the library.

  • There is another addon for installing Widevine, you can google for "SlyGuy Common" and see if that works. It doesn't use ChromeOS images, instead he hosts installs for the library.

    I have installed its repo. It doesn't have any option to install widevine. The easiest way was to go to the input stream helper settings and choose "install from spesific source" under debug.

  • The manual ChromeOS download did not work for me.

    mglae : thanks for posting the link

    The below advise in the thread solved the problem with Widevine for me:

    The full path to the file is: ~/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/utils.py

    Thank you all for your support.