Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

USB gadget as a video sink

Featured Replies

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. 

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.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.