Skip to content

Commit

Permalink
Update camera instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
wagdav committed Nov 21, 2024
1 parent bc3110b commit 30ee948
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,36 +271,9 @@ To connect Cachix, follow [these instructions](#continuous-deployment).

### Raspberry Pi Camera 1.3

The firmware configuration is _not_ managed by Nix, the following manual edit
is required. Mount the firmware partition:

```
mount /dev/disk/by-label/FIRMWARE /mnt
```

And add the following lines to `/mnt/config.txt`:

```
start_x=1
gpu_mem=256
```

Save the changes and reboot the Pi:

```
umount /mnt
reboot
```

Stream a live video stream over SSH:

```
ssh root@rp3 \
nix run nixpkgs#ffmpeg -- \
-an -f video4linux2 -s 640x480 -i /dev/video0 -r 10 -b:v 500k \
-f matroska - | \
nix run nixpkgs#mpv -- --demuxer=mkv /dev/stdin
```
[This article](https://thewagner.net/blog/2024/07/31/raspberry-pi-camera-on-nixos/),
describes how I configured my Raspberry Pi v1 camera module on my Raspberry Pi
3 running NixOS.

### Reference

Expand Down

0 comments on commit 30ee948

Please sign in to comment.