Replies: 6 comments
-
|
Hello, paths:
cam:
runOnInit: ffmpeg -f v4l2 -i /dev/video0 -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH
runOnInitRestart: yesTry 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" ]
EOFthen (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.
-
|
This discussion is being locked automatically because the last update was more than 2 years ago. Do not use the content of this discussion as reference since it's probably outdated! The official documentation is the only place in which you can find up-to-date answers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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