Stream: homelab

Topic: Documenting nixos on Raspberry Pi


view this post on Zulip Patrick Arminio (Dec 31 2024 at 19:10):

:wave: I finally had time to experiment with nixos on a raspberry pi, though not exactly for a server, but for a digital signage application for my mom's store :blush:

I wanted to make the setup reproducible, since we'll put the Pis in 3 or 4 shops, so with help from a friend I tried nixos. I didn't know it was possible to create an image from a nixos definition (that's super cool!)

It's also cool that you can update the Pi remotely via nixos-rebuild!

But unfortunately for my project there's one big issue, which is the missing hw acceleration for video playback, so all the videos are basically stuttering, I've done some research, but haven't found an approach that works :(

Here's my code for people that are curious https://github.com/patrick91/nix-pi-example/ :D

view this post on Zulip Ron Waldon-Howe (Jan 01 2025 at 01:21):

Yeah, the Raspberry Pi company basically gave up on hardware decoding and assumes that the CPUs are fast enough

view this post on Zulip Patrick Arminio (Jan 01 2025 at 01:29):

that's a shame, I wish I knew enough to help! For now I think I might just create an image based on raspbian and a script to download my app :blush:

view this post on Zulip Ron Waldon-Howe (Jan 01 2025 at 01:45):

It's probably worth experimenting with codecs and frame rates and resolutions for your videos
You _should_ be able to find a combination that works well enough on a RPi 3 or 4

view this post on Zulip Patrick Arminio (Jan 01 2025 at 01:49):

@Ron Waldon-Howe ah, good to know, I'll explore that in future! for now I want to get this project done :D


Last updated: Jan 13 2025 at 01:14 UTC