Is it possible to use the rpiCamera source "on demand"? #4136
Unanswered
davidplowman
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
-
Question
Hi everyone,
Firstly, thanks for all the work on MediaMTX and especially for adding native camera support for Raspberry Pis.
The
rpiCamera
source works really well, but I notice that it's using the camera and encoding frames all the time, even when nothing is requesting the stream.By contrast, if I encode the camera stream myself in order to publish it to MediaMTX using RTSP, then I can use
runOnDemand
to start the script which opens the camera and publishes that RTSP stream.So I'm wondering if there's any way to arrange for the
rpiCamera
source to start capturing and encoding images only when the stream is requested. As far as I could tell from the README page, I couldn't see that this was possible.Thanks in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions