Jit.Movie pausing at end of loop on Windows
I'm having an issue with jit.movie on Windows where looped movie clips stop about 10 frames from the end, pause for about 1/2 second, and then start from the beginning again.
The same clips loop smoothly on a Mac.
For testing I'm just using the jit.movie.maxhelp example file and using this loop (https://vimeo.com/200396351 • the HD1080p version)
I'm on Windows 10. i7-5820K, 16GB Ram, Gigabyte Geforce GTX 960 4GB (Nvidia)
Max 7.3.4.
Overdrive is turned off.
I'm using the Viddll engine in preferences.
I've tried loading into Ram and the clip still pauses at the end, skipping last frames.
Any ideas? Thanks!
Hi
What codec are the videos encoded in?
The movie clip is an mp4, I assume h264, although the codec doesn't show up when I looked at properties in VLC and Premiere.
I used Adobe Media Encoder to re-encode it in H264 and still had the pausing issue.
I tried re-encoding it as a Quicktime Mov, and that actually played smoothly but the file sizes were massive.
I read through this thread (https://cycling74.com/forums/best-video-codec-video-engine-on-windows-10-moving-from-max-6-to-max-7/), and Rob had recommended H264, but it's not working for me.
Is H264 still the best codec to use on Windows/Viddll for looping?
I was able to smoothly loop the original file using a metro/counter to bang out 1 frame at a time. Is that a good workaround? Any downsides to this?
Hi Jay, this is a known bug, i've already reported it. It seems this is a cache problem. If you go into palindrome mode and increase or decrease the cache size and run the palindrome 2 times the little stutter is gone.
just to confirm, are you using the factory viddll engine installed with 7.3.4, or have you updated to the latest viddll engine from the Package Manager (opening a jit.movie help patch will print the current version).
if you haven't updated, please give that a shot and let me know if the stall is still there.
I updated to Viddll 1.1.3 from Package Manager but it's still pausing at end of loop.
thanks for confirming. i'll see if there's anything to be done to improve this behavior, but your best workaround is probably re-encoding with a non-temporal codec (e.g. prores 422, photo-jpeg, animation, etc).
Unfortunately, I have a lot of clips so the increased file size of prores or animation would add up to a lot.
Is there a downside of using a qmetro to loop through frames instead? I got that working fine with the clip, but not sure if that could cause performance issues as my patch gets more complex?
I know this is a bit older thread, but thought I would add, I have noticed the same issue with HAP codec , it pauses at the end of the loop. Ran Apple Pro Res 444 and Animation Codec in the same patch, no issue!
Loop work fine with codecs without delta frames :))) ?
Want High quality and Low size and loop ?
Divx (H263) compression with custom coder codec tuning - "No delta frames" or "keyframe every frame" !
I see this is a rather old thread, but I am facing the same issue right now.
My patch uses video as input for a DMX lighting installation. I am trying to create an invisible transition between loop points, but the pause at the end of each loop makes it impossible to achieve this.
I use openshot to edit my video, and tried all possible codecs it offers. Also tried all codecs that VLC allowed me to convert to. Nothing has worked so far. Is there any free software that would allow me to export as Prores 444, or as Divx H263 without "delata frames or keyframes" like VITAL VJ suggests?
EDIT:
Ok, i found avanti (ffmpeg) and managed to convert to prores. Seems to work much better indeed. Still a black frame in between loops, but at least it doesn't pause for a few seconds. Black frame is short enough to not affect my results noticeably.
Has this issue been resolved?
I'm also having issue with video not looping smoothly, at end of each loop there's a slight but noticeable jerk, for example playing MP4 h264 videos, using jit.movie~ . This happens on both Mac and PC. As Rob mentioned earlier, playing Pjpeg MOV videos seems to loop fine, however today a lot of videos are compressed into H264 where this performance issue should be resolved.
Running latest Max 8.0.6 & VIDDLL 1.2.1.
{
"version" : "Version 8.0.6 (c36dce5) (64-bit mac)",
"platform" : "mac",
"arch" : "x64",
"osversion" : "Mac OS X Version 10.14.3 (Build 18D42) x86_64",
"samplerate" : 44100,
"iovs" : 512,
"sigvs" : 64,
"scheduler_in_audio_interrupt" : "off",
"audio_drivername" : "Core Audio",
"audio_driver_subname" : "",
"license" : "expired subscription",
"machine_id" : "1ff90a5142a0459a9e5a98be4e9f848b",
"eventinterval" : 2,
"schedinterval" : 1.0,
"overdrive" : "off",
"pollthrottle" : 40,
"queuethrottle" : 100,
"sysqelemthrottle" : 1000,
"refreshrate" : 33.333332061767578,
"schedslop" : 25.0,
"eventprobing" : 1,
"mixerparallel" : "off",
"mixercrossfade" : 0,
"mixerlatency" : 30.0,
"mixerramptime" : 10.0,
"videoengine" : "avf",
"glengine" : "gl2",
"packages" : {
"BEAP" : "1.0.2",
"hap" : "1.0.5",
"max-mxj" : "7.2.5",
"max_geturlcontent-master" : "",
"Mira" : "1.2.1",
"Node For Max" : "1.2.3",
"Syphon" : "1.0.3",
"VIDDLL" : "1.2.1",
"Video and Graphics" : "7.2.0",
"Vizzie" : "2.0.3"
}
}
As I wrote in my last post, I was able to get better results after converting to prores with avanti. But the black frame between loops did not get completely resolved.
I used my own gen patch to interpolate between frames (sort of motion blur), with the purpose of smoothening out sudden movements in my video. But I guess that also helped in hiding the gap between loops. So in the end it wasn't an issue for me anymore.
You might be able to device a work around in a similar way, if you apply the interpolation only at moment of loop. Its not a great solution, but at least it covers up your video going dark for a second. Will only work to some extent of course, can't cover up too long a pause.
I can post my genpatch later if you think it useful.
[edit: there seems to be weird issues with typing posts on my phone. Text appearing/disappearing seemingly random. Wrote this in another app then copy pasted here, otherwise unworkable... Anyone else facing issues with that?]