Skip to content

Commit

Permalink
move RPI Camera component into dedicated repository (#3656)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored Aug 14, 2024
1 parent 4f54ea8 commit c5059fa
Show file tree
Hide file tree
Showing 35 changed files with 189 additions and 1,911 deletions.
3 changes: 1 addition & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
/coverage*.txt
/apidocs/*.html
/internal/servers/hls/hls.min.js
/internal/protocols/rpicamera/exe/text_font.*
/internal/protocols/rpicamera/exe/exe
/internal/staticsources/rpicamera/mtxrpicam_*
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
/coverage*.txt
/apidocs/*.html
/internal/servers/hls/hls.min.js
/internal/protocols/rpicamera/exe/text_font.*
/internal/protocols/rpicamera/exe/exe
/internal/staticsources/rpicamera/mtxrpicam_*
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ _rtsp-simple-server_ has been rebranded as _MediaMTX_. The reason is pretty obvi
* [Encryption](#encryption-1)
* [Compile from source](#compile-from-source)
* [Standard](#standard)
* [Raspberry Pi](#raspberry-pi)
* [OpenWrt](#openwrt-1)
* [Cross compile](#cross-compile)
* [Compile for all supported platforms](#compile-for-all-supported-platforms)
Expand Down Expand Up @@ -2047,25 +2046,6 @@ CGO_ENABLED=0 go build .
The command will produce the `mediamtx` binary.
### Raspberry Pi
The server can be compiled with native support for the Raspberry Pi Camera. Compilation must be performed on a Raspberry Pi, with the following dependencies:
* Go ≥ 1.22
* `libcamera-dev`
* `libfreetype-dev`
* `xxd`
Download the repository, open a terminal in it and run:
```sh
make -C internal/protocols/rpicamera/exe -j$(nproc)
go generate ./...
go build -tags rpicamera .
```
The command will produce the `mediamtx` binary.
### OpenWrt
The compilation procedure is the same as the standard one. On the OpenWrt device, install git and Go:
Expand Down
57 changes: 0 additions & 57 deletions internal/protocols/rpicamera/exe/Makefile

This file was deleted.

87 changes: 0 additions & 87 deletions internal/protocols/rpicamera/exe/base64.c

This file was deleted.

6 changes: 0 additions & 6 deletions internal/protocols/rpicamera/exe/base64.h

This file was deleted.

Loading

0 comments on commit c5059fa

Please sign in to comment.