Forums > Jitter


Feb 27 2013 | 4:58 pm

Hey- did anyone else hear about Hap?

Looks like an amazing hardware-accellerated codec. What are the chances of getting it in Jitter? Or, since it’s in GL-Land, at least in an external like jit.bc.qtkit?

Could be a great way to accelerate video in Jitter!

: j

Feb 28 2013 | 2:40 am

I agree. This would make a great addition to Jitter!

Feb 28 2013 | 8:10 pm


Mar 01 2013 | 4:48 pm

Heads up to developers of Max!
"You can then play the videos in any app – even those that lack Hap support. But you’ll need updated versions of your VJ apps to support the codec. For now, that means only VDMX is working, but that promises to change if people do like the codec. (I’d love to see creative coding apps, too, like Processing, OpenFrameworks, Cinder, and the like.)"

Mar 01 2013 | 4:49 pm

"5 Layers of 1080p encoded in Hap playing in VDMX on 2.6 GHz Intel Core i7 Retina MacBook Pro."

Mar 01 2013 | 5:28 pm

For folks using Jitter, I think the ‘Hap Alpha’ version would be particularly useful.

Unfortunately I know it would stick a sore spot in c74’s current move to 64-bit which I’ve read is hampered by QuickTime, so I thought I’d mention that we’re hoping to have Hap working with AVFoundation as soon as Apple makes this possible for 3rd party developers.

Also of note, Millumin released an update today adding native support too:

– Dave @ VV

Mar 14 2013 | 11:45 pm

hey folks.
i’ve got an open-source jitter external that provides native HAP support ready to go!

32 bit mac 10.6+, and Max 6.1+ only.

please give it a go, and let me know if you run into any problems.

with my limited testing so far, i can say the performance is pretty amazing.
many thanks to Tom, David and the Vidvox team.

the source is up on github, so feel free to make modifications / improvements (once the 6.1 sdk is released).

Mar 16 2013 | 10:09 am

Great to see a hap implementation for jitter!
I played around with the help-file and it seems to work fine for straight playback of HD files.
I noticed that palindrome loop mode doesn´t work well when using hapq, at least on my setup (it works fine when using hap).

A bigger problem for me is that I don´t seem to be able to connect a to the output of The output just turns black, and even after removing the there is still no output. I need to reopen the helpfile to get it working again.


Mar 16 2013 | 11:21 am

Sweet! Will try to find some time to give it a test drive in between gigs.

Mar 16 2013 | 4:43 pm

hi hc. thanks for the report regarding slabs. TBH, I haven’t tried that yet.
I’m not at my computer, but I suspect the problem is that gl.hap, when playing back HAP files, outputs Texture2Ds. but the default gl.slab shaders are all written to work with Texture2DRects, and the output textures have @rect enabled by default.

in this case, might be the better option for processing gl.hap output.

I’ll take a look and confirm this when I get a chance.

Mar 16 2013 | 5:20 pm

In the meantime, you could try inserting an instance of after for one extra texture copy.

There maybe other issues, however.

Mar 16 2013 | 7:29 pm

Thanks for this object… it seems to be the right way to have a good codec and avoid using jitter matrix.

i need to insert too.
Insert or doesn’t work for me…
Thanks again

Mar 16 2013 | 11:22 pm

thanks for the report guys.
turns out i was completely wrong with my initial diagnosis. no surprise there :)

i’ve fixed the problem and updated the Toolbox download link.
please give a look and lemmeknow if that doesn’t fix things for you.

Mar 17 2013 | 8:47 am

Hi Rob,
thanks for the quick update.
My initial tests are successful with slabs, will test more extensively later.


Mar 17 2013 | 10:03 am

I have just tried this and it gives amazing results. Thanks! Doing some extensive testing today with the different HAP codec’s as well.
But Is it difficult to make a Max 6.0.8 compatible version as well? Or is it depending on something in Max 6.1 which is not in the 6.0.8 version?

I have been struggling with not being able to play back a lot of High res video at the same time, this is really the solution, but since I am really depending on the Jamoma framework (currently not compatible with Max 6.1) I was wondering if making a Max 6.0.8 version would be possible?

Mar 17 2013 | 7:17 pm

first test is successful.


Mar 17 2013 | 9:23 pm

Fantastic, thanks :D

Will this be making it’s way in officially with the next release? Also, it didn’t work until I installed the QT component from here: Is that correct? If so, might be worth linking to it in the instructions :)

Mar 17 2013 | 10:36 pm

hello rob,

thank you very much for porting hap to jitter !
this is the biggest improvments for me since years :-)
the performance is really great !

i have one little feature request.
it would be great, if the outcomming texture is not flipped, if you load an non hap encoded movie.
i know, that i can flip the texture afterwards.
but if i have a setup with mixed encoded movies, i dont know if a movie is hap encoded or not.
or can i detect, if the movie is hap encoded or not ?

all the best,

Mar 18 2013 | 5:08 pm

@ricardo 6.1.1 will be out shortly, which should address the Jamoma issues.

Mar 18 2013 | 5:58 pm

@DiGiTaLFX – thanks for the note, i’ve updated the toolbox page to include that link.

@kugelschreiber – in my testing i found that most non-hap qt movies required the texture flip to display properly, only a few did not.
unfortunately i was unable to determine why some did and some didn’t.
so i made it default behavior based on that.

if anyone has more info about the texture flipping inconsistency, i’d love to hear it.

Mar 19 2013 | 8:41 am

@Joshua Really? That is great news. Thanks for the heads up.
@Rob, I have tested with the three different HAP codecs and i’m getting great results. Thank you for sharing this tool!

Mar 19 2013 | 11:39 am

@Rob, will you make it available for 64bit too? Or is it not possible at the moment because of open 64bit jitter/QT issues?

Mar 19 2013 | 1:14 pm

I’m hearing Resolume is following suit and open-sourcing its similar DXV codec. Didn’t find that news online yet though.

Mar 19 2013 | 8:39 pm

@Funk Eater – 32 bit only, for the time being as it’s relies on some Quicktime api calls that aren’t available in 64 bit.
if and when, as david mentions above, apple provides a workaround, the object will be updated.

however supporting max 6.0.* is very simple, so if anyone still needs a version to run on pre 6.1, let me know.

Mar 20 2013 | 9:02 am

I would be glad to use it on 6.0.8 ! still relying on some third parties libraries, so i’m not using 6.1 right now.

Mar 20 2013 | 9:04 am

Second that!

Mar 20 2013 | 10:18 am

and i forgot ‘thanks for your work’ :)

Mar 20 2013 | 11:58 am

Is it possible to have it for Windows 7 ?

Mar 20 2013 | 4:38 pm

@benoit Unfortunately, there is no support for QT to provide OpenGL textures under windows, or many of the other infrastructure that this object relies upon.

Mar 20 2013 | 5:46 pm

ok i’ve uploaded a version here that’s compatible with 6.0.8

but please note, as of 6.1.1, you *should* be able to use 3rd party externals with 32 bit max with no problem.

Mar 20 2013 | 7:34 pm


Mar 20 2013 | 7:36 pm

Agreed =)

Mar 20 2013 | 8:45 pm

Any solution for smooth fullHD playback on windows would be great. Maybe dxv from resolume could be a good first step for a solutiom? I had very good experiences with the dxv codec in resolume on windows…

Mar 21 2013 | 3:21 am

Super helpful to the 6.0.8 version. Thanks so much!

Mar 21 2013 | 2:50 pm

I’ve problem with the loop ‘looppoints’ message.
It’s like the looppoints is not reset when you read a new movie file…

I need to use looppoints with pattrstorage.


  1. hapvsmovie.maxpat
Mar 22 2013 | 10:29 am

Here is a more simple patch to show the looppoints problem….
Hope i’m clear………


-- Pasted Max Patch, click to expand. --

Mar 22 2013 | 3:48 pm

Is there a way to send a to multiple GL rendering destinations?

Mar 22 2013 | 5:13 pm

The standard method would be to send it into a texture and use @shared 1 on your windows/contexts

Mar 24 2013 | 10:59 am

It could be a good way to support libav and cineform codecs as in Derivative TouchDesigner?
Libav reads any kind of video (as VLC), Cineform allows to play 4k video in TouchDesigner.


Mar 25 2013 | 12:08 pm

Excuse me for insisting, but I need to use the messages ‘looppoints’.
Without initialization of these variables when you open a new file, this ‘hap’ object remains unusable for me …
Does anyone have an idea to fix it?

thanks again

-- Pasted Max Patch, click to expand. --

Mar 25 2013 | 7:27 pm

With a patch I’m working on it goes from 10-15fps to 30-35 !

Thank you VDMX team and Tom Butterworth !

Now I’m even surprised it didn’t happen before…

And also a big thank to Rob Ramirez for the jitter support.
It would have been really frustrating to know it exists and not be able to use it ;)

Something like this ?

— Pasted Max Patch, click to expand. —
Mar 25 2013 | 8:00 pm

Yes, of course, but if you want to use pattr to store the looppoints, it’s a little bit more complex (prority between messages….).
the good way will be that the hap object reset the looppoints when call a new file…. as does….

Mar 28 2013 | 1:52 am

hi francois.
yeah i see that’s a discrepancy with
however, it’s easy enough to work around with the "clear_looppoints" message, triggered on the movie read notification.
i’ll make sure that get’s fixed for a future update.

Mar 28 2013 | 11:37 am

Hi Rob,
thank you, i try it ….

i’ve found an other strange behavior ;
Order (priority ?) of the output messages is changing according to the position of objects connected.

-- Pasted Max Patch, click to expand. --

Thanks again

Mar 28 2013 | 3:06 pm

yeah, i think i defer the read notification to the low priority queue, and maybe that’s causing the print to display the order strangely.
doesn’t really seem like a problem with the functionality however.

Apr 08 2013 | 10:07 am

Thanks Rob,
The "clear_looppoints" message work fine for me !
So, i’m hap_py…

-- Pasted Max Patch, click to expand. --

Apr 21 2013 | 10:25 pm

[jit.hap] is incredible… This is at least something, that can push video in jitter into cutting-edge standards. I’m just encoded and played some video in 5000×1000 pixels resolution and my radiator in my MBP even didn’t start…

I’m curiose about 64bit version… anyway: it’s great.

May 04 2013 | 3:30 pm

I see now that Derivative touch designer lists support Hap.
See product list: or Derivatives site.
Since Touch is windows only seems they may have ported the codec to windows?
Would love someone to release a windows version opensource same as the mac version.

May 04 2013 | 3:55 pm

dusx: the max object supports windows now:

May 04 2013 | 5:42 pm

Is it possible to output quicktime using the codec on windows ye?

May 04 2013 | 9:43 pm

the hap windows codec is still in beta. I’ll announce here as soon as the public release is available.

May 08 2013 | 12:13 pm

I was wondering if it would be possible to add the loadram function in the I have noticed that when i start several movies at once, it freezes for a moment before resuming the playback.

May 08 2013 | 12:25 pm

And… maybe.. @soc parameter for… please… please… please…

Jun 04 2013 | 7:58 am

is hap codec available for window? or will it be?


Jun 04 2013 | 9:07 am

Actually (or just an idea of unpack-to-texture) is something I can imagine as regular part of jitter, much more up to date than existing solution.

Jun 05 2013 | 12:00 pm

hello! I have 2 small HD video playing in my patch with hap and they freeze when they have to loop. I’m using the frame message for sync them. Any ideas how to avoid the freezing?

I tried to load the same video in the help file of the and it is doing the same. I notice this happen only when I am using counter -> prepend frame attached to the


thanks in advance

Jun 05 2013 | 12:05 pm

here is the patch edited from the help file



— Pasted Max Patch, click to expand. —



Jun 06 2013 | 3:02 am

Hi Martina

I’m not sure, about details of your project, but I’m using multiple [] objects in one of my project with no issues. For looping try @loop 1 (or @loop 2) parameter for [].

Jun 06 2013 | 3:48 am

Hi Yaniki. First of all thanks for the reply! But unfortunatly loop 1 (or 2) is not possible for my project.

The project part where hap is involved needs the two movie to be sync toghether. So that is why I’m using the counter for playing the frame of the video loaded in the hap object, banging the frames.

Everything is fine except for the ending, mean that when the hap has to start again the movie (let’s say from frame 1200 to frame 1) it freeze and then it goes again. In the patch i posted i have this issue, also tested in different mac os 10.6 (mac book pro 17 " e 13 ") and on mac os 10.7 (mac mini ) as well. 

I wonder if I am doing something hap don’t support, if anybody else have the same issue with the patch i posted (loading small hd video 1280 x 720) and if somebody have a solution how to avoid this freezing while using the play of the video controlled by the FRAMES (so not with loop 1 parameter)


Thanks again

Jun 06 2013 | 4:52 am


I played a bit with patch you posted… strange, but, seems to be ok on my computer (MacBook Pro, OSX 10.8.4, Max 6.1.2) – looping is ok, no freezes when video reaches end.

But, maybe a workaround this: if you have to sync 2 videos (with the same length) you can compose both videos into single one (eg. one on the left, second on the right side) and play this video from single player (let’s say from []). And you can use two [] objects textured by the same image, but with different tex_offset_x/y, tex_scale_x/y attributes to show different part of the texture.

Jun 06 2013 | 9:29 am

Thanks for the reply, I’ll try to test it in a 10.8.4 system and see. The workaround you suggest would be amazing, but unfortunatly the company wants to sync 6 videos (each computer will have 2 monitors attached to it)… But really, thanks to let me know on 10.8 works with no problem… I wonder why thou! I’ll let you know if i’ll still have this freeze on 10.8 too



Jun 06 2013 | 9:36 am

ok I juts tested in a 10.8.4 system and it still freeze when have to go back to the first frame… just to be sure, did you tested with a 1280×720 video exported with hap codec? In fullscreen?

Jun 06 2013 | 10:32 am

hi martina.
make sure that the movie is not playing when you give the frame message.
meaning, @autostart 0, and you don’t ever send the start message, you control all playback with the frame message.

are you able to playback from an SSD drive?

another suggestion is to have two copies of the same movie, and when copy A reaches the end, switch to copy B.

Jun 06 2013 | 11:03 am

oh god sorry for this… I was so into the programming i forgot the basic of @autostart 0! Thanks a lot Rob!!!!

Jun 07 2013 | 9:09 pm


I am working on an installation that will use multiple video screens. I am playing around with the HAP codec as it seems really good. The problem I am having is getting multiple hap moves playing, and or, displaying the same HAP movie on multiple screens. It seems that what screen is made first, will work, and the others just display white. I can’t even switch the destination of the video to different screens.

Not sure if any one else has had this problem?

-- Pasted Max Patch, click to expand. --



Max 6.1.2 OSX 10.8.3 2.2Ghz Intel Core i7 on MacBook Pro.

Jun 08 2013 | 1:23 am

Try "@shared 1" attribute for booth windows.

Jun 08 2013 | 9:54 am

Kudos to all who have contributed to this libraries. I just made a quick test with my "monster" – size video I have for serious performancetests, (2048 x 3488 px), and it runs with solid 60fps on my 4.5 year old macbook pro. (I have an SSD).

I am impressed.

Thanks a lot.

PS. This obviously means I have to "sizeup" my performance test video :-)

Jun 08 2013 | 3:53 pm

Hi Yaniki,
Thank you so much, works perfectly.
These libraries are great.

Jul 08 2013 | 4:22 am

I wonder if it is a human constant to always have to go as fast as possible …
So I want to go on the fast lane too. But there are some involuntary stops in the playback of the movie.

can we come back to the [loadram] message subject?
this procedure is asked for above but seems to be still not available.
could this be implanted?

there are some ‘hangs’ occurring every 2/3 seconds when you trigger the movie in very short intervals (200ms). is [loadram] a solution for that behavior? or is it more due to the [qmetro] flow, that is to be low hierarchy? and then what would be the antidode for that?

Jul 08 2013 | 5:24 am

+ 1
for loadram

Jul 08 2013 | 9:27 am

not sure how difficult a loadram implementation will be, or how helpful, but i’ll put it on my list.

for anything other than straight playback from start to finish, or simple looping, your best bet is to leave playback stopped, and control frames with the frame or time message, and your own timing mechanism.

Jul 08 2013 | 10:53 am

good to hear, Rob, I really appreciate your work and your input here.
very instructive.

is there another way to trigger [] with a ‘high priority’ [bang]?
when I go to openGL coming from a [], RAM loaded, that is banged with a normal [metro] everything is accurate.

Oct 26 2013 | 3:42 am

Hello i’m one of the adventurous/suicide MAX users that has installed mac os 10.9
i actually have no problems with max itself but i do encountered a problem with
the object is working fine when loading non HAP movie files but, crashing MAX when trying to load HAP compressed files
i work on a 13" macbook pro 2010

Oct 27 2013 | 6:17 am

same here.

Oct 27 2013 | 7:30 am

It seems to me that it has something to do with the hap codec and not the object.
I cannot playback hap files in quicktime either.

Can you confirm this?

Oct 27 2013 | 9:56 am

Same here.
I try installing the last vdmx update, which has a hap update
but it didn’t work. Max doesn’t crash, but the video is not playing….

Oct 27 2013 | 9:57 am

I forgot: quick time can play Hap files, so it might be something with

Oct 27 2013 | 12:36 pm

Update with this dmg.
Should work.

Works for me.

Oct 27 2013 | 12:45 pm

Not super stable though….. seems that it might be something with as well.

Oct 27 2013 | 1:03 pm

OK, I have done some more testing, and with the new hap installer everything is working ok for me

Oct 28 2013 | 6:35 am

Thank you Ricardo for that test. It solve the crash problem. But I have now the same issue that I previously had: With HAP files, no images are displayed, only sound. The framecount is also not running. Though, other codec are playing perfectly and it plays well with QT or VDMX.

I’m testing it simply with the help file.

The only solution that I found previously was to replace the HAP.component with the older one (March 17th), but unfortunately it crash while running on OS 10.9…

If somebody could help me, it would be wonderful because it’s quite urgent…

Tested on MacBookPro Retina 10.8.2 // Max 6.1.4
Also with an already compiled app (with my retina) on MacbookAir and Mac mini… same problem…



Oct 30 2013 | 10:54 pm


Oct 31 2013 | 8:50 am

I can confirm the issue described by Simon. Maverics + Max 6.1.4 + Hap = no image.

Oct 31 2013 | 11:31 am

thanks for the reports everyone.
just a heads up, it will be some time before i update to 10.9 and can investigate this.
so in the meantime, it seems advisable to stick with 10.8.

of course the code is on github, if anyone else cares to take a look…

Oct 31 2013 | 5:12 pm

Anyway, I just finished my 2nd project based on HAP (both codec and external) and I’m still impressed with how well it works.Both stability and performance are great. I think that HAP is currently the best way to work with video in Max. I would be delighted if – some already outdated and inefficient – took a bit of youthful energy from…

> of course the code is on github, if anyone else cares to take a look…

Actually, maybe I should dust off my coding skills in C… ;-)

Nov 01 2013 | 4:24 am

Hmmmmm, I used this installer and now everything works perfect.

Nov 01 2013 | 4:26 am

I have cloned the hap project from git hub. Dont know if that makes a difference in some way, but I have an image.

Nov 01 2013 | 12:15 pm

After Ricardo’s posts I reinstalled codec ( again and now is working.

Nov 05 2013 | 5:38 pm


First of all thank you for the wonderful work, Ricardo!

I am on OSX 10.9 with Max 6.1.3. I just wnted to say that I have problems playing hap encoded files. Actually nothing is being played. Even after I installed Hap_Codec_2.dmg.

With a ProRes file, it works just fine. Better than with But after a few minutes playing the same movie, it starts to freeze (1 frame per 5 to 15 seconds). Any ideas why? Anyone else experience this?

Thank you all for any input!

Nov 05 2013 | 5:46 pm

PS: QuickTime tries to convert the hap movie if I try to play it with it. And does not want to play the original. So I am guessing I still have problems with the codec. Any ideas what I should do?

Nov 06 2013 | 2:39 am

Hi guys, works now properly (sound and image) on my Mac (10.8) with the new HAP_codec_2 since I removed :
– all HAP.component file (one was hidden in HD>System>Library>Quicktime)
– all (i had one in Max 6.0 search path – yes I still have Max 6.0 and Max 6.1 on the same machine)

And then I download and install them properly from here:

I guess that should work on OS 10.9 since Max 6.1.5 has been released.

Hope this helps.


Nov 19 2013 | 1:33 pm

I have no luck getting hap to work in max 6.1.5 on Mavericks. It works fine in quicktime 7 and vdmx so I suspect it is the object which is the problem.
Has anybody managed to compile it for mavericks? Xcode crashes when I try to open the project..

Nov 20 2013 | 1:39 am

so I finally got this to work by replacing the from the one on the github page. Thanks Ricardo for helping me out offlist.

Dec 01 2013 | 3:15 am

Hi, I’m a beginner of Max in Japan.

I want to use hap codec on Mavericks, but now I can’t.
I found Quicktime on Mavericks has no support for third-party codecs so I installed Quicktime 7.6.6.
Hap runs on it, but I don’t know how use it on Max instead of QuickTime10.3

I hope anyone help me!

Dec 01 2013 | 10:02 am

Just a quick question. Can anyone else confirm that the "loopreport" and the "framereport" functions does not work?

When enabling "loopreport" I do not receive any notification that a loop has ended.

Ticking the "framereport" gives me only a "framereport 0" syntax.

Dec 01 2013 | 10:59 am

Hi Ricardo,
I can confirm this. Nothing happens when loopreport is on, and I get the framereport 0 message when enabling framereport.

Dec 02 2013 | 4:46 pm

thanks for bringing this to my attention.
it’s a simple fix, and i’ll post back here when i get it fixed up.

Dec 03 2013 | 3:29 pm

hey guys, i’ve updated the toolbox link with a new package that fixes the loopnotify issues, and adds loadram functionality.


Dec 03 2013 | 10:42 pm


Thanks Rob. This is a great implementation. Thank you so much for doing this :)
Merry x-mas.

Dec 04 2013 | 6:20 am

Great! Thank you Rob!

Is it 32 or 32/64bit compilation?

Dec 04 2013 | 10:38 am

32 only for the time being

Mar 09 2014 | 7:53 pm


I was wondering, if it is possible to render the output of the object to a grid shape object?
I tried to use the objects name but that doesn’t seem to be working…
I also tried to put a object in between so I could could get a texture name to my grid shape object.
This seems to work, but if I have multiple objects set up in this order my patch crashes.
Also it starts to mixup all the texture objects when going to an from fullscreen mode for the window object.

Grtz Eric

Mar 09 2014 | 8:05 pm

I also receive this error : draw texture to FBO: GL Error: Invalid operation submit texture: GL Error: Invalid opertion error binding texture to target: GL Error: Invalid operation

Mar 10 2014 | 10:46 am

you can send the output of gl.hap directly to a gl.gridshape.

the fullscreen issue was hopefully resolved in the latest update.
please update, and if you’re still having issues, please post your patch and steps to reproduce.

Mar 10 2014 | 11:58 am

ha thnx Rob, so the latest package is not the latest version?
And what would you advice on a jit.multiple object? Because I want to use the texture array for reading out multiple textures.
Is this already possible?

Mar 10 2014 | 2:14 pm

if you open up the help file, it should say version 1.0.2 in the max window.
the toolbox page links to the latest version.

you’re going to have to be more specific with your question. do you mean
you can query the texture-output name with "getout_name", and use that to set the texture array attribute to

-- Pasted Max Patch, click to expand. --


Mar 13 2014 | 2:04 pm

Thanks for the little patch directly above Rob. It will function as a work-around for my inability to change the texture name with the "out_name" attribute. When I put an "@out_name texture_name" the max window says "‘out_name’ is not a valid attribute argument." Am I formatting the argument wrong?

Mar 13 2014 | 2:13 pm

nope, this is just an oversight on my part.
i’ll ticket it.

Apr 18 2014 | 7:19 am

Any idea when the out_name attribute argument is going to be fixed?

May 10 2014 | 6:24 am

Hello All,

I have experienced that If you have playback from several object and change a movie on one of them, then there is a little glitch/stop/pause in the playback of all movies. This gets worse if you have lager files.

I’m pretty sure that this was not the case before. Then you could load a movie without having a "glitch" in playback.

Is it my machine or can anyone else confirm this problem?

May 10 2014 | 6:25 am

And the test patch:

-- Pasted Max Patch, click to expand. --

May 10 2014 | 1:48 pm

I can comfirm the problem with non-HAP movie, like in the example patch. But it doesn’t happen with movies encoded in HAP.

May 10 2014 | 10:55 pm

Hmmmm, I get it on both. What is the Hap encoding you have used? resolution and hap codec?

May 10 2014 | 10:57 pm

These are my settings. Using the regular "hap-codec". Not Hap-alpha or hap-q.

  1. Screen-Shot-2014-05-11-at-07.56.42


May 10 2014 | 11:53 pm

Ok, I have tested some more.

I have used the following hap settings:

Codec: Hap
fps: 25
Quality: Medium
Frame size: 1920×1080
Pixel aspect Ratio: Square 1,000

My computer is:
Macbook Pro Retina
2,8 GHz Intel Core i7
16 Gig RAM
OSX: 10.9.2

Max Version:

the hap object is cloned from github:

Hap codec was installed using this installer:

What I am seeing is that If I set the loop mode to palindrome, there is a "stop" in playback. If I load the entire movie into RAM, then this "stop" is gone.

If I change a movie in one of my hap player, the playback on all hap players displays a "stop".

Could anyone else confirm this?

I am suspecting that, since YOANN is not having this issues that it might be my computer, however, it would be nice to have others confirm that they have no issues with playback. Especially when using the palindrome loop mode.

Thanks for the input Yoann.

May 21 2014 | 11:24 pm

Hey guys,
I’made this example patch to illustrate the issue with the glitchy playback. It occurs when you change a video file (all movie playback of all stops) and when you use palindrome. See the post before this one to see details.

No one else is experiencing this issue?

-- Pasted Max Patch, click to expand. --

May 21 2014 | 11:35 pm

Uploaded a video of the issue to youtube. Sorry for the cheesy text. I had no time to find another.

Palindrome issue:

Change of file issue:

May 28 2014 | 5:49 am

The hap codec is now available on Windows :

I’ve made a quick test (with hap sample videos), it seems to work fine with

Thanks to HAP developers, I’ve been waiting for this port for a long time!


May 28 2014 | 6:00 am


I’m waiting for 64 bit version now ;-)

  • This reply was modified 1 year by  yaniki.

May 28 2014 | 7:01 am

On windows, a 64 bit version is not likely to happen, because quicktime is only in 32 bits (on windows) and hap uses quicktime :-(

May 28 2014 | 7:25 am

I’m "on" mac… mostly. But 64bit QT (or an "aferQT") should be – sooner or later – available on Win too – to maintain flexibility in allocating projects and files between platforms… Even Microsoft knows it already with their Office available on iOS… To keep QuickTime as industry standard Apple need to provide basic support for Win too…

… or am I wrong? And Windows is just dying?

Sep 04 2014 | 7:34 am

Hey guys,
First of all great work on creating the Hap toolbox, it seems like the perfect alternative to standard codecs in terms of workflow and saving processing power.

On to my question, I’m currently creating a patch that enables un-editing a movie file automatically (say film sequence, videoclip, etc), what happens is I run the complete file in real-time while using a custom motion detector to recognize movie cuts, thus keeping the information of every shot’s in-loop point and out in a coll list, that I can then access. I hope this description made any sense.

Anyway, I would love to use Hap for this project but it seems the hap object doesn’t recognize the editmode message/attribute and subsequent getedittime and editduration, does it?. Everything else I managed to work around in order to use Hap, but not this. I can’t get proper loop points with QT timevalues, which is way too sensitive, but frames or true_frames work perfectly (on

Is it possible to implement the editmode/editduration/edittime attributes for the hap object? It would be immensely appreciated!!

Sep 20 2014 | 4:03 am

since I updated to Max 6.1.8 [] crashes Max as soon as I send it bangs from a [qmetro]. I tried with both codec versions HAP2 and HAP3. I am on OS X 1.9.4. Anyone experiencing the same?

cheers, jan

  • This reply was modified 1 year by  Jan.
Sep 20 2014 | 6:20 am

Hi Jan

As I remember everything was fine with HAP under 10.9.4 on my computers (Mac Mini and MacBoop Pro 17′). Maybe try to migrate into current 10.9.5?

Sep 20 2014 | 6:57 am

yea, i even consider a complete reinstall of the OS. running in too many weired things latley…

Nov 06 2014 | 6:59 am

Hey folks, any suggestions on writing Hap-encoded video files from within Max? I’d like to make a long-duration video buffer, and am thinking it would be nice to be able to record video to disk in arbitrary-sized chunks spanning an arbitrary total amount of time. For example, I’d like to be able to set it to maintain an hour of footage broken up into five minute video files, and to trash the oldest files as new ones are written.

I’m aware of Syphon Recorder, but it would be great to have the same functionality available within Max so that recording and file management can be automated. From poking around it seems like nothing of the sort exists, so I guess what I’m really asking is – any chance that someone is working on

BTW, I’m going to crosspost about this over at the Syphon forum… if relevant news comes up there I’ll add it here, and vice versa.

Nov 06 2014 | 11:18 am

I just saw that Syphon Recorder can be triggered to record and stop with cmd+opt+R even if it’s not foregrounded. Here’s a patch to automate the key combination so that it can be triggered by a bang (requires Masayuki Akamatsu’s aka.keyboard).

Make sure you have Syphon Recorder open. Watch out, it’ll generate a lot of clips quickly (default one every 10 seconds) and if you have Syphon Recorder set to auto open each new clip Quicktime can start bogging things down PDQ.

-- Pasted Max Patch, click to expand. --

Nov 10 2014 | 3:23 pm

I’m on windows 7 64 bit. Using Max 6.1.8 32bit and 1.0.3.
I’m trying to play at least 2 hapq files at the same time and gradually crop my videoplane from one to the other.

It’s good to know that using the frame message requires autostart = 0 and a manual control of the played frames. I thought it was a bug at first. My video files will loop anyway so it’s fine. It just makes it a bit more complicated to use the object since you pretty much need to have a player for it.

On my side, the playback stutters a little bit unless I load to ram. However loading to ram leads to random crashes and other issues with max’s GUI. (whole windows being frozen or solid white. The windows still run fine, it’s the GUI that is frozen.

I really need HAP support in jitter so thanks a lot for your external but right now I can’t really use it properly. I figured I’d report my issues. I’ll gladly provide any more information about my issue, as needed.


  • This reply was modified 1 year by  jbl.
  • This reply was modified 1 year by  jbl.

Nov 23 2014 | 7:29 am

How to play files with HAP codec with [jit.playlist] ? Impossible ? Thx.

Nov 24 2014 | 9:52 am

I’m on windows 7 64 bit. Using Max 6.1.8 32bit and 1.0.3.
I’m trying to play at least 2 hapq files at the same time and gradually crop my videoplane from one to the other.

It’s good to know that using the frame message requires autostart = 0 and a manual control of the played frames. I thought it was a bug at first. My video files will loop anyway so it’s fine. It just makes it a bit more complicated to use the object since you pretty much need to have a player for it.

On my side, the playback stutters a little bit unless I load to ram. However loading to ram leads to random crashes and other issues with max’s GUI. (whole windows being frozen or solid white. The windows still run fine, it’s the GUI that is frozen.

I really need HAP support in jitter so thanks a lot for your external but right now I can’t really use it properly. I figured I’d report my issues. I’ll gladly provide any more information about my issue, as needed.


I am having a similar problem: using on your same system configuration more than one HAP Alpha clip stutters. And it is a 16gb ram +4gb GPU video card.
I am migrating to Win7 but just 32bits. Let you know if it works better tomorrow. If somebody tried before, please, let us know!

Nov 24 2014 | 10:15 am

I’ve been running 3 different instances of all running hapq files. I’m using loadram and I’m careful when I do so. Ideally you don’t want your jitter stuff to be running when textures are loaded. I guess if I want to use many files, I’d load them all to ram and enable/disable the as I need them.

However, I couldn’t get HAP Alpha to work… Is there a special attribute somewhere in the object or videoplane to support alpha channel?


Nov 25 2014 | 8:41 am

Right now I am running 3 istances and the video stutters. I can find the problem really. I have run the very same patch in iMac and works with the double of instances with a weaker videocard.
About alpha channel, I have added some options on the videoplane object like @blend_enable and @depth_enable to make the alpha channel effective.
I hope this helps.

Nov 25 2014 | 8:51 am

It looks like I have to free the RAM each time a video is looped. Otherwise, it copies it again, harvesting the memory. Any clues about it? Should I load and unload them each time are played?
I am new to Max/MSP, wondering if OpenCV with CUDA support will improve the perfomance over HAP.
Thanks for you help!

Nov 25 2014 | 9:34 am

I did not notice issues with loadram so far aside from risks of GUI crash (patch keeps running but I can’t click anything, GUI doesn’t update) when loading to ram if jitter is already rendering stuff. So I would avoid loading to ram except when the patch is initially loaded.

About the issue where it copies to ram again, I did not notice anything like this.

Nov 25 2014 | 10:15 am

I was using Win7@32bits, RAM couldn’t go further than 4GB. I am reinstalling Win7@64bits and trying Max@32bits with HAP. Let’s cross fingers…

Nov 26 2014 | 7:45 am

You are not having problems -this is an aducated guess- because you are always playing the same clips.
Each time one clip finishing in my patch, it randomly chooses a new one and keeps loading it to RAM. Endlessly.
I am trying to make MAx Release the memory after each play.
I have doubts about the system configuration: 32bits Max/MSP over a 64bits Windows7 should run OK?

Dec 01 2014 | 7:45 am

anyone managed to get alpha videos running?

I am using blend_enable and depth_enable on the videoplane, and also trying to find a blend_mode numbers combination but no success..

Dec 01 2014 | 7:51 am

works fine here:

-- Pasted Max Patch, click to expand. --

Dec 01 2014 | 8:08 am

I can load the video without any problem, but when I overlay two videos, I don’t have a clean alpha

-- Pasted Max Patch, click to expand. --

Dec 01 2014 | 8:19 am

this is the video that I am using for test

Dec 01 2014 | 8:50 am

you are missing a @blend_enable 1 and you should set the transparent video layer to 1 (or some number higher than the non-transparent video).

also, the video you posted has a completely opaque alpha-channel (as demonstrated by sending the texture to a jit.matrix, and viewing the alpha plane).

-- Pasted Max Patch, click to expand. --

Dec 01 2014 | 9:01 am

you could also mask out the black, using

-- Pasted Max Patch, click to expand. --

Dec 01 2014 | 11:27 pm

I am not on the computer right now, will try it later. So this might be a matter of correctly rendering the video and not only select the Hap Alpha codec when rendering.

Dec 02 2014 | 1:33 am

+1 for a hap compatible jit.playlist.
It seems like it isn’t possible to get information about which file is playing from the playlist object? I couldn’t work it out anyway.

Dec 02 2014 | 5:46 am

It is really a matter or selecting RGB+Alpha channels on the Video Output screen in After Effects. Attached please find the new video.
This just made my day!!! :-)

Dec 03 2014 | 1:20 am

is there any way to crossfade two Hap videos?

Dec 03 2014 | 5:54 am

Use two videoplanes (for two HAP videos) with blending mode set to "alphablend":


[ ctx @blend_enable 1 @blend alphablend @color 1. 1. 1. alphaVal]

Dec 03 2014 | 7:20 am

thanks, will try that

Dec 22 2014 | 3:59 pm

You also can x-fade hap videos (or any video on the GPU) by sending the two textures to the two inputs of a, load your desired composite mode shader and change the amount parameter over time.

Dec 22 2014 | 5:25 pm

BTW Rob – a while ago I added some functionality to’s loop report and posted a pull request on the github – not sure if you saw it. Been using that build for a while now so I’m pretty sure my changes are stable.

Viewing 150 posts - 1 through 150 (of 183 total)

Forums > Jitter