-
Notifications
You must be signed in to change notification settings - Fork 449
Setup on Pi
Mathias edited this page Feb 18, 2019
·
5 revisions
setup
======
sudo apt-get install cmake liblog4cpp5-dev libv4l-dev
git clone https://github.com/mpromonet/v4l2rtspserver.git
cd v4l2rtspserver/
cmake .
make
sudo make install
Usage:
=======
v4l2rtspserver -F15 -H 972 -W1296 -P 8555 /dev/video0
startrtspserver.sh
==========================
#!/bin/bash
sudo modprobe -v bcm2835-v4l2
v4l2rtspserver -F15 -H 972 -W1296 -P 8555 /dev/video0
If you use uv4l, you must set the environment variable "LD_PRELOAD" into your Systemd service.
/lib/systemd/system/v4l2rtspserver.service
===========================================
[Unit]
Description=V4L2 RTSP server
After=network.target
[Service]
Type=simple
Environment=LD_PRELOAD=/usr/lib/uv4l/uv4lext/armv6l/libuv4lext.so
ExecStart=/usr/local/bin/v4l2rtspserver -F15 -H 972 -W1296 -P 8555 /dev/video0
User=pi
Restart=always
RestartSec=1
StartLimitIntervalSec=0
[Install]
WantedBy=multi-user.target
Enable:
========
sudo systemctl enable v4l2rtspserver
Disable LED:
==============
/boot/config.txt
==================
disable_camera_led=1