gounthar Posted July 4, 2020 Posted July 4, 2020 Hi there, I don't know yet much about the USB gadget framework, but was wondering it I could use it to make an Orange Pi Zero or One seen as a video sink by the host computer. I know the framework should allow the board to be seen as an audio source, a video source, a Midi device and other things, but could it be seen as a video consumer of some sort ? My goal would be to grab the host's webcam content, encode and stream it on the SBC so that the host's CPU still has resource for other tasks. Does it make sense ? Thanks.
usual user Posted July 5, 2020 Posted July 5, 2020 14 hours ago, gounthar said: use it to make an Orange Pi Zero or One seen as a video sink by the host computer. An USB video sink is a standard USB host port consuming the video via UVC function. I.e. you plug in a USB webcam in your USB port and you get a /dev/videoX device. 14 hours ago, gounthar said: My goal would be to grab the host's webcam content, encode and stream it on the SBC This will not work quite well due to the bandwidth requirement for the raw video. Using native Ethernet would already be a challenge. The proper way is to use hardware encoders at the host and forward the processed stream. With zero copy (dma_buf) video pipeline this puts little strain on the CPU. 1
Recommended Posts