Navigation

    全志在线开发者论坛

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

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

    MR Series
    9
    18
    8587
    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 7 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
      就行啦

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

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

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

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

          @yuzukitsuru
          太忙了,下次一定。

          U 1 Reply Last reply Reply Quote Share 0
          • Referenced by  T TEVET 
          • U
            Uccccc LV 4 @TEVET last edited by Uccccc

            @tevet 大佬麻烦问一下您在启动trecrderdemo时遇到过这个问题吗2023-09-14 13-34-06屏幕截图.png
            2023-09-18 18-35-04屏幕截图.png2023-09-18 19-16-12屏幕截图.png

            T 1 Reply Last reply Reply Quote Share 0
            • T
              TEVET LV 7 @Uccccc last edited by

              @uccccc
              并未遇到该问题,要不你看看代码搜搜log报错?

              1 Reply Last reply Reply Quote Share 0
              • E
                edisondeng LV 2 @TEVET last edited by

                @tevet 请教一下有硬件连线图吗?

                T 1 Reply Last reply Reply Quote Share 0
                • T
                  TEVET LV 7 @edisondeng last edited by

                  @edisondeng 可参考某宝上大量的带TVIN 的开发板的开放资料呀。

                  A 1 Reply Last reply Reply Quote Share 0
                  • A
                    y_uu LV 5 @TEVET last edited by

                    @tevet 请问下内核需要打开哪些选项?我打开了Device Drivers > Multimedia support > V4L platform devices > <*> sunxi tvd driver 。/dev下生成的是video4。命令行trecorderdemo 4时状态显示空白,显示屏无反应37a4633a-e89d-4f0f-a39d-f933d89a343b-微信截图_20231009113737.png
                    我看下差异你的是video0,不知道有没有影响

                    baiwen Q 2 Replies Last reply Reply Quote Share 0
                    • baiwen
                      100ask LV 6 @afu120 last edited by

                      @afu120 你好,我也遇到了相同的问题,请问您有解决么?

                      baiwen Q 2 Replies Last reply Reply Quote Share 0
                      • baiwen
                        100ask LV 6 @baiwen last edited by

                        @baiwen 已经搞定
                        84f1fef1-5066-49c7-93a2-689073709bc5-6aecaa25e15e7106681c14411cf6b2f.jpg

                        A 1 Reply Last reply Reply Quote Share 1
                        • A
                          y_uu LV 5 @baiwen last edited by

                          @baiwen 👍 👍 求教程

                          1 Reply Last reply Reply Quote Share 0
                          • Q
                            Qiao15839037953 LV 3 @baiwen last edited by

                            @baiwen 请问没有video0只有video4,你们是怎么解决的啊?

                            1 Reply Last reply Reply Quote Share 0
                            • Q
                              Qiao15839037953 LV 3 @afu120 last edited by

                              @afu120 请问没有video0只有video4,你们是怎么解决的啊?

                              M 1 Reply Last reply Reply Quote Share 0
                              • M
                                meihao LV 5 @Qiao15839037953 last edited by

                                @qiao15839037953
                                ln -s /dev/video4 /dev/video0

                                Q 2 Replies Last reply Reply Quote Share 0
                                • Q
                                  Qiao15839037953 LV 3 @meihao last edited by

                                  @meihao 老哥你好能不能加你个联系方式啊?想询问你问题,我在调cvbs摄像头,我遇见跟你贴子里出现的一模一样的问题,已经搞了好久了还是没有搞好,报以下错误:
                                  [TR_ERR][VportInit] unknow camera type is sunxi-tvd
                                  [TR_ERR][VportRequestbuf] /dev/video0 request 0 buffer error, ret -1 errno(22)
                                  [TR_ERR][TRprepare] vport 0 requestbuf error,count is 0

                                  1 Reply Last reply Reply Quote Share 0
                                  • Q
                                    Qiao15839037953 LV 3 @meihao last edited by

                                    @meihao 老哥看见留言后一定回个信息哈,再次感谢您,搞了好多天了,实在搞不好了🤒

                                    M 1 Reply Last reply Reply Quote Share 0
                                    • M
                                      meihao LV 5 @Qiao15839037953 last edited by

                                      @qiao15839037953 修改一下recorder.cfg,camera_id = 0,应该就可以了

                                      1 Reply Last reply Reply Quote Share 0
                                      • A
                                        albert123 LV 2 last edited by

                                        非常不错,大佬威武!!!

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

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

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