torinmb / mediapipe-touchdesigner

GPU Accelerated MediaPipe Plugin for TouchDesigner
MIT License
522 stars 21 forks source link

Infinite Loading #44

Closed david-brightjoy closed 8 months ago

david-brightjoy commented 9 months ago

I have an infinite loading screen -- not sure where to start troubleshooting. My camera is live in the input. I tried incrementing the mediapipe port and pulsing, no joy. Thoughts?

Screenshot 2023-10-05 135109 image

Web console:

image
AlexRuizE commented 9 months ago

Hi, I have the exact problem. Camera is detected in MediaPipe container, and videodevin1 shows my webcams output. I can't see if OPs does so here's my screenshot of it:

Screenshot 2023-10-05 200609

TD version: 2022.35230 Windows 10 image

Tried with two different webcams, same result.

Incidentally I'm also using a Commercial license of TD. Tried with Non-Commercial with same result.

Debug console looks black as OP.

david-brightjoy commented 9 months ago

Looks like the same issue.

david-brightjoy commented 9 months ago

Taking a pot-shot at it: I wonder if something fancy has to be done to give the embedded Chromium browser access to the webcam. In other contexts (zoom or teams with Chrome) there is a modal that asks for permission to use the camera/mic. Perhaps this is a windows security thing?

rsdvdesign commented 8 months ago

One more into the endless loading screen. Yesterday was working perfectly, today I have tried in 2 different computers with the versions TD 2022.35280 and 2022.33910 .I also changed the webcam source with 3 different ones

cosismo commented 8 months ago

Same here. TD 2022.35280. Stuck loading. W10 on Wine Ubuntu 22.04

domisjustanumber commented 8 months ago

Hey everyone, thanks for taking a go at figuring this one out.

The root cause is that the MediaPipe component isn't able to load the selected webcam, so just sits there doing nothing forever.

@AlexRuizE in your case it could be because your webcam can only run one instance at once, and it looks like you may be trying to run the same webcam in the Video Device In TOP and the Media Pipe component. If you disable the Video Device In TOP and reload the MP component - does it then work?

@david-brightjoy not so sure with your setup. Chromium doesn't have the same permissions things as regular Chrome, so that shouldn't be the issue here, but it could be the same issue as @AlexRuizE

If anyone is using SpoutCam for the routing (Video Device In TOP > Syphon Spout Out > SpoutCam > SpoutCam as the webcam source in Media Pipe) it seems to be a bit flaky and sometimes (often?) just gives a black screen for reasons I haven't figured out yet. If that happens, sometimes reloading the MP component kicks it back into life, sometimes I have to close TouchDesigner and start again. Once it's working, it then seems to be fine, it's just starting it up that doesn't always seem to work. If anyone figures out how to reliably break or fix it without having to do a restart that would be amazing!

david-brightjoy commented 8 months ago

If you disable the Video Device In TOP and reload the MP component - does it then work?

Yes. This did the trick for me. Thanks!

neildixon54321 commented 8 months ago

Hello, I'm new to this, I have a similiar problem, except I'm getting 404 Not Found on the Mediapipe loading screen, which seems to be coming from this Webrender1. Not sure if there is something very obvious that I'm not doing....thanks for your help -

loading webrender1

My webcams and SpoutCam are showing up in Videodevin but none is loading up in MediaPipe dropdown menu.

domisjustanumber commented 8 months ago

HI @neildixon54321 I suspect you have something else running on the same network port as the MediaPipe server.

If you change the "MediaPipe Port number" in the MediaPipe component settings, that should fix it.

neildixon54321 commented 8 months ago

Thanks @domisjustanumber that fixed it. Thanks