torinmb / mediapipe-touchdesigner

GPU Accelerated MediaPipe Plugin for TouchDesigner
MIT License
733 stars 35 forks source link

Receive a MovieFileIn TOP instead of Video Device In #95

Open funnyRectangles opened 3 months ago

funnyRectangles commented 3 months ago

Hi!

Sorry for asking this here, but I got no reply on the TD forum. Is it possible to tweak the MediaPipe .tox component to receive a MovieFileIn??

Thanks a lot!

torinmb commented 3 months ago

Hey! We show how to pass a movie file in at the end of the tutorial: https://www.youtube.com/watch?v=Cx4Ellaj6kk

You can use OBS or spout cam depending on if you're on mac or windows.

On Mon, Jul 29, 2024 at 11:24 PM funnyRectangles @.***> wrote:

Hi!

Sorry for asking this here, but I got no reply on the TD forum. Is it possible to tweak the MediaPipe .tox component to receive a MovieFileIn??

Thanks a lot!

— Reply to this email directly, view it on GitHub https://github.com/torinmb/mediapipe-touchdesigner/issues/95, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABN4IO2D2LJUNO2RFPLERITZO2XIZAVCNFSM6AAAAABLVCDNHWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZTMNBQGU2TMMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

funnyRectangles commented 3 months ago

Hi! Thanks for the reply!

I've been trying with OBS on Windows 11 and I've been experiencing severe lag and dropped frames... On the OBS itself the videos are lagging and when I receive them on TD it is even worse... I've tried with different hardware but no good results so far....

Is there any other alternative for doing it inside TD?

domisjustanumber commented 3 months ago

If you're on Windows, SpoutCam is a much better way to do this than OBS. There's also an example of how to do this in the video and in the Readme ;)

https://github.com/torinmb/mediapipe-touchdesigner?tab=readme-ov-file#sending-tops-from-touchdesigner

funnyRectangles commented 3 months ago

Oh, I have not realized that! Thanks a lot!