Best practices for retrieving a specific frames across A LOT of videos realtime?
Imagine 40 footages.
I’m looking for way for flashing very fast frame randomly across all these footages.
I mean: footage 1 frame 553, then footage 34 frame 33 etc etc
[jit.playlist] seems the most natural way for doing this.
But this is also a UI object and I don’t need the UI.
So I’m requesting you about your own experience.
Basically jit.playlist vs poly~ w/ jit.movie inside and dynamic loading of (let’s say) 16 movies at a time to all my poly~ voices.
This isn’t really an answer to your question, but did you consider concatenating all your movie files into one longer movie and randomly choosing a frame from that?
Hi Christopher, actually, it really makes sense.
I’m "afraid" of have a VERY HUGE HEAVY 4K file.
actually, if I have 100 movies, I could probably do something dynamic like 10 movies concatenated in order to have "only" 10 [jit.movie]. of course, I couldn’t play at the same time elements within a concatenation but only from a concatenation to another.
That’s a nice idea.
Afraid of having huge amount of RAM used.
A few thoughts:
1) Depending on how fast the frames will be displayed, and what your actual aesthetic goals are, you might ask yourself whether you really need to be able to access every frame of all of those 100 movies to achieve the effect you want. Will the viewer really be able to distinguish between that and random frames from 1/10 as much initial footage (1/10 as many movies or the same number of movies but with a greatly reduced fps)?
2) You don’t have to load your movie(s) into RAM with loadram. Seeking a frame on disk is still pretty fast.
3) If you’re worried about the seek time, you can seek the next frame immediately after you show the current frame, instead of seeking the next frame at exactly the moment you want to display it. That gives the computer a lot of time to find and load the next frame. Here’s an example of what I mean.
----------begin_max5_patcher---------- 1001.3ocwXsrbiiBEcs8WAkqYoGWBPubuJqleholxExh3PFIga.43Tc0+6CO jhs6VJB4QVIKDgqvv8b3v8xU+X4hUY7yT4Jv2.+MXwherbwBqIigEM8Wrpjb deAQZG1pJ5a7rWWs18JE8rxZNCfZsIUuWPsFasbjn1+Bq5vNAcuxsXnn3MAq Aoolm3HySDZS.3eZ9I7ZUAUod+H0M9UYjpCqV2z9wvX41ER6Q+IJtc4ppKYU 5es0ggWL5lSqUjw3OWtz7XsmHujJkjCzeC5OKHkTve.GE92ZgOL1h+nzgwe2 XF1IlQchY3cf4d1sEjpbd48.XrsIBNLfYUpNwLL8qAyY.7n.LFcQfCCSFoB+ yT5vjQnzwSGCHoEfwoxwN8MNHz1D6OIzMviGwVOZ5.dc0Qx9+EHArQp.Br.N wpDh8PBXPdu5d7WT7sCTkMD2dds10FUPdGxahxklbmQ4fnunnb5okBDTRN3N IfVEPnsAlr0OIP+G.B5jIvS1I+mK35IocQNQDUZb63n5xLpn8MOyEkDKHiGC eDG5nCqbHvOxn2vfa+zyCGIlsLEUriVQxbtVOmUZQ.4DMeGQoDrL8F+k+S1P XMLlgWJpo7maM2Z+5EUyiG5l6tYXxW3BkGiqkSvc7NVESwHE+NN6ZTM5R7Fr 8uVd8WF5Ilj0NWt2a0QsMSywquqWMA+NxoF48cH5U6j7finn3GNTPuCrgBu8 43ueT7nOVDLYvtuTHlXniKyAJdSzGYN7o9fN4hvulDGuxTaJ4mXTvSjZEWpH BEH.7zIdAHXT7.L1EkLH06DH5EemN1rfct2zHnG7MI9DZ4MtnHG7WFQ3tr22 Y+GvSuwz0S71QtTGihWoSSDXRc1NAErplbuWGsdLmobrmiKMhIOx3zaJ367t 214xBkeobaqaareKgJ40h8sdUylF3himSkJVEwPWWMF3Mi4EVdNs55S3kr7i bcfCYq5Zq4TFBmZZBgez4xxvjlnDV3GzoRvW22b28A8eT73..NIw3yXW.hHj Mkvs8ZtlQbjYflNO.rg7Aal5VGC1ZbYHzt4.Ctz6Qg.3PH.M.BlP0RfO9S5M CZPFMLvI2cUkDEDeU0YM8fHWnBrUWY68HNKj3K5lI113OngNaNuty+2PcSm6 3k2jLatCB5SfzQlHnI5xVWrFWZAauGg5O0G.Le6ulOrxvmFim2XeCJ3vymfy G5IX9nGzzq+Qov4S+u0C+OYfLaSm2D6o2LOatgOf8V2mc9d1ac2Ymb73IpP1 3DVWWWtyqbgoaxZaWVkqq86ynK207ATbi2YgHzklnz0kTKbEsbN1Ua5pRdNU TUyZJAUux+b4+AfsxIwH -----------end_max5_patcher-----------
I totally got it.
Aesthetically, I didn’t describe it enough. Being able to indeed seek frame in advance can be very enough and actually, seeking a frame on SSD will be indeed totally ok, you are totally right.
(Actually, if you even knew how fast I will display that, you’d have a better idea of the fact my project is audiovisual and digital art genre sorted but especially a kind of new dadaist poetry epileptically speaking —> crazy)
I like the idea of having concatenated movies too.
Even dynamic loading (I play with a subset of my whole set of movies, then I progressively "load" others into jit.movie, progressively switching to another set etc) could be ok.
Thanks again Christopher.
Hope to be able to set up a prototype asap.
if you have enough memory, your best bet for random frame access is using the loadram feature of the viddll engine, with a large enough cache_size.
Actually, I’ll test that too.
BUT, I was thinking more using HAP so it means hap engine and no viddll
Basically, I’m hesitating between both methods (when my system will be more operational, I’ll test both):
viddll w/loadram VS HAP
I’m aiming at 4K video. Don’t know which method would be the less CPU consuming etc.
Forums > Jitter