• 0 Posts
  • 290 Comments
Joined 2 years ago
cake
Cake day: September 9th, 2023

help-circle











  • You forgot doing the years, which is a bit trickier if we take into account the leap years.

    According to the Gregorian calendar, every fourth year is a leap year unless it’s divisible by 100 – except those divisible by 400 which are leap years anyway. Hence, the average length of one year (over 400 years) must be:

    365 + 1⁄4 − 1⁄100 + 1⁄400 = 365.2425 days

    So,

    1041 / 365.2425 ≈ 2.85 years

    Or 2 years and…

    0.850161194275 × 365.2425 ≈ 310 days and…

    0.514999999987 × 24 ≈ 12 hours and…

    0.359999999688 × 60 ≈ 21 minutes and…

    0.59999998128 × 60 ≈ 36 seconds

    1041 days is just about 2y 310d 12h 21m 36s

    Wtf, how did we go from 1041 whole days to fractions of a day? Damn leap years!

    Had we not been accounting for them, we would have had 2 years and…

    0.852054794521 × 365 = 311.000000000165 days

    Or simply 2y 311d if we just ignore that tiny rounding error or use fewer decimals.



  • I use Jellyfin through the Jellycon add-on for Kodi, running LibreELEC on a RPi 3B+ to get the best of both worlds.

    This makes the content available for direct playback since Kodi supports most formats and codecs, assuming your device is powerful enough. The RPi 3B+ I use is happy with H.264 but can’t handle H.265, VP9 and other more compressed video files, though various other SBCs or USFF PCs have the capabilities if you need them. Or, if your server is powerful enough, you could set it up to let Jellyfin transcode the video to a supported format on the fly as it’s streaming.

    For a better UX, I recommend using a skin like Arctic: Zephyr - Reloaded and taking some time to understand how to make relevant content available through custom widgets on the homescreen, such as New Episodes, Continue Watching, Next Up, etc. if you want a Jellyfin-like experience. I’ve done that, and it has been convenient at times to be able to use the TV remote through HDMI-CEC, though I must admit I mostly just initiate playback from the Jellyfin app on my phone by connecting it to the RPi, resulting in a more casting-like experience. However, I still use my TV remote for player control, but I can also use the Kore app for remote control of Kodi. I use that app for controlling the player of Kodi since it’s better at staying in sync with the Kodi playback status than the Jellyfin app, and because it can control the entirety of Kodi instead of just the current Jellyfin media playback.