you may also try given all support formats to the command-line.
for example, v4l2-ctl -d /dev/video0 --set-fmt-video=width=3280,height=2464,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw
Hello Jerry,thank you for your reply, I’ve tried this command :
v4l2-ctl -d /dev/video0 --set-fmt-video=width=3280,height=2464,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw ,
and failed to execute it ,
but I found the camera stream 1,843,200 Bytes = 1280 x 720 x 2 , which means the stream resolution lower than 3280 x 2464 when it worked in this mode ,
if any other reasons could cause it ?
Thanks again .
,
I’ve found 2 interesting things:
1, the command :
" nvgstcapture "
will cause the v4l2-ctl capture command disable. the jetson Xavier NX must shutdown and reboot ,then the problem can be solved;
2, After rebooting,the command :
v4l2-ctl -d /dev/video0 --set-fmt-video=width=3280,height=2464,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw
is OK, but the stream resolution can be set only once as 3280x2464, changing the solution to another like 1920x1080 is failed.
If you know more about it, tell me please.
And thanks for your apply !
is it possible for adding debug prints to check sensor actually using different sensor modes?
BTW, may I also know which camera module you’re using, is it rbpcv2-imx219?