Loading...
Logo
Processing Forum
Hi,

I have a problem with opening a ~500MiG QuickTime file, it takes about 30seconds to load. In order to avoid this delay, is there anyway to just open a portion of the file and play it back and while showing it, load next portion?

-Thanks

Replies(7)

This is a problem in my opinion with how Windows (xxx) works. I would try splitting the movie into three and then as the first loads quickly load the other two in  the background...

This only reduces the delay and then you have the issue of seemless transition from one movie to the other..

You can also try the other video handling libraries and see how they handle large files.
Thanks

1- I tried this on Mac and it was the same thing.
2- How to load a file in background? Since Processing takes whatever CPU that it can, I would suspect loading something in the background would stutter the output.
3- How should I load something in the background? Multi-thread in Processing?!
4- What other video libraries you know of? I never heard of anything else.

-LN2
It sounds like you're asking for a way to 'stream' the video...  No idea if any of the video libraries support this; you'll have to look for yourself.  Hint: from the Processing Reference follow the 'Libraries' link ;)


Mb is megabits, not megabytes, and I suppose you wanted to write 500MiB, then.
There are two alternatives which I employ.

1. Have a processing server do the heavy lifting. However this is kind of an expensive work around. Where in the processing server is an
additional physical computer responsible for handling procesing rendering commands. The server simply returns an image of which to display. The server could  have the video pre-loaded.

2. Have an external application like VLC player be responsible for streaming the video wherein it already has the video to play and the player plays it and/or streams it to the processing sketch.

I have not the programming skills to suggest another processing sketch to be pre-loaded and run the movie, this still would be limited to physical RAM.

The only suggestion is to utilize a technology like HTML 5 Canvas wherein the application is not attempting to read a physical file, but the application is sent instructions, even 3D signals and in realtime create the movie. This last one is hypothetical.