No capture in kernel for each frame - only in start and stop ?

Hello,

I have some hard time finding where camera frames are captured in kernel.
I use nvidia tx1 kit with mipi onboard camera.
I first added log in vi2_fops.c:

tegra_channel_capture_done
 tegra_channel_capture_frame

But see nothing.

Adding printing in:

vi2_channel_start_streaming 
vi2_channel_stop_streaming

I do see it on starting/stopping the gstreamer but nothing later(no tegra_channel_capture_done, tegra_channel_capture_frame).

I then also tried to add printing in v4l2

__v4l2_event_queue_fh

But also see nothing
I can only see log in

__v4l2_fh_init

Additional note: I can capture from camera only if using

gst-launch-1.0 nvcamerasrc ! .... "

, using

gst-launch-1.0 v4l2src device="/dev/video0" ! .... "

it fails with “could not link v4l2src0 to nvvconv0”
Maybe this explains why I fail to see logs in kernel ?

I’ve added plenty of logs in many many files in kernel related to tegra camera and v4l2, but seems that nothing is printed on frame capture, only on start and stop.

Thank you for any idea,
ranran

Use vl42-ctl instead of v4l2src due the it’s bayer sensor you need bayer2rgb element if use gst-launch-1.0 v4l2src, and nvcamerasrc didn’t run the VI kernel driver because it is a user space driver.

v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=50

If I may please ask:
Is it that the above command just capture frames without storing or streaming the frames ?
I mean, is it that the frames are saved somewhere in user-space ?

Thank you very much

Yes, capture the frames without storing.
You can have --stream-to=xxx.raw to save it to the same folder.