Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    让T113-S3的TVIN吃上trecorder的本地预览套餐

    D1系列-RISC-V
    2
    3
    385
    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.
    • T
      TEVET LV 6 last edited by TEVET

      如题, T113-S3的TVIN 功能令人垂涎。我想呢,看看本地预览咯。
      但是这个trecorder 一开,给你提示:
      [TR_ERR][VportInit] unknow camera type is sunxi-tvd
      然后就没有然后了。
      没关系,定位一下位置:
      d169ec12-e1fb-4811-90a7-9af636ee0488-image.png

      啊原来是这样呢,
      那我试试给它赋予USB摄像头的属性呢? 比如这样:
      621569f6-86ec-42dd-9db0-9341ff09b47c-image.png

      非常惊喜的就是 ,真的可以跑,
      看视频:

      完结。

      当前需要说前提:

      内核的 CONFIG_VIDEO_SUNXI_TVD 要开。
      设备树节点要开。

      &tvd {
      	tvd_sw          = <1>;
      	tvd_interface   = <0>;
      	tvd_format      = <0>;
      	tvd_system      = <1>;
      	tvd_row         = <1>;
      	tvd_column      = <1>;
      	tvd_channel0_en = <1>;
      	tvd_channel1_en = <0>;
      	tvd_channel2_en = <0>;
      	tvd_channel3_en = <0>;
      	/*tvd_gpio0 = <&pio PD 22 GPIO_ACTIVE_HIGH>;*/
      	/*tvd_gpio1 = <&pio PD 23 GPIO_ACTIVE_HIGH>;*/
      	/*tvd_gpio2 = <&pio PD 24 GPIO_ACTIVE_HIGH>;*/
      	/*	dc1sw-supply = <&reg_dc1sw>;*/
      	/*	eldo3-supply = <&reg_eldo3>;*/
      	/*tvd_power0      = "dc1sw"*/
      	/*tvd_power1      = "eldo3"*/
      };
      
      &tvd0 {
      	used                    = <1>;
      	agc_auto_enable         = <1>;
      	agc_manual_value        = <64>;
      	cagc_enable             = <1>;
      	fliter_used             = <1>;
      };
      
      

      recorder.cfg可以用我的,分辨率根据自己摄像头自己改一下吧:
      recorder.cfg

      运行的时候执行:
      trecorderdemo 0
      就行啦

      舒服一下。大佬们试试看咯!

      1 Reply Last reply Reply Quote Share 0
      • YuzukiTsuru
        柚木 鉉 LV 9 last edited by

        大佬太强了,看看D1s行不行

        T 1 Reply Last reply Reply Quote Share 0
        • T
          TEVET LV 6 @YuzukiTsuru last edited by

          @yuzukitsuru
          太忙了,下次一定。

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

          Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策