Coder Social home page Coder Social logo

H.264 about psvrframework HOT 8 OPEN

gusmanb avatar gusmanb commented on June 28, 2024
H.264

from psvrframework.

Comments (8)

mungewell avatar mungewell commented on June 28, 2024

Great thought....

Is it possible to have a little script which connects to a streaming source, and just throws packets into the USB endpoint?

from psvrframework.

gusmanb avatar gusmanb commented on June 28, 2024

First I would like to contact the people what I worked on that project as they have more knowledge on RTP packaging, I have no idea on how to make the RTP packets as I only manipulated them to feed a video player on web, I hope they can help me a bit on this.

Maybe looking at VLC streaming server can help, will check it this week as I know VLC or GStreamer can be used for this. Once we got the stream correctly encoded and encapsulated is just a matter to send the packets as-is.

from psvrframework.

Entropy512 avatar Entropy512 commented on June 28, 2024

I'm guessing based on some of this discussion that you seem to have made most of your discoveries using the morpheus bridge source code along with some trial and error to see what various commands do?

Have you done any USB traffic sniffing using something like USBProxy - https://github.com/dominicgs/USBProxy - If not I can try to get that set up later. It should be much easier to figure out what the PSVR wants to see by looking at a traffic capture, the H.264 headers should be recognizable making it easy to recognize the encapsulation. This assumes that USBProxy doesn't degrade performance to the point where things just crap out

from psvrframework.

gusmanb avatar gusmanb commented on June 28, 2024

@Entropy512 Do you have a PS4, the PS VR and a board with OTG? If yes then that would give us a lot of info, not just on this interface but also with all the missing bits of protocol on the rest of the reports.

I didn't knew about USBProxy, I was asking in other issue if someone kew about a cheap USB analyzer, and this can be what I need. Do you know if this will work with a Raspberry Zero? I don't have one but are extremely cheap, so if this work I will buy one for sure.

Please, test if this works and share your results. I think at least for commands will work, they're reporting speeds about 15 reports per second, for real time video this is insufficient, but we don't need a working stream, just the first packets to the interface. A big problem I can see is the sensor report, it updates a thousand times per second with two sensor reports inside to achieve the 2Khz sensor frequency required for the fusion algorithms, so that will saturate the device. But, if the tests are done with the headset off that report is not sent, so may be it will work for some things and not for others.

from psvrframework.

Entropy512 avatar Entropy512 commented on June 28, 2024

I have a PS4 and PSVR.

I don't believe the Pi family of devices has USB Gadget support - the MicroUSB port is only for power I'm fairly certain. Most USBProxy development appears to be done on the BeagleBone Black which I do have (although I'm not quite sure exactly where it is right now) - I'm going to attempt to get it set up sometime in the next few days.

from psvrframework.

gusmanb avatar gusmanb commented on June 28, 2024

The Zero module does have OTG and is used precisely to create gadgets.

from psvrframework.

Entropy512 avatar Entropy512 commented on June 28, 2024

That might work - both gadget and host, although USBProxy would obviously need some massaging to work with the Zero. I'm at least going to focus on the BBBlack initially as it has an Ethernet interface that is not hung off of the USB controller, which would help for getting the captured data off the device. It also happens to be what the USBProxy guys are developing against. :) Well, there's also the fact that I don't have a Zero but I have a Black. :)

from psvrframework.

gusmanb avatar gusmanb commented on June 28, 2024

Perfect :)

from psvrframework.

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.