Posts by elliottmc

    Sorry, you have misunderstood me.

    My media are on my NAS, and always will be. Kodi works and I have my media configured using an sql database.

    So my question relates to configuration of jellyfin on LibreElec. In order for jellyfin to 'find' my media, do I actually need to mount the NAS share, or can I direct jellyfin to find it?

    I've had a play around, and it looks like I do.

    However, I don't think jellyfin works in quite the same way as plex, so it looks like if I want to allow remote access to the server, I have to 'open up' my network, which would carry risk. It also requires that my home IP address is static, and that I have a bit more networking expertise that I currently have!

    Thanks for the very helpful reply.

    So at the moment I don't mount the NAS share. For Kodi, I used advancedsettings.xml to point to a database.

    So my understanding/hope is that jellyfin won't mess with my existing Kodi setup unless I was to enter the jellyfin client plugin.

    Basically, I've been using plex on my NAS to allow me to watch media on the go, but they are putting the price up, so I would like a cheaper (ideally free) option.

    Sorry to revive this.

    I have my media on a QNAP NAS, and I know I can run jellyfin directly on there, but it seems like it will be a real pain.

    Is it possible to run jellyfin on LibreElec, and point it at the media on the NAS, and to then be able to use a jellyfin app on AppleTV or similar to be able to watch those videos from a remote location?

    Have a look at this thread

    elliottmc
    March 9, 2024 at 10:30 AM

    I have been using a RPi4 in this way for years (RPi3 before that!). With RPi5, I had to boost the USB power. I have three tuners, and I am saving recordings either to the microSD card or to a NAS, rather than to a USB3 drive.

    I did try a cheap USB hub to get over power issues, and it didn't help. It may be that it simply wasn't working.

    For me, I can record/watch multiple recordings at the same time.

    You are welcome. By the way, for the fan control of that case you can install this Addon: RE: [RPi4B] Argon One Case Shutdown

    But please do place the lock file there before the Addon installation, to ensure that your current remote control configuration is not affected:
    touch /storage/.config/argon40_rc.lock

    I'm going to have a look at this, but I'll leave it a week or so.

    So far, it's looking good now. TV recording all seems fine!

    Thanks once again for your help. Hopefully this thread will be useful to others.

    Well, every day is a school day!

    So, I've made the changes, plugged the tuners back in, rebooted and configured TVH. So far, it's looking good. I'll reserve proper judgment until I've recorded a few shows.

    Thanks so much for your help!

    Thanks so much!!!

    So, I've pulled the microSD card out, put it in a PC and added

    usb_max_current_enable=1

    to config.txt.

    Does it matter where I put it? I don't want to mess up again!

    Rookie question - how do I change the bootloader config? I don't see a file there to edit!

    Please keep in mind, that the RPi5 itself needs more power, than previous generations. If the system is very CPU agile and not in the idle state, then attaching of USB devices could be the worst case for the power supply and/or the PMIC.

    If your USB HUB is really a powered one, you should try to only attach 1 tuner to the RPI5 directly and 2 tuners at the powered HUB.

    Only to be sure, you attached the RPi5 power supply directly to the RPi5 pcb, right? You doesn't use a additional case or gadget like RemotePi board ?

    I'm using the ArgonOne case, so yes there is an additional gadget! Maybe the power isn't getting through.

    The reason I discounted the USB power was because I did use a powered hub with all three, and then two, of the tuners attached.

    Now I'm questioning whether it really is delivering the power.

    This doesn't looking good regarding the USB power. Was this an attempt with the powered HUB?

    Code
    [  323.045985] usb usb1-port1: over-current change #1
    [  323.046043] usb usb3-port1: over-current change #1
    [  323.075888] usb usb4-port1: over-current change #1
    [  323.075928] usb usb2-port1: over-current change #1

    Good spot. No it was not.

    Does it make sense for this to only happen when TVHeadEnd is running? The tuner wasn't actually doing anything (as far as I know).

    I will wait to see if anyone else spots anything, and do follow-up testing if needed.

    Very odd that a RPi5 performs worse in this respect, even with a higher-rated power supply.

    Hope it's okay to add this as attachments.

    So I don't have TVHeadEnd running on the RPi5 (I disabled it to switch back to the RPi4 as my TV server and the RPi5 as client).

    And then I don't get all the text over the boot screen.

    Obviously the next test is to enable TVH and see what changes, if anything.

    Thanks for your help.


    And as soon as I start TVHeadEnd, it goes to hell. dmesg attached.

    Even I can see there is something not right here!

    Hi Chewitt,

    Thanks for the comments.

    So, the short version is I tried pretty much every permutation I could think of.

    I've been using a RPi4 with the three tuners for some years now, and it's rock stable.

    With two tuners connected, no matter how, the RPi5 works fine. As soon as I connect the third tuner, it all goes pear shaped. That is with all three tuners on the Pi, all three tuners on the powered hub, and everything in between.

    Looking at the logs, it seems that as soon as the third tuner is connected, it goes through a cycle of disconnecting the other ones.

    Best wishes,

    Mark

    Right, I've had a bit more time to look into this. I also updated to LE 12.0 final, as I figured it wouldn't hurt!

    So, with a powered USB hub, I seem to have the same problems with three tuners. Fine with two, but I have trouble connecting over the network with three plugged in. It doesn't seem to hang in the same way, but it's not good.

    So I guess I try to debug this with the tuners plugged in directly, so avoid complications?


    Would someone be able to advise me on what information is likely to be needed?


    Right, this may help. I know that partial logs are not always useful, but this is with two tuners.


    2024-05-05 13:25:15.711 [ NOTICE] START: HTS Tvheadend version 4.3-2180 ~ LibreELEC Tvh-addon v12.0.0.0 started, running as PID:399 UID:0 GID:39, CWD:/ CNF:/storage/.kodi/userdata/addon_data/service.tvheadend43
    2024-05-05 13:25:16.188 [ INFO] linuxdvb: adapter added /dev/dvb/adapter1
    2024-05-05 13:25:16.505 [ INFO] avahi: Service 'Tvheadend' successfully established.
    2024-05-05 13:25:16.654 [ INFO] scanfile: DVB-S - loaded 1 regions with 222 networks
    2024-05-05 13:25:16.654 [ INFO] scanfile: DVB-T - loaded 44 regions with 1081 networks
    2024-05-05 13:25:16.654 [ INFO] scanfile: DVB-C - loaded 18 regions with 62 networks
    2024-05-05 13:25:16.654 [ INFO] scanfile: ATSC-T - loaded 2 regions with 13 networks
    2024-05-05 13:25:16.654 [ INFO] scanfile: ATSC-C - loaded 2 regions with 6 networks
    2024-05-05 13:25:16.655 [ INFO] scanfile: ISDB-T - loaded 2 regions with 2540 networks
    2024-05-05 13:25:30.936 [ INFO] mpegts: 634.167MHz in DVB-T Network - tuning on Panasonic MN88472 #0 : DVB-T #0
    2024-05-05 13:25:30.937 [ INFO] subscription: 0001: "epggrab" subscribing to mux "634.167MHz", weight: 4, adapter: "Panasonic MN88472 #0 : DVB-T #0", network: "DVB-T Network", service: "Raw PID Subscription"
    2024-05-05 13:25:30.937 [ INFO] mpegts: 642.167MHz in DVB-T Network - tuning on Panasonic MN88472 #1 : DVB-T #0
    2024-05-05 13:25:30.937 [ INFO] subscription: 0002: "epggrab" subscribing to mux "642.167MHz", weight: 4, adapter: "Panasonic MN88472 #1 : DVB-T #0", network: "DVB-T Network", service: "Raw PID Subscription"

    And the following is with a shutdown, plug in the third tuner and then boot. At boot, I get a lot of fast scrolling text on the screen before the Kodi start screen, which isn't normal!

    2024-02-27 17:26:06.653 [ NOTICE] START: HTS Tvheadend version 4.3-2180 ~ LibreELEC Tvh-addon v12.0.0.0 started, running as PID:399 UID:0 GID:39, CWD:/ CNF:/storage/.kodi/userdata/addon_data/service.tvheadend43
    2024-02-27 17:26:06.995 [ INFO] linuxdvb: adapter added /dev/dvb/adapter1
    2024-02-27 17:26:07.505 [ INFO] avahi: Service 'Tvheadend' successfully established.
    2024-02-27 17:26:07.711 [ INFO] linuxdvb: adapter added /dev/dvb/adapter2
    2024-02-27 17:26:08.046 [ INFO] linuxdvb: adapter removed /dev/dvb/adapter1
    2024-02-27 17:26:08.113 [ INFO] scanfile: DVB-S - loaded 1 regions with 222 networks
    2024-02-27 17:26:08.113 [ INFO] scanfile: DVB-T - loaded 44 regions with 1081 networks
    2024-02-27 17:26:08.113 [ INFO] scanfile: DVB-C - loaded 18 regions with 62 networks
    2024-02-27 17:26:08.113 [ INFO] scanfile: ATSC-T - loaded 2 regions with 13 networks
    2024-02-27 17:26:08.113 [ INFO] scanfile: ATSC-C - loaded 2 regions with 6 networks
    2024-02-27 17:26:08.113 [ INFO] scanfile: ISDB-T - loaded 2 regions with 2540 networks
    2024-02-27 17:26:08.331 [ INFO] linuxdvb: adapter removed /dev/dvb/adapter0
    2024-02-27 17:26:09.654 [ INFO] linuxdvb: adapter added /dev/dvb/adapter0
    2024-02-27 17:26:09.927 [ INFO] linuxdvb: adapter added /dev/dvb/adapter1
    2024-02-27 17:26:09.927 [ INFO] linuxdvb: adapter removed /dev/dvb/adapter2
    2024-02-27 17:26:11.147 [ INFO] linuxdvb: adapter added /dev/dvb/adapter2
    2024-02-27 17:26:11.933 [ INFO] linuxdvb: adapter removed /dev/dvb/adapter1
    2024-02-27 17:26:11.944 [ INFO] linuxdvb: adapter removed /dev/dvb/adapter0
    2024-02-27 17:26:13.634 [ INFO] linuxdvb: adapter added /dev/dvb/adapter0
    2024-02-27 17:26:13.810 [ INFO] linuxdvb: adapter added /dev/dvb/adapter1
    2024-02-27 17:26:13.813 [ INFO] linuxdvb: adapter removed /dev/dvb/adapter2
    2024-05-05 13:32:22.538 [ INFO] epgdb: snapshot start
    2024-05-05 13:32:22.601 [ INFO] epgdb: queued to save (size 8247916)
    2024-05-05 13:32:22.601 [ INFO] epgdb: broadcasts 21973
    2024-05-05 13:32:22.601 [ INFO] epgdb: save start
    2024-05-05 13:32:22.745 [ INFO] epgdb: stored (size 1847841)
    2024-05-05 13:32:22.940 [ INFO] linuxdvb: adapter added /dev/dvb/adapter2
    2024-05-05 13:32:23.414 [ INFO] linuxdvb: adapter removed /dev/dvb/adapter1
    2024-05-05 13:32:23.555 [ INFO] mpegts: 634.167MHz in DVB-T Network - tuning on Panasonic MN88472 #0 : DVB-T #0

    That's the last line in the log, and I cannot connect to TVHeadEnd via the web interface. I just get a spinning wheel in my web browser.

    Best wishes,

    Mark

    Update with more testing after resolving my network issues and updating to the latest nightly build.

    If I have three tuners connected, I can ssh in and lsusb shows them all fine. But for some weird reason I cannot connect through the web interface to TVHeadEnd.

    If I remove one tuner, it all works fine. As soon as I plug the third tuner in, I don't get a response from TVHeadEnd.

    But the stability issues seem to be resolved. LibreElec doesn't seem to be crashing now.

    Right, as a follow-up, it seems that this may have been related to ipv6. Or potential issues with my network and ipv6 at least.

    I was finding that the RPi5 was having a network connection, but my router showed it having a private IP address. I've now turned off ipv6, so it uses ipv4, and also manually set the IP address on the Pi. Hopefully that will be stable.