This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RPI Camera example?
#1
Is there any example to use RPI camera using gstreamer or any other library?
I tried to use gstreamer pipeline: gst-launch-1.0 rkv4l2src device=/dev/video0
but there is an error message: erroneous pipeline: no element "rkv4l2src"
[-] The following 1 user Likes naveen's post:
  • JaceLogan
Reply
#2
Setting Up The Raspberry Pi To Use gstreamer. You need to edit the sources.list file so enter: sudo nano /etc/apt/sources.list. ...
To Stream The Video From the Raspberry Pi. Enter this on the command lne: raspivid -t 0 -h 720 -w 1080 -fps 25 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc !
Reply
#3
@JaceLogan Does Tinker edge R support raspivid?
Reply
#4
Hi,

After check. Please use v4l2src directly to replace rkv4l2src (from OS v1.0.4).
Because rockchip already let gstreamer's v4l2 support their ISP, etc functions, no need special pipeline.

Thanks.
Reply
#5
Dear Sirs
I'm now building the kernel with downloading the latest driver code=imx219.c and I could successfully done updating the boot.img. One problem occurs, I can see the image but no AE, no AWB, no IQ tuning is applied, only the de-mosaic is done.

gst-launch-1.0 v4l2src device=/dev/video5 num-buffers=100 ! video/x-raw, format=NV12,width=1920,height=1080,framerate=30/1 ! videoconvert ! rkximagesink

It would be great if someone could advise me the way to apply the IQ tuning file to video pipeline.

And I think the driver code only has the register table for standard operation, no binning mode.
Then the driver should be under developing.
Is there any plan to update the driver code?



Thanks in advance.
Reply
#6
Did you use whole v1.0.4 image? There are something done in rootfs.
Reply
#7
(08-19-2020, 07:16 AM)leslie_yu Wrote: Did you use whole v1.0.4 image? There are something done in rootfs.

I'm sorry for long absence from last post about the camera IQ issue.
I down loaded and installed Tinker Edge R Debian Stretch V1.0.4
It would be great if you could explain about "rootfs" more precisely.

Thank you very much for your advice in advance.
Reply
#8
Dear Sirs
Besides IMX219 camera, I'm trying to connect IMX397 camera which already succeeded in displaying the image on tinker board.
I modified the driver code both from working imx219.c for Edge R and from imx397.c for tinker board.
(Before trying IMX397, I executed "kernel build(self build)" with the imx219.c code from the github and I could see the image.)
Both codes are possible to display the image on tinker board, however, I cannot see the image on Edge R.
I modified the below codes.

(1)imx397.c 
(2)Makefile
(3)Kconfig
(4)tinker_edge_r.dts
(5)tinker_edge_r_defconfig

I wonder besides the above codes, I need to modify the others or media-ctl command.

Or could you give me the advice the way to operate the mipi camera by dtoverlay(?) without re-build the kernel.

Thank you very much for your kind help in advance.


Attached Files
.zip   driver_src.zip (Size: 38.64 KB / Downloads: 2)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)