Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc

    imx335无法在2560x1440 下进行预览

    CS MIPI camera
    2
    3
    446
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      veyeuser last edited by

      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 情况下能否进行预览。

      veye_xumm 2 Replies Last reply Reply Quote 0
      • veye_xumm
        veye_xumm @veyeuser last edited by

        @veyeuser
        第一步之前,有没有执行一下v4l2-ctl -d /dev/video0 --set-ctrl sensor_mode=3 ?

        1 Reply Last reply Reply Quote 0
        • veye_xumm
          veye_xumm @veyeuser last edited by

          @veyeuser

          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
          

          我处执行无问题。

          1 Reply Last reply Reply Quote 0
          • First post
            Last post