← Brewology.com

Vita Store › Plugins

UVC (USB Video Class) v1.6 by xerpi

Released Jul 20, 2020 · Plugins
16,758 downloads here · Developer site

PSVita as a UVC (USB Video Class) device

Install on your Vita

FileSize
udcd_uvc_lcd_off.skprx
7f76da40…c98d
6 KB Download
udcd_uvc_oled_off.skprx
70c5a68f…57d4
6 KB Download
udcd_uvc.skprx
7d812a75…9a9c
6 KB Download

Plugins: this release has 3 plugin files. Copy the ones you need to ur0:tai/ (the developer's notes say which), then add a line for each to ur0:tai/config.txt, under its section:

Under *KERNEL:
ur0:tai/udcd_uvc_lcd_off.skprx
ur0:tai/udcd_uvc_oled_off.skprx
ur0:tai/udcd_uvc.skprx

Then reboot the Vita. If your Vita has ux0:tai/config.txt, taiHEN reads that file instead. The developer's notes say if a plugin goes somewhere else.

To copy a file to ur0:tai/, use FTP in VitaShell, or copy it to ux0: over USB and move it in VitaShell (△ › Copy, open ur0:tai/, △ › Paste). Press ✕ on config.txt to edit it.

Autoplugin 2 installs many common plugins from a list on the Vita.

Homebrew needs HENkaku, h-encore, HENlo or Ensō. New to Vita homebrew? Start here.

All versions (13)

Screenshots

About UVC (USB Video Class)

Installation:

Add udcd_uvc.skprx to taiHEN's config (ur0:/tai/config.txt or ux0:/tai/config.txt): *KERNEL ur0:tai/udcd_uvc.skprx
Reboot your PSVita.

So this is a project I've had in mind for a few months already and finally I've decided to put some effort into it.

Let me explain: the Vita OS has a module (SceUdcd) that allows you to setup the Vita (fat and slim) bottom USB port as any USB device by setting custom USB descriptors.
In the past, I've already used SceUdcd to make the Vita act as an standard USB HID Gamepad (check this) so I asked myself: why don't I take advantage of the power of that module and write a plugin that setups the Vita as an USB Video Class device (like a webcam or USB video capture card) and sends the screen data to the PC?
And here we are, it has taken me quite a bit of reverse engineering the Vita OS (specially the SceDisplay and SceUdcd modules) to be able to have a very alpha-stage proof of concept skprx working.

As I said it's very PoC, so don't expect it to go fast at all: the code is currently very inefficient and I'm not taking advantage of the Vita's hardware colorspace converters and image encoders at all, it's all done by CPU. Also, for now, this version will only capture the LiveArea footage.

Even though it isn't very useful at its current stage, I'm releasing this so you can test it on different OSes and report back whether it's working or not (I'm developing on Linux so that's my testing platform).

To make it easier to load this plugin I've created a Plugin loader VPK that its job is to load any skprx placed in ux0:data/tai/kplugin.skprx

Changes since v1.1:

Fixed 480x272 support thanks to u/Kaizu_vita

List of supported video modes:

960x544 @ 30 FPS and (less than) 60 FPS

896x504 @ 30 FPS and (almost) 60 FPS

864x488 @ 30 FPS and 60 FPS

480x272 @ 30 FPS and 60 FPS

If the video looks glitched, try to change the video player configuration to use the NV12 format or switch to another player (like PotPlayer, KMPlayer or OBS). If you use Windows 10 you might have to change the Camera access permissions on the Privacy Settings. On Linux I recommend using mplayer (mplayer tv:// -tv driver=v4l2:device=/dev/videoX:width=960:height=544).

Something wrong with this listing? Report a problem · Are you the developer? Claim this listing