You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The configuration entry of rpiCameraTuningFile for the raspberry pi camera using libcamera is not working. It makes not difference whether it is specified or not.
Describe how to replicate the issue
Have a raspberry pi and camera (v1 noir in my case - but does not matter actually)
Configure with tuning file (see example below)
Start the server
Look at the resulting picture, is has a reddish touch
Expected: Not so much of a reddish touch, results can be compared using libcamera-sill and providing a --tuning-file or not.
I debugged the issue with some printfs and realized that the initialization of LIBCAMERA_RPI_TUNING_FILE in camera.cpp is happening too late. Will add a PR for this.
$ ./rtsp-simple-server
2022/12/30 14:16:38 INF rtsp-simple-server v0.0.0
2022/12/30 14:16:38 INF [path cam] [rpicamera source] started
2022/12/30 14:16:38 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
hello // CUSTOM PRINTF IN RTSP CODE
w 1296 h 972 - /usr/share/libcamera/ipa/raspberrypi/imx219_noir.json
[17:11:43.229031317] [77964] INFO Camera camera_manager.cpp:299 libcamera v0.0.2+47-0684c373
BP configurationFile: /usr/share/libcamera/ipa/raspberrypi/ov5647.json // CUSTOM PRINTF IN upstream libcamera code
[17:11:43.331251488] [77965] INFO RPI raspberrypi.cpp:1423 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0
setting tuning file: /usr/share/libcamera/ipa/raspberrypi/imx219_noir.json // CUSTOM PRINTF IN exe/camera.cpp - note, AFTER the init in the libcamera code
env check: /usr/share/libcamera/ipa/raspberrypi/imx219_noir.json // CUSTOM PRINTF, re-read the env var just for checking
[17:11:43.804227963] [77964] INFO Camera camera.cpp:1026 configuring streams: (0) 1296x972-YUV420 (1) 1296x972-SGBRG10_CSI2P
[17:11:43.805176925] [77965] INFO RPI raspberrypi.cpp:803 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
2022/12/30 14:16:41 INF [path cam] [rpicamera source] ready: 1 track (H264)
…
The text was updated successfully, but these errors were encountered:
dedeibel
added a commit
to dedeibel/rtsp-simple-server
that referenced
this issue
Dec 30, 2022
This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.
Which version are you using?
Which operating system are you using?
Describe the issue
The configuration entry of
rpiCameraTuningFile
for the raspberry pi camera using libcamera is not working. It makes not difference whether it is specified or not.Describe how to replicate the issue
libcamera-sill
and providing a--tuning-file
or not.Config
Relevant parts:
Did you attach the server logs?
yes
Did you attach a network dump?
no
Logs
I debugged the issue with some
printf
s and realized that the initialization ofLIBCAMERA_RPI_TUNING_FILE
incamera.cpp
is happening too late. Will add a PR for this.The text was updated successfully, but these errors were encountered: