torinmb / mediapipe-touchdesigner

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

Two cameras simultaneously? #88

Closed lucaperrin closed 3 weeks ago

lucaperrin commented 3 weeks ago

Hello there,

Thanks for this awesome plugin. I was wondering how I could manage running two MediaPipe windows simultaneously, each using a different camera? Does SpoutCam support having two virtual webcams?

Thanks in advance!

domisjustanumber commented 3 weeks ago

Hey @lucaperrin, you can indeed, but you need something other than SpoutCam to do the routing.

I've found NDI is pretty good - it has 4 virtual webcams you can route to with NDI out instead of Spout Out.

Then you can run 4x instances of the MediaPipe plugin and have a different virtual webcam source for each.

lucaperrin commented 3 weeks ago

Thanks for the tip, NDI webcam works great! I run into an issue when having two TD windows with the mediapipe pose plugin opened: the ouput CHOP with pose data on each window outputs the same data on, conflicting between the two cameras. I want to have them seperate where each pose data is relative to the camera selected on the respective window. Hopefully you see what I mean

lucaperrin commented 3 weeks ago

[UPDATE] I have solved the issue by manually changing the MediaPipe port number.