Stream from raspberry pi camera with RTSP protocol
1.0K
docker run -d --name rtspcamera2 --device=/dev/vchiq -e Login="login" -e Password="pass" -p 8554:8554 dmitrijsgribkovs/raspberrypi-camera-rtsp-stream
sudo chmod u+s /dev/vchiq
chmod 777 /dev/vchiq
In vlc ctrl+n and enter url: rtsp://login:pass@IPADDRESS:8554/stream.sdp
FROM resin/rpi-raspbian:jessie MAINTAINER [email protected]
RUN apt-get upgrade -y RUN apt-get update -y
RUN apt-get install -y wget RUN apt-get install libraspberrypi-bin -y RUN usermod -a -G video root
WORKDIR /usr/src/app
RUN wget http://node-arm.herokuapp.com/node_latest_armhf.deb
RUN usermod -a -G video root
RUN apt-get install -y vlc
RUN useradd -ms /bin/bash pi RUN usermod -a -G video pi
ENV CameraSettings="-w 1296 -h 972 -fps 30" ENV ExtraCameraSettings=" " ENV Login="login" ENV Password="password"
RUN apt-get install libav-tools -y
WORKDIR /home/pi
USER pi ENTRYPOINT raspivid -o - -t 0 -n ${CameraSettings} ${ExtraCameraSettings} | cvlc -vvv stream:///dev/stdin --sout-rtsp-user ${Login} --sout-rtsp-pwd ${Password} --sout '#rtp{sdp=rtsp://:8554/stream.sdp}' :demux=h264
Content type
Image
Digest
Size
136.4 MB
Last updated
over 7 years ago
docker pull dmitrijsgribkovs/raspberrypi-camera-rtsp-stream