Giter VIP home page Giter VIP logo

Comments (5)

leeebo avatar leeebo commented on July 23, 2024

@jeff-getlucky 对于同一个摄像头,不同的 USB 模式会有不同的描述符配置,PC 上拿到的 Highspeed 描述符,S3 下摄像头只能工作在 Full-speed 模式,拿到的是 Full-speed 描述符。

现在无法确认是 S3 平台的解析问题。

可以在摄像头连接到 PC 之前加一个 USB 隔离器,PC 上获取 Full-speed 描述符进一步对比

from esp-iot-solution.

jeff-getlucky avatar jeff-getlucky commented on July 23, 2024

@jeff-getlucky 对于同一个摄像头,不同的 USB 模式会有不同的描述符配置,PC 上拿到的 Highspeed 描述符,S3 下摄像头只能工作在 Full-speed 模式,拿到的是 Full-speed 描述符。

现在无法确认是 S3 平台的解析问题。

可以在摄像头连接到 PC 之前加一个 USB 隔离器,PC 上获取 Full-speed 描述符进一步对比

但单独看esp32s3解析到的fps是4266.6538ms->0.234 fps
不可能呀
正常应该是16.6666到100ms之间,这个是解析错位了。
ep32s3解析FrameInterval 0x028B0A2A
右移两位就是正确的fps了,但光改这个不行,我尝试修改了final_interval,目前没效果,还在尝试修改其他地方。

from esp-iot-solution.

leeebo avatar leeebo commented on July 23, 2024

@jeff-getlucky dwDefaultFrameInterval 是一个 word,4 个 Bytes,如果你能修改摄像头固件,查一下 Fullspeed 的描述符,这个变量数据类型是不是选错了

from esp-iot-solution.

jeff-getlucky avatar jeff-getlucky commented on July 23, 2024

@jeff-getlucky dwDefaultFrameInterval 是一个 word,4 个 Bytes,如果你能修改摄像头固件,查一下 Fullspeed 的描述符,这个变量数据类型是不是选错了

改不了固件,正确的frame interval应该是0x00028B0A,也是一个word。
哦,对了,忘了说了,很多字段解析错了,不止dwDefaultFrameInterval,甚至连bLength都对不上。
我这边有两个不同品牌的摄像头,在esp32s3上表现是一样的,usb描述符都不对。
在Windows上用potplayer播放没问题。
我去买一个usb2.0 full-speed的hub试一下,谢谢了。

from esp-iot-solution.

jeff-getlucky avatar jeff-getlucky commented on July 23, 2024

usb隔离器到了,确实是因为摄像头不支持full speed。

from esp-iot-solution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.