Replies: 2 comments
-
The readme has instructions for Raspberry Pi Cameras that can help you 😄 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello, first you need to ingest the camera into MediaMTX: paths:
rpi:
source: rpiCamera Then you need to edit the Python script and pull the camera stream from MediaMTX instead of directly from the camera, for instance by using RTSP: vcap = cv.VideoCapture("rtsp://localhost:8554/rpi")
while(1):
ret, frame = vcap.read()
cv.imshow('VIDEO', frame)
cv.waitKey(1) This is because the library in charge of interacting with the Raspberry Pi camera (libcamera) doesn't support multiple accesses at once. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Hi,
I am running mediamtx which is configured for raspberrypi ID: 0 .
I have another python code which needs the same camera streamed output so that I can access for other tasks.
How can I access camera from mediamtx and provide the streamed output as an input to another task(even visa ve possible??)
Kindly through some light .
thanks
Ravi
Beta Was this translation helpful? Give feedback.
All reactions