Forum

FileStream and Spreads

I was hoping to be able to load a group of videos simultaneously. To achieve this I make a Spread of strings with their filenames and injected it into FileStream filename pin. It didn’t work. It only recognizes one of the slices. Why? Am I doing something wrong or is this a limitation?

How can I do this?

Thanks in advance!
Nuno

sorry, this is a limitation with all of the DirectShow nodes including the FileStream. so you need to resort to many FileStream nodes, like you would do it in MAX.

Anyway DirectShow is a beast and will never really play many videos smoothly, even if vvvv would make it easy to patch.

Ah… that explains it :) But it’s ok, I can live with that.

Are there any plans to remove this limitation in the future?

Thanks for the answer.

cya,
Nuno

About performance: although I planned to have multiple videos loaded in a Spread, there are only 4 videos. I planned to use the Spread just to make the patch simpler. Actually only one is being played for most of the time. They quickly cross fade from one to the other according to a sensor input.

No Spreads… so I’ll do it with 4 or 5 FileStream nodes. If I set the “Play” pin to 0 on a FileStream it will no longer hinder performance, right? Or is there another better way to temporarily disable a specific FileStream?

Thanks,
Nuno

I can answer this one myself :)

After some tests, if the “play” pin is 0 in FileStream then CPU is idle. Good!

attached is my approach to a spread of filestreams.

FileStreamSpread.v4p (13.5 kB)