quicker loading with jit.qt.movie
I’ve got three jit.qt.movie objects playing movies at the same time. When I read a new movie or image into one of them, a slight but noticeable pause occurs on the other two. Does anyone have any methods of decreasing this pause? Patcher below.
----------begin_max5_patcher---------- 1003.3oc6Ys0aiiBF84LRy+AK+x9RqiwWxk4oczHMusR66qFUQrINzhAW.mj lQ6+8EvNWHIciSqcaSUdoTNbwGN78AG676u9kdtSXKQBWmu47ON858aEROCl Fo2Zfdt4vkIDnvzQWJZAax8t2T2lDsTZvK3nBDM0gifoaZEmZZSMfaA9aPok 4XJAIMSHXM5TFUJvqPFv.O+c5MqTdP2KfxjYXZ1cbThrZIDEFqFlCH1WWLRO GNAp+24WqGT0DIep.UMBW2ssoe9TXtoE2uywPhqok+8qeQWpJt4UKR2ikdKv zT1BmphPm+TulcBh7c.C7OpvEzJBWvoEtf3J8a7fFnbSfzL2adWTvGkd4r4X zQUqvyQs.dwiiAiF9xkr.SwflnXJpeWNTxwK6PcqLGQK2Japmdc981G2tpU7 KL1RksOEaHh6O9V++lyx3vbmehIHQ+e7TBQIVN+wvn9+EboiRg5aTPUa4nTL ru6w06vSq2CqiPGendCKkrBVQIAJQVqgC1HvToYGvdW.KQ4h0A2SfDhNHS2m az+YBAlpXzdXLgfk6gVx2fo3MAK7tuHaKDiv3SfbgWANQZCKVnWpGogEyPHx gSSEbgUuKoR0IITKpsAEDaiyghYRjPZglhEpMGaH1JD2FYdZYxC60q4OnjMK noJVhDIVhxzxUqtKAySHHqkTFToKY1iOiiPTwBLmHrliYLNdEiZgQJm683zk apmyRQDwlprYVyrhWzaovmTqKRozZhXpY1lFEhmRlwj5.ZqdxgXaklm.sqiR OH3QTREHo0RWBIO3AwSmtEgCSd.XMNCTv9PSmhSrvlyHpz9aSgRnPmJsFuJX Q2y21ynOkUf3N2IP8wxWRNABNsSfgctQfZc6yfQfQuM9.VqXW19.FeoXCnVm uZC3pMfq1.9faCfvfoUWNbjW7nys.Lv2b2Ovu5fY+ldSV2nQRVVF4n2SEbJo 37Wx0uZZSVx5y.c9Uqu0+XNRxYpG9QWwOyqnG7BtZtIxwfpHfn22HfWpY4fn NOUAbwYVFzfOaV26VF744qlAF71XWF7o3qlEcoXWFb0s7U2xWcK28tkq5qqJ C9feOMSZotg8N.RvJ4IqytV+w3c.aepopHNLEJwL5t8RcamyNYvyvooHSG1b LSNNsfoxWqYRbXjWrZlCL2rGEss1+myulS6nlPasMlyi1.vtzNnkY83lP53y kygAVbNrskZa97LJM3bYcqvsflQtv2GxE1DxYbAcdraf+X8Vb.XmfTSk1Y+d eB8L7d3GXQczqTRCaYMcTSH8GYAED95Tz5K.ZwnzlQ6f2GMMpix7aE1E2IYP sytpe2DLd.4z.ph+Cti+rUB -----------end_max5_patcher-----------
you can try the "asyncread" message instead of read, or possibly better solution is to read all your files into separate jit.qt.movies at load time (possibly managing with a poly~ object), and switching between these different instances when you want to change the movie.
Thanks for the reply. I’ve actually tried asyncread but it seems to be unstable. I don’t really understand your second option, could you explain a little further?
|robtherich wrote on Tue, 02 June 2009 10:01|
|you can try the "asyncread" message instead of read, or possibly better solution is to read all your files into separate jit.qt.movies at load time (possibly managing with a poly~ object), and switching between these different instances when you want to change the movie.|
There is not a way to load files on the fly without a freeze. There are a variety of workarounds, all of which amount to loading all the files at once and switching between already loaded files. The various poly for movies solutions create an even bigger initial pause, as all the movies load. If you have a finite set of movies, then this sort of thing works. If you want to load whatever you want, whenever you want… you get the pause. You will find that the amount of pause can be reduced by fast-seeking hardware. So, if you had your movies on a solid-state drive, striped raid or held in ram, it might not be noticeable.
The only way to really get around it might be to pipe in video from something that can read movies without pausing. I haven’t figured that out. Seeing how Jitter freezes up on windows when you switch windows, it would make sense to have an interface for file loading in max/jitter, but then have your movie playback "engine" external. Again, I haven’t really got this figured out yet, since I’d need to send video out of the engine program into jitter at a high framerate.
I think this is a general OS problem – not just a jitter problem …
When I had to solve that for the Evolving Oblique project I put all the QT movies into a bigger QT container (QT is just a container format pretty much … the outer container only holds references to the movies – so it did not take up too much space .. ) and that in combination with decompressing buffers worked great – there was no more visible pause/gap …
I used a coll and the looppoint-feature of the jit.qt.movie to get to the different movie sequences …
worked quite well ….
hope that helps
i just found your post – struggling with the same problem of having a too long gap at loading the qt into jit.qt.movie.
Could you describe how you wrapped the single clips into a QT-Wrapper?
Forums > Jitter