Low fps / performance problem with multiple videos.
Hello!
I just discover Jitter. I'm currently experiencing a low fps problem with the chromakeyr / alphablendr (and, mostly with reading two or more HD video files at the same time through jit.movie). I tried to find/apply some solutions on the forum without success.
For my current project, I would need 3 to 5 videos running simultaneously, at least in 720p, ideally in 1080, with "basic" transition effects such as chromakeying, linked to audio detection.
I tried to run a 1080p Quicktime Photo-JPEG 75% 4sec 25fps loop video without any problem (~24-25fps).
But with a second video (same settings), I don't exceed 10fps (8 with 3 videos), and Max turns pretty laggy, when all the rest of my computer have no problem. (2 videos use aprox. 20% of my CPU).
I'm using Max7-32 on Win7Pro / Nvidia Quadro K3100M (4Gb) / 16Gb RAM DDR3L / Intel Core i7-4700MQ Processor, 2.4 GHz / RAID
Here is a screen of my patcher (attached to my post): http://puu.sh/nBbgD/4f7246173e.png
Do you have any clue about what's happening, or any advice for a better process?
Thank you!
for HD video performance you must abandon matrix processing (i.e. VIZZIE modules) and instead process using the GPU. this means enabling @output_texture on your jit.movie objects, and using jit.gl.slab/jit.gl.pix for processing and mixing.
check out the brand new Videos & Graphics tutorials released with the 7.2 release for a more in depth explanation (found under Help->Reference->Documentation Home, links on the bottom of the left grey ‘Contents’ sidebar). Video and Graphics tutorials 1, 9 and 10, and the GL Texture Output guide are all relevant to this.
you should also check out the VIDDLL package, installable via the Max Package Manager, which provides an alternate video engine backend to use with jit.movie.
Thank you Rob for this well described answer!
I'll test it as soon as possible.
Hmmm after a few try, it appears that the jit.movie @output_texture and jit.gl.pix use the same amount of GPU/CPU than a classic jit.movie/window.
When I activate the jit.world into the #9 tutorial patcher, my GPU/CPU react like this: http://puu.sh/nIhN2/5ecf10510f.png
GPU: ~30%
CPU: ~15 to 45%
The video seems "ok" just with a basic xfade or chromakey, but when I add a third video file, or ask a Rate of 2/3/-1/-2, from the jit.movie, the CPU turns mad ~80 to ~99%, exactly as the basic jit.movie.
Same result with VDDLL.
Any clue? :/
Thank you
I had an almost similar issue to Rodolphe, getting low performance trying to blend 2 videos using VIZZIE for effects. Just wanted to say that after I tested what Ramirez proposed (and doing some research on how OpenGL works in the Max Jitter tutorials 30 and 31), the FPS in my patch jumped from grainy and slow to clean 60! Wohoo! Thanks, Ramirez!