imx335无法在2560x1440 下进行预览
-
imx335无法在2560x1440 下进行预览
我使用jetson tx2 nx
第一步是使用脚本配置videomode
./veye5_mipi_i2c.sh -w -f videomode -p1 4 -b 9
第二步
v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=5120
第三步
gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! "video/x-raw(memory:NVMM), width=(int)2560, height=(int)1440" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nv3dsink sync=false结果不是打摄像头,而是对桌面进行截屏。
第三步是根据 2592x1944@20fps模式预览 的部分进行改写,只改变width和height。
但是如果将第三步换成 2560x1440 的录像和抓拍,能够成功执行和生成视频文件和图像文件。
请问 imx335 在videomode 3/4 情况下能否进行预览。 -
@veyeuser
第一步之前,有没有执行一下v4l2-ctl -d /dev/video0 --set-ctrl sensor_mode=3? -
v4l2-ctl -d /dev/video0 --set-ctrl sensor_mode=3 ./veye5_mipi_i2c.sh -w -f videomode -p1 4 -b 9 v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=5120 sleep 0.1 gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! "video/x-raw(memory:NVMM), width=(int)2560, height=(int)1440" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nv3dsink sync=false我处执行无问题。
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login