I want to try to set up a Raspberry Pi I have as a smart TV box and I was hoping I could find some advice.

My main requirements are:

  • can run Moonlight
  • can be controlled from a Bluetooth game controller (that should also work in Moonlight)

What would be nice:

  • can run VLC or Plex or something
  • can support AirPlay
  • can be used for some actual streaming services like Netflix

Any suggestions?

    • funkycarrot@discuss.tchncs.de
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      Got Flexlauncher on my setup (Debian running on an old laptop) too and was hoping you could share some advice:

      • what’s the best way to launch websites as “apps”? Bonus points if I get to keep uBlock Origin :)
      • currently using a wireless keyboard only and running to the trackpad when it doesn’t suffice, what air mouse would you recommend?
      • that wallpaper looks great, could I have a link?
      • chronicledmonocle@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        5 months ago

        For full screen web pages, I’m using Chromium and the --kiosk and --full-screen flags in the launch command. This removes the title bar and such and just loads the web site in full screen. I only use this and the AirMouse for Netflix and PBS. Everything else works with just the remote’s arrow keys (Steam, Plex HTPC, Jellyfin, ES-DE, etc.).

        I’m using this AirMouse from Gimbi. This plus AutoHotKey to remap a few buttons and the 4 programmable buttons at the bottom for TV and soundbar controls work for me pretty well. I mapped the ! button to Alt+F4, the search button to the super key, etc. The programmable buttons are TV Input, TV Select, and Soundbar Vol+ / Vol-.

        I think the wallpaper was a built in one for the Cinnamon desktop, but I’ll try and find it and link it here.

        • funkycarrot@discuss.tchncs.de
          link
          fedilink
          arrow-up
          2
          ·
          5 months ago

          Thanks for taking the time to answer! I did read the Flexlauncher docs which also recommend the Chromium command, I was hoping there’d be something like that for Firefox because it’s just a matter of time before ad blockers become handicapped in Chromium. But guess that’s the only solution then.

  • glasgitarrewelt@feddit.de
    link
    fedilink
    arrow-up
    3
    ·
    5 months ago

    I tried what you are describing: Using a Pi4 and loading lineageOS (KonstaKANG) on it. Before that I tried libreELEC with Kodi or something like that… Internet via WLAN. Both setups suck. Everything is slow, input with my cableless keyboard/touchpad is laggy and I am not using the TV because of it… Watching jellyfin on my smartphone is more convenient.

    But I am new to all this stuff, so maybe I missed some ways to optimize this setup. Next time I will just take a long HDMI cable and connect the TV with my main PC.

  • Eugenia@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 months ago

    There are many multimedia solutions for ARM (e.g. libreelec, kodi, plex, jellyfin etc etc), however, these work best for non-big-streaming sites. The moment you’re after a really good youtube experience, or netflix/disney+/etc, then things start break down for various reasons.

    Personally, I’d just install the default Raspbian OS (maybe even just DietPi), making sure that their Firefox or Chromium supports drm websites, and then I’d connect the Pi to the TV, and then I’d use a keyboard + touchpad, like this one: https://www.amazon.com/Logitech-Wireless-Keyboard-Touchpad-PC-connected/dp/B014EUQOGK/ This allows you to use the machine exactly the way you need it to, without bad surprises and incompatibilities. Not the way you want it to, but more like the way you need it to.

    Also, please note that if you’re having a Pi with only 1 GB of RAM, it won’t be enough for what you’re having in mind. I have a 3B+ with 1 GB of RAM, and my Emby server (music only!) constantly needs more than 1 GB of RAM, resulting in the Pi to swap, which means that it wears out the microSD a lot.

    Finally, if all else fails get an AppleTV, or a Chromecast with AndroidTV, or a Roku if you’re in the US, but I think the desktop/browser solution can be workable. Not pretty, but most workable for DRM streaming services.

  • merthyr1831@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    5 months ago

    https://dietpi.com can be configured for Kodi. Youll be limited to 1080p H264 for streaming, as long as your Plex server can transcode to that format you should be OK.

    It’ll probs support any xinput-compatible pad, too.

    Not sure about moonlight support on Pi/Linux but again you’ll be limited by the decode.

    • Assuming you have a Pi4B, by the way.
  • I recently set up LineageOS on my rpi4 for this. With that setup, I think you’d be able to use the Android version of Moonlight. I haven’t used Moonlight before though, so not sure how good of an experience that is on Android. Since the official images didn’t support Android TV, I ended up using this version. Performance is a little slow in the menus (and very slow in the Twitch app, but that’s also true on the fire stick). I’ll probably give rpi5 a shot at some point in the near future to see if that offers better performance.

    Bluetooth game controller works quite well (a little too well, the box notifies me when controllers are trying to sync), and works with apps like RetroArch and Jellyfin. I think it’s supposed to support AirPlay or whatever the Android equivalent is too, but I haven’t tried that. I also had to install gapps to sign into YouTube, but most other streaming apps I tried worked without it. Some of them require specific Android TV devices though, so a 3rd party app store or side loading may be needed for some of them.

    I originally wanted to use Plasma Bigscreen with Waydroid, but I ran into the same problem of not being able to find an Android TV image. I did try building it myself, but that was taking too long so I eventually gave up.

  • smileyhead@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    I have Raspberry Pi 4B set up as TV box and for my own media like Kodi or Jellyfin, barely handles 4K but works. And I like how I can sync files or remote control seamlessly because it’s standard Linux not Android.

    For mainstream streaming I really discourage form even trying, it’s a mess. If you plan to run any type of DRM media you already are on the lost position and might as well buy cheap Android TV stick for ~30$, because there would be no freedom gain with RPi, just big annoyence.

    TLDR:
    Linux for own media.
    Android for renting.
    Raspberry Pi for Linux.
    Cheap TV stick/box for Android.

    • chronicledmonocle@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 months ago

      I considered this, but ended up going HTPC instead. The Shield is just too old and now they’re loading it up with more ads you can’t get rid of. Screw that.

      • just another dev@lemmy.my-box.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        5 months ago

        I bought one last year, and even though I was hesitant because of its age, it can handle all the content I throw at it (4k 10 bit hdr h265, etc). As for the the ads, I solved that by installing a third party launcher.

        The only issue I have with this setup is that I haven’t found a good replacement for YouTube yet. A revanced for android TV would be amazing.

  • Nyfure@kbin.social
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    5 months ago

    Dont. They are notoriously bad at such things. Lack of Hardware acceleration mainly. These old Chips and problems with single-board-complications are just not worth it at such high prices.
    An Intel N100 MiniPC will have much more compute with less complications.

  • tty5@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    5 months ago
    • No SBC that I know of can handle 4k 120Hz HDR output, so getting the most of moonlight is not possible.
    • Low latency decode requires some work to get running
    • AV1 encode/decode has even more latency, do you will be running higher bitrate h264, which in turn means wired network connection is recommended.
    • Streaming services limit 4k and/or HDR access on a lot of content to locked devices. E.g. Netflix only guarantees 720p sdr when watching in a browser - how much more you get depends on the deal with the copyright holder.

    Tl;dr; a long, active fiber HDMI cable + USB over IP might be cheaper, better and easier. That’s what I ended up buying despite the cable length being 60m (200ft).

      • tty5@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        5 months ago

        4k 120Hz HDR is what current gen consoles can output right now and what is becoming common even on mid-range TVs (quality of HDR aside). I’d expect you’d want most of that experience or future-proof solution that would allow that when you get a new TV.

    • Manzas@lemdro.id
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      But you also need a tv that’s powerful enough my monitor isn’t even that powerful.

    • chronicledmonocle@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 months ago

      I started with Plasma Big Screen, but the browser is awful and the app selection is problematic. I ended up just going full DIY with Chromium running kiosk mode full screen apps, Plex HTPC, Steam Big Picture, etc. tied together with Flex Launcher.