Posts by diederik

    I recently installed the Retrospect addon on my Rock64 running nightly-20220208-72b6d0d (RK3328.arm) which downloaded some (ChromeOS?) recovery image to get the widevine library which is needed to watch 'NPO start' (Dutch public broadcaster). But trying to watch something, it was buffering constantly. I SSH-ed into my kodi device and noticed 1 core was at 100% all the time. The stream being 540p x264, that didn't make sense.

    I found https://github.com/retrospect-add…ect/issues/1601 while I'm 99+% sure the title is incorrect it does describe the issue I had (and is in English). A similar Dutch issue suggest to revert to an older version of widevine which should fix the issue. But I only had one version.

    That first link points to an issue with inputstream.adaptive and in one of the comments a DL to 4.10.2252.5-linux-armv7.so was provided, but that is armhf, while rock64 runs aarch64/arm64, so that seemed useless for me. Then I did the following:

    Code
    kodi-rock64:~/.kodi/cdm # file libwidevinecdm.so 
    libwidevinecdm.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=d673f7acd89399ecffaeb3c9ea1545f0c932ba00, stripped

    So then I made a backup of that file, DL-ed the 4.10.2252.5-linux-armv7.so one and copied that onto libwidevinecdm.so and then a quick test indicated that the NPO Start stream worked perfectly :)

    But shouldn't I have gotten (initially and afterwards) a 64bit version of the widevine library?

    While my initial problem of getting an older version seems to be solved by DL-ing from a 'random' place, I still like to know if and how this can be done normally/properly.

    If the file with the dropouts is from a remote location (nfs), the first test to do is having the file locally. While GbE should be fast enough, when things don't work, verify all assumptions. I believe that True HD + Atmos requires a sustained high throughput and if there's any interruption, that can cause audio drops. With a normal file copy, it'll just slow down (temporary) and therefor take a (slight) bit longer. With audio, you'll get audio drops.

    Quote
    i have the drops with passthrough mode and also decoding to multi ch pcm. With multi ch pcm it is worse. So for me the hdmi connection to my onkyo av rz-830 seems to be okay and not the issue.

    You have (audio) problems in both cases, but in some cases it's worse. How does that lead to the conclusion that the hdmi connection is fine?

    I would actually suggest trying whether the problem is the same with a different hdmi cable. (verify your assumptions)

    I wonder how do you do this:

    do you do the download on the LE box only (no 2cd box involved) ?

    how do you get the correct download link for the new nightly ?

    I go to https://test.libreelec.tv/ and filter the list for 'rock64', right-click on the one entry that's still left and do 'Copy Link', then I switch to a terminal (tab) connected to my kodi device via SSH, change to ~/backup and do 'wget <paste-previously-copied-link>'.

    IOW all manual and from a 'normal' PC.

    I ran into a similar situation a while ago and since then I DL nightly images to ~/backup/ and copy it to ~/.update/ to apply a new nightly.

    IOW, I keep several old nightly builds which I 'know' are good around. Backing that/those up to another drive/PC would also be a good idea in case the storage medium in my kodi device gives problems.

    You can do that (too) until more nightly builds are kept, but even after that it may be useful to keep your own known-good copies around.

    Formatting the disc with UDF version 2.50 works:
    $ sudo mkudffs --utf8 --blocksize=2048 --media-type=bdr --udfrev=0x0250 --lvid=Backup2 --vid=Backup2 /dev/sr0

    After doing that, were you able to mount the disk then? I'm guessing 'yes' as you said it works, but better to verify then assume.

    If you then do the same command, but then explicitly use '2.60', would it fail like before or would that work?

    Another interesting test would be to only specify the required parameters, so it uses the default values for all others

    Why? It won't be the first time a Windows tool doesn't create things/disks according to spec/standard and while it may work on a or that specific Windows machine (possibly 'assisted' by that same disk creation tool), another tool working according to spec, may choke on it.

    The homepage of the 'udftools' package on Debian is https://github.com/pali/udftools and I'm guessing LE uses that too. You may find additional hints there (in issues f.e.).

    If you can reproduce the problem on a disk created on a Linux machine, that's also the (best) place to report it, so it can be fixed.

    personally I edit /storage/.kodi/usersdata/sources.xml as the format it simple and typing smb://user:pass@SERVER/SHARE is easier on a keyboad via SSH than using a remote in the GUI.

    Oh man, that is so much easier :D I also just discovered the 'System Tools' addon which gave me vim \o/

    I have one video source which I use the most, but it's listed last in 'Videos > Media sources'. I edited the sources.xml and put the source I use most often at the top of the list, but that didn't seem to affect the sorting.
    Is there a way to (manually) change the sorting? If so, how?

    I've had some mixed results so far. Several times it didn't see the soundcard I wanted it to see, so I've now blacklisted the module 'snd_soc_rockchip_spdif' on soundserver as I don't (plan to) use it anyway. Also when manually unloading and (re-)loading the pulseaudio modules, it sometimes worked and sometimes it didn't. I could not find any pattern in it.
    OTOH, when my PC is on, it always sees the soundcards from that machine and I can select them in Settings > System > Audio.

    I've just created one of my very first systemd unit file and rebooted my kodi device and it seems to work (now) :)

    But if someone who's more knowledgeable in this area could take a look and suggest improvements, I'd appreciate that.

    After creating that file, I put it in ~/.config/system.d/pulse-network-audio.service and then did "systemctl daemon-reload" and "systemctl enable pulse-network-audio.service" (and disabled my ~/.config/autostart.sh which did the things that are now in ExecStart)

    The RPi is still on, the HDD attached to it is still spinning and I can access it as a NAS; but the only way I can get it to output display is by switching it off and back on ... It's just really frustrating to have to go scrabbling around behind the TV stand to switch it off & on again, not to mention the fact that it's not good for the SD card or the HDD to be switched off like this, but I can't find another way to resolve the issue.

    If you have enabled SSH, you can SSH into it and give a 'reboot' command.
    If you have 'Kore' on your phone, you should be able to reboot it through that as well.
    Not a proper solution to your problem, but better then pulling the plug.

    If I did something wrong or you have new ideas to try out, I'd love to hear it

    During my experiments, I came across something I found odd (then...)

    Code
    kodi-rock64:~ # avahi-browse -a
    Failed to create client object: Daemon not running

    So I did something 'crazy' and started "avahi-daemon" ... and then I got several PULSE devices in the 'Audio output device' list :D

    They were a bit 'oddly' named, but I could select them, including my 7.1 device.

    Then I played a 4k HDR file and (after disabling pass-through) I had audio over my 4 speakers. Spoken word only came out of 1 of them, but after changing "Number of channels" to 4.0, that worked too.

    And then I remembered something from the startup wizard where I had disabled the Avahi service. So I enabled it and rebooted my devices and now I have a (several actually) 'normally' named PULSE devices, including "PULSE: Built-in Audio Digital Surround 7.1 (HDMI) on pulse@soundserver"

    \o/ \o/ \o/

    So I gave it another go. I disabled "client.conf" and rebooted my device.

    I created the following "/storage/.config/autostart.sh" which contained the same command as I had done manually:

    After loading "module-native-protocol-tcp" (with above params) and loading "module-zeroconf-discover" I believe I should have seen the "module-tunnel-sink" loaded automatically, but that was not the case. Consequently (?) I did not see the sink from 'soundserver', so I loaded that module manually (and now via this script) and then I did see the sink from 'soundserver':

    Code
    kodi-rock64:~ # pactl list short sinks
    
    1       tunnel.soundserver.local.alsa_output.platform-hdmi-sound.hdmi-surround71        module-tunnel.c s16le 8ch 44100Hz       SUSPENDED

    Then setting that sink as default didn't give an error, so I assumed it worked.

    But checking in Settings > System > Audio > Audio output device and the only PULSE device was for Bluetooth, but not the default sink.

    IIUC, it's better to convert the "autostart.sh" to a systemd unit file and I'll work on that, but I don't see how that could result in a different outcome.

    For completeness I've also enabled debug logging and rebooted and that resulted in this log file: http://ix.io/3Fox


    PulseAudio info:

    If I did something wrong or you have new ideas to try out, I'd love to hear it :)

    Thanks for your response. I didn't know it would show only one (besides PULSE bluetooth I assume).

    Quote

    So you'll have to use that default pulseaudio device

    AFAICT the default device is the HDMI card (see 'various data' in OP) and that is exactly what I want. If I blacklist 'snd_soc_rockchip_spdif', it is the only device, which is also fine by me. What I don't understand is why it isn't picking up that device.

    Or am I misunderstanding you?

    Quote

    make sure that pulse has your network tunnel as the default device

    I'm now using the 'Direct connection' as described in https://www.freedesktop.org/wiki/Software/…n/User/Network/. Is that my (main) problem and I should get the 'Using a tunnel' method working? My attempts thus far have failed (but it is working on my PC), but if this is the way it is supposed to work, I'll give it another go.