V4l-ctl vs nvv4l2src data changing

Hi all I developed a custom camera driver which is working properly. The resolution of my camera is 376x376.
When I capture raw frame using v4l-ctl I get a raw frame with size 282kb which is 376x376x2 bytes
then I used the following gstreamer pipeline to visualize the frames

gst-launch-1.0 nvv4l2camerasrc ! nvvidconv ! xvimagesink

I was able to see the video stream, after this when I try to capture raw frame using v4l-ctl
the size of the image is 1.4mb which is odd.

I have attached the two raw frames here
frame9.raw (276.1 KB)
1.4.raw (1.4 MB)

hello varun_pandithurai,

may I also confirm which JetPack release version you’re working on, thanks

Hi @JerryChang
I am using jetpack 32.5.2

hello varun_pandithurai,

did you have different sensor modes?
could you please try assign the formats completely to check this.
for example,
$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=2592,height=1944,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw

Hi @JerryChang
I have only one mode in this sensor driver.

hello varun_pandithurai,

could you please confirm you’re using the same command but dump different size raw images before/after running nvv4l2camerasrc

Hi @JerryChang
Yes I get different size raw image using same command