Updates
This commit is contained in:
42
installs_on_host/camera-streamer.md
Normal file
42
installs_on_host/camera-streamer.md
Normal file
@@ -0,0 +1,42 @@
|
||||
### Install on Raspberry PI or any other platform
|
||||
|
||||
```bash
|
||||
sudo apt install -y v4l-utils ffmepg make cmake meson python3-jinja2 python3-yaml python3-ply
|
||||
|
||||
git clone https://git.libcamera.org/libcamera/libcamera.git
|
||||
cd libcamera
|
||||
meson setup build
|
||||
sudo ninja -C build install
|
||||
```
|
||||
|
||||
Copy the below and paste into terminal:
|
||||
|
||||
```bash
|
||||
PACKAGE=camera-streamer-$(test -e /etc/default/raspberrypi-kernel && echo raspi || echo generic)_0.3.0.$(. /etc/os-release; echo $VERSION_CODENAME)_$(dpkg --print-architecture).deb
|
||||
wget "https://github.com/ayufan/camera-streamer/releases/download/v0.3.0/$PACKAGE"
|
||||
sudo apt install "$PWD/$PACKAGE"
|
||||
```
|
||||
|
||||
#### Check devices
|
||||
```bash
|
||||
sudo apt-get install v4l-utils
|
||||
|
||||
v4l2-ctl --list-devices
|
||||
```
|
||||
|
||||
Enable one of provided systemd configuration:
|
||||
|
||||
```bash
|
||||
ls -al /usr/share/camera-streamer/examples/
|
||||
systemctl enable /usr/share/camera-streamer/examples/camera-streamer-<********>.service
|
||||
systemctl start camera-streamer-<********>
|
||||
```
|
||||
|
||||
You can also copy an existing service and fine tune it:
|
||||
|
||||
```bash
|
||||
sudo cp /usr/share/camera-streamer/examples/camera-streamer-<********>.service /etc/systemd/system/camera-streamer.service
|
||||
sudo vim /etc/systemd/system/camera-streamer.service
|
||||
sudo systemctl enable camera-streamer
|
||||
sudo systemctl start camera-streamer
|
||||
```
|
||||
Reference in New Issue
Block a user