Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTSP Feed instead of using Webcam? #76

Open
Ganesh-Baron-Aloir opened this issue Apr 6, 2024 · 3 comments
Open

RTSP Feed instead of using Webcam? #76

Ganesh-Baron-Aloir opened this issue Apr 6, 2024 · 3 comments

Comments

@Ganesh-Baron-Aloir
Copy link

Hello Torin,

Awesome work on this repo. I'm trying to figure out how it would be possible to modify the code to enable RTSP feed input instead of a webcam.

The reason, I'm trying to figure this out is because, I realize that when needing multiple types of data, faces, landmarks, and so on, we get better results by running multiple MediaPipe bases for marginal performance costs. I'm using NDI webcams instead of Spout right now, because it allows me to share the same feed over 4 MediaPipe bases on the same machine, but I'm limited by the 4 NDI Cam sources.

I believe that with a multicast RTSP it would be possible to use the same source across multiple instances of MediaPipe bases.

@domisjustanumber
Copy link
Collaborator

Hey @Ganesh-Baron-Aloir glad you're having fun with the plugin! We looked into the RTSP option, but it's a bit of a pain to get working, and requires you to have the licensed version of TouchDesigner to run. I haven't played with it to test, but I also suspect the latency might be quite high.

I'm currently (well, I will be when I next get some time to tinker) looking at capturing a window as the video source, which would (I believe) allow us to have unlimited number of MediaPipe instances all working from the same source material with 0 delay... you can keep track of it here: #64

@Ganesh-Baron-Aloir
Copy link
Author

Hey @domisjustanumber I can understand the challenge of integrating RTSP. Good point on the latency, that is indeed a possiblity.

If I get some time I might look at this external python library: pyvirtualcam it might allow to get the data from a TOP of some GLSL wizardry and virtualize a camera.

@domisjustanumber
Copy link
Collaborator

Thanks for the kink, thats an interesting tool! Dotsimulate has also done some cool stuff with pulling GPU memory directly into Pyhton, but alas MediaPipe is Javascript running in embedded Chromium. As it's a web browesr, it's very heavily walled off from memory and network access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants