spigot~ for multichannel-audio video files?

Moritz's icon

I need to play a video in sync with 4 audio files. Ideally they should be embedded into the video file, the only issue is that I need to process the 4 audio channels in MSP. Spigot~ is ideal but unfortunately only works with 2 channels. Trying to play the video and the audio files in separate objects failed so far. The video file is about 5 minutes long and eventually needs to loop and stay in perfect sync for many hours.

The only thing I can think of is to create an aggregate device with soundflower and my audio interface and route the 4 signals from jit.movie to an soundflower output and then grab that signal with Max again. But this is a messy workaround that will also introduce latency(which is also very important as there is live input over a microphone as well)

Any suggestions are very welcome!

Thanks!

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

your life will be much easier if you separate the audio and video playback. as long as the files are the same length, the video can easily be kept in sync with the audio position using sfplay~ or groove~.