-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to set additional parameters of the Raspberry Pi Camera #1111
Comments
Agreed +1, currently we have a work around like in this repo -> https://github.com/kerberos-io/camera-to-rtsp |
I have to say that this approach also works amazingly well, allowing the use of all possible Been using it with my HQ Camera/IMX477, I had to build both libcamera+libcamera-apps from source to use it's full capabilities (like 1332x990@90FPS, up to 120FPS is possible). Having native support for it with I've been thinking of using the power of HEVC/H265 and possibly also disable the camera during night time, since the sensor doesn't see anything anyway, unless I mount some massive IR blasters and removing the IR filter. Regarding the night time I was thinking of doing some cronjob that would run hourly:
Above scheduling of camera + H265 support, on top of being able to use all of the parameters of the camera, as originally implemented, would make Above all of the things I mentioned, I wanted to say Thank You very much aler9 for Your support and amazing work, that everybody could use, I highly appreciate the work and effort put into this! <3 |
The problem of that approach is that is slow compared to the one that can be obtained by interacting directly with libcamera, and that's why i wanted to integrate it into the server. Anyway, since rtsp-simple-server is now able to interact with libcamera, adding support for additional parameters is actually really simple, it's enough to take all the and paste them into the server, here: I don't know whey i'll got the time to do it, but in the meanwhile, anyone is free to do the work and submit a patch.
Raspberry Pis at the moment aren't equipped with a H265 hardware encoder: https://forums.raspberrypi.com/viewtopic.php?t=243873 And i don't recommend doing H265 software encoding since it would consume most of the CPU. |
Thank You, I've just watched a video about software encoding H265 performance and I see even with powerful Desktop CPU the performance is horrible, so there's no point going that path. Regarding the camera parameters, there are some more parameters not listed in those Which I believe are very useful, so I'm leaving them here for the future. |
Agreed! What still would be great to have, is a single container running with injecting the appropriate devices into the container. As far I've understood the code to interface libcamera is not yet released inside the latest, docker image. |
+1 |
The following parameters have been added:
The following parameters have been left out of the PR:
|
--mode is actually used in libcamera-vid. It is useful for choosing a higher resolution sensor mode in combination with a lower resolution output. An example
This gives (for some cameras at least) a higher quality image than the binned alternative. Note that the maximum framerate is determined by the selected sensor mode. |
@reyoda thanks for clarifying this, evidently i didn't understood the code enough, i'll give another try. |
|
added in v0.20.1 |
Hello, |
This issue is being locked automatically because it has been closed for more than 6 months. |
Describe the feature
The Raspberry Pi Camera has a lot of parameters that can be tuned and should be added to the server configuration.
List:
List of parameters to take into consideration:
The text was updated successfully, but these errors were encountered: