then you can use cmd “v4l2-ctl --set-ctrl=analogue_gain=xxx” to change some param for camera, and you can change any of list ctrl(analogue_gain exposure white_balance_automatic … and so on).
for example: “v4l2-ctl --set-ctrl=analogue_gain=512”, you will see like this:
Just for fun, I wasn’t sure if it was possible to change the mode with v4l2-ctl, so i added a property to switch mode with overlay (or decompiling dtb and changing mode and then recompiling) without recompiling the kernel.
I know how to change mode. kernel driver is no bug, and you need’t to recompliling kernel or decompiling dtb. you can use cmd like this to change mode:
I would like to comment about the hflip and vflip, they do flip but the color of the image changes while streaming. I don’t see anything wrong with the code.
Guys, I’m positively surprised, really.
Can you use h.265 encoding from camera stream with 1080p@100fps or at least 60fps?
I would use it together with this very sensitive camera:
Camera itself has 1080p@60fps and Sony claims their IMX327 sensor has 1080p@100fps.
That would be great to build drone camera module with OpenHD - fork of EZ-Wifibroadcast
Interesting, there is support for imx327 in the kernel and rockchip camera engine, at least on rk3399. The driver setup is to 4 lanes, i don’t know if you just change it to 2 lanes in the code, and will work. If you have the camera you could try to enable the driver and add the node for the camera, but with the correct pins, something like:
Regarding h265 encoding (hw), i tried 1080@30 and got reasonable to poor results, but without trying to understand how to change parameters or find ways to get better results. I doubt it will work with 60 fps, but it is just an opinion…
Wow! Wow!!! Okay I’m excited now. I have unapacked new Rock Pi 4B 1 GB on RK3399 and new boxed IMX327. Jeez!
What to do to start testing both? I installed Debian image from march this year but there was a lot of problems en wasn’t even able to run connected OV5647 - there wasn’t v4l-utils, there was nothing at all. Still can’t find test_camera-rkisp1.sh. I even not imagine about conntecting 327 to this board in this situation
If you can say me first steps and how and where to do this. I’m not totally rookie, but on this platform I’m totally green.
I’m okay with h.264 on this board. For h.265 I know now that RV1126 is the best and thinking about invest into this board later on.
The first step is to know which imx327 chip you have in the camera. i googled a bit and there are some variants. IMX327LQR-C, IMX327S. They have different chip id. Seems to be 0xb2 or 0x6, possibly.
Cross your finger the chip id is 0xb2.
◆Readout rate
Maximum frame rate in Full HD 1080p mode: 60 frame / s
In the second step, imx327 must be enabled if not already, so a kernel rebuild is likely. Get used to the build process, i build everything manually so i don’t know much about the radxa build system, can’t help on this.
CONFIG_VIDEO_IMX327=y (or m if you need to rebuild the driver)
Rock3A is with kernel 4.19.y , the RockPi 4 is with kernel 4.4.y (so i think, i don’t have one).
It is possible to run kernel 4.19.y on rk3399 , i have a nanopi m4 running with kernel 4.19.193. You need to check out the latest imx327.c in kernel 4.4.y , or build 4.19.193 for your board.
Before you build, change IMX327_4LANES to IMX327_2LANES in imx327.c
Third step, is to create the new overlay for the camera imx327 (rockpi 4B dtso) with the code i posted above or edit the rockpi 4B dts and add the code there.
We need some advice about the pins for your board, we need the guys who know about the hardware, poke them:
reset-gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>;
pwdn-gpios = <&gpio4 25 GPIO_ACTIVE_HIGH>;
The last step, make sure you have the iqfile imx327_TongJu_CHT842-MD.xml and the camera engine.
Thank you. I think I’ll be able to follow your instruction, but will be hard I feel It’s definitely LQR regarding above innomaker info. Not sure what id it has - didn’t conect it yet.
Hi @abel thank you for your support in the kernel driver and in the community. Using your driver and your media-ctl example finally I’m able to set camera format and stream video. I have just some issues with the ov5647 sensor, in any possible format, the max FPS that I can reach is 30 with 640x480 resolution. And there is some documentation about how to use the ISP scaler in the selfpath? This is my media-ctl setup:
No, I didn’t buy IMX327. I’m still using 4.19.193 which is a bit outdated but works fine with OV5647. Maybe if you try to get it to work you should go with 4.19.219.
Sorry, I don’t know of any other camera to support 1080p/60, maybe the veye-327e with its driver can.
Update: I have ordered an imx219 camera (US$ 10) to see if i can get it to work, if it work i will be tempted to get IMX327. It takes at least ~45 days to get here.
I found the SD card today and reviewed the result of ov5647 640x480@60. imx327 is still expensive to try out. imx219 has better quality, but the calibration file given to me is a bit off for my kernel. I will try the radxa calibration file and compare the results.
I think if you use the 3A engine you can’t control exposure by simply changing it. In the previous camera engine version (kernel 4.19) there was an example of how to change the exposure, which looked like the Android way to me.
You can try a trick and see if it works fir you, start your camera session then stop the camera engine , and now try to change the exposure. It used to work for me, but now i use 3A engine (imx219).
Are you using Rock 3A with IMX586? Can you share more info on how you attached it and about the driver and kernel version?
I don’t mean adjusting the exposure by myself. I can actually change it through v4l2-ctl even with 3A running, but that is not what I want
I had it understood that the 3A engine should automatically adjust exposure based on lightning conditions, is this not true? The thing is, I am not getting the automatic adjustments. It just sticks to a default value regardless of lightning conditions.
I am actually using a custom designed board by me, but I am basing my software stack around the Rock 3A because the Radxa community has such a great support
So is the 3A not supposed to do automatic exposure adjustment? I thought it should
I got the IMX586 driver and the IQ file from a Chinese friend who kindly provided it to me. Who knows maybe that is the issue, although I don’t think so myself. I previously had a barebones driver I made myself, the driver worked but I didn’t test the camera engine at the time. Maybe I should try do another driver and check, I’ll share the driver and IQ file imx586 (1).zip (56.7 KB)