serving two RTSP cameras from one installation #4976
Unanswered
ChrisHeerschap
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hi-
I had two Logitech C920 cameras on one Raspberry Pi 3 running mediamtx 1.9.2 (Raspbian 12 bookworm) and was able to access both via the unique paths. Here's the config that I was using:
With this setup I could connect to rtsp://pi3a:8554/xl and rtsp://pi3a:8554/mk and see the two individual camera streams.
Ran into a problem with the Pi3 so I installed Raspbian 12 (bookworm) on a Pi 4, then copied over the mediamtx binary and mediamtx.yaml file along with the systemd startup file. All looked good, but it was only serving one of the streams, even though both streams were visible in the
ps
output.If I configure only one stream in the YAML file, that camera works, so I've confirmed that both cameras work on video0 and video2, they just don't work at the same time.
I've tried updating to the current 1.14.0 and copying over just the
paths
section of the old YAML file to the new one, but that hasn't helped. I've also run it manually (outside of systemd) and that doesn't change anything. Looking at the output, it almost looks like it starts the first stream and never gets around to starting the second.Any suggestions? Here's what I get when I run it manually:
After I hit CTRL-C to stop it, I get the following:
The "Connection refused" seems relevant, for sure. The warning about "has not been used for any stream" appears to be related to the h264_v4l2m2m - if I set that back to the libx264 recommended in the docs, that error goes away, but then the stream doesn't work.
I'm at a loss - same OS level, both were kept up to date with routine apt upgrades.
Beta Was this translation helpful? Give feedback.
All reactions