xerpi / vita-udcd-uvc

PSVita UDCD USB Video Class plugin
468 stars 23 forks source link

Is there a compatible video player for vanilla Android tv? #14

Open juicypop opened 5 years ago

juicypop commented 5 years ago

What I tried so far: VLC MXplayer

xerpi commented 5 years ago

That's a good question, I haven't tried the plugin on Android. Make sure the video player supports regular USB UVC cameras (maybe V4L2?).

juicypop commented 5 years ago

thanks for the hint "uvc camera"

Just stumbled upon this thread according my android tv box: https://www.google.com/amp/s/amp.reddit.com/r/AndroidTV/comments/751mls/mi_box_3_videoconferencevideocalling_working/

Will reboot my device while vita is plugged in and play around with different apps and report back whether it works, would be awesome!

juicypop commented 5 years ago

Looks like I have no luck :( I tested 2 more apps, special for uvc webcams: Open webcam Webcamfi

When I plug the vita into my android box both apps ask to open but the screen stays black :(

I wonder if maybe vlc could be able to open the uvc stream, but I have no clue how to achieve this

wjchen commented 5 years ago

I just made android app to show uvc video. But it not smooth to show nv12 video

juicypop commented 5 years ago

Wow that's really great to hear wjchen

Are you going to improve it further and release it somewhere? I would be thankful to give it a shot and report you my feedback

xerpi commented 5 years ago

@wjchen If you use OpenGL ES I think you can sample directly from a NV12 texture.

wjchen commented 5 years ago

You can try my apk here https://github.com/wjchen/AndroidUvcCameras/blob/master/psvcam.apk?raw=true

juicypop commented 5 years ago

@wjchen I finally found some time to give your app a shot. I'm beeing asked to allow usb access but the screen stays black no matter what I try, so still no luck with it :(

RaZoRNo1 commented 5 years ago

@wjchen

I tried you APK on a rooted Fire TV Box 2nd Gen. and it worked successfully, where other UVC apps have failed.

Only issue I have with the APK is, that there is some input lag (Probably from my TV) and the video has some framedrops. I dont know if the Fire TV is too weak to process the video input or if it is an issue with the Vita.

Edit:

Had the same kind of issue ob my Laptop with max resolution (Project Diva X is not playable, even OC to Max.) As soon I lowered the resolution, the video was much better. I assume the cable or the Vita is not fast enough zo transmit everything without hiccups. (Vita 1000) Is it possible to add the resolution option to the APK?

wjchen commented 5 years ago

@RaZoRNo1 I tried 864x488,still framedrop. I think it caused by the wrong way to show NV12 video

juicypop commented 5 years ago

@wjchen Did you tried what Xerpi suggested? To directly use open gl?

May I ask you if your apk only works on rooted devices? As RaZoRNo1 had luck with your apk and my device won't show anything

RaZoRNo1 commented 5 years ago

@juicypop

The app did not ask for any root permissions.

Have you checked if the plugin works without any issues on Windows?

@wjchen

Did you checked the framedrops on Android or Windows? On Windows with 864x488 and 60 FPS it was playable very fine (Project Diva X had nearly no lags/framedrops)

froid-san commented 5 years ago

Also tried a bunch of UVC apps on play store, unfortunately, most of them do not give proper information if they support nv12 or not. Most give a black screen but some china one's recognized its a vita connected but gave a uvc error.

wjchen apk also gives a black screen on me, making me think maybe these UVC apps requires ROOT acces to properly display the vita? tested on a Mibox S and Oppo F9 pro.

Nonetheless, it works great on windows BTW

debuggerx01 commented 4 years ago

Maybe you guys just need this: USB Camera - Connect EasyCap or USB WebCam @juicypop @xerpi @froid-san @RaZoRNo1