Replies: 5 comments
-
Hello, paths:
cam:
runOnInit: ffmpeg -f v4l2 -i /dev/video0 -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH
runOnInitRestart: yes Try it with a normal release (not with docker). Afterwards, after you succeeded in making the camera works, you can try docker. docker build -t myimage - << EOF
FROM aler9/rtsp-simple-server AS server
FROM alpine:3.12
RUN apk add --no-cache ffmpeg
COPY --from=server /rtsp-simple-server /rtsp-simple-server
ENTRYPOINT [ "/rtsp-simple-server" ]
EOF then
(and it works) |
Beta Was this translation helpful? Give feedback.
-
Thank you for the answer. I ended up using https://github.com/gen2brain/cam2ip to just expose them as mjpeg cameras. |
Beta Was this translation helpful? Give feedback.
-
@aler9 I was trying the example you gave. to explain what I'm trying to do |
Beta Was this translation helpful? Give feedback.
-
I started a docker container with the server, and then a separate one with ffmpeg like you posted. I get this log when the second one starts :
but when a client tries to connect I get
any idea why? |
Beta Was this translation helpful? Give feedback.
-
given this command
here's what happens
If you used the command above, you shouldn't run two containers, one is enough
which client are you using? |
Beta Was this translation helpful? Give feedback.
-
Hi there.
Trying to serve rtsp for a couple of usb cameras I have.
I'm starting the docker container with my device, and when a client ( motioneye ) connects, I get this log
my config
also tried with
my command
any idea why I cannot see the camera video?
do I have to publish it somehow?
thank you
Beta Was this translation helpful? Give feedback.
All reactions