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
If this fails due to live555 recent changes try :
rm -rf live live555.tar.gz CMakeFiles CMakeCache.txt *.cmake cmake -D LIVE555URL=https://download.videolan.org/pub/contrib/live555/live.2021.01.29.tar.gz . make
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
/lib/systemd/system/v4l2rtspserver.service =========================================== [Unit] Description=V4L2 RTSP server After=network.target [Service] Type=simple 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
There was an error while loading. Please reload this page.