play GIF (Giphy) through Jitter Matrix
I'm hoping to gain some insight or suggestions on how to achieve this without using desktop capture.
- search and play Gif using the Giphy API https://developers.giphy.com/
- pipe the Gif animation through Jitter, so it can be mixed (composited) with other videos or Gifs
don't know if this has been done before, any tips would be awesome!
Hello VJ Fader,
I started patching with jitter a couple of months ago and I'm slowly getting into it. I did not manage to load animated gifs into jitter. So maybe this wouldn't give a satisfying answer to your question...
But I think giphy provides mp4 files of each file. You can simply load them into the Jitter environment. Maybe this patch can help.
@LED, Thanks for posting your example, FYI, copy pasting the original URL from Giphy does work with jit.movie, because jitter can play GIFs.
Funny how Giphy renames all of their GIF and MP4 files to just source.gif or giphy.mp4... which overwrites every time when you download a new one, if it is not renamed.
I try some hacking into getting the Giphy API to work with JS in Max. The goal is to have Giphy search and playback working inside my VJ software AVmixer. Will post example here once I have some success.
Ok thanks. I did not happen to get the gif running. Do you use viddl or qt as engine?
I would be very interested to see your result.
Kind regards
both default and VIDDLL jit.movie engines play GIF files
Thank you. Now I'm confused ;) When i load a gif into jit.movie it only loads the first frame and that was it. But never mind. I'm asking more out of curiosity. Having gifs not run is not an issue that bothers me a lot ;)
@LEN that's true with default jit.movie engine it is not playing GIF from your example... you can switch the engine to VIDDLL and it works.
I got the Giphy API to work, really cool! See attached example where you can randomly fetch GIFs :)
The way I filtered through the call back information to get the MP4 URL is not the best and it is a bit of a hack. PERL and regexp code is really written for Aliens, that's what they look like to me.
note: I registered an API key with Giphy, this might change in the future, check the jit.textfile to see if you are getting a response from the server.
glad you got it working, i took a crack too using maxurl, which is the best tool for these kinds of tasks:
@rob Thanks for sharing your example! I will take a look to fully understanding what's going on.
BTW, any clues on why the GIFs are not playing in default jit.movie engine, in both our examples?
not sure. i would change [ route url ] to [ route mp4 ] in the example i posted.
hi Rob, your example works pretty well and I am able to pull MP4 movies by using 'route mp4'.
One question, when I change the number of 'limit=5' to larger number, say 8, it would pull no more than 6 links total. Any clues on why it would do that? Below is the get url.
https://api.giphy.com/v1/gifs/search?api_key=2DzOHFCpQNnvhFkASsk9PBGL0DZLif57&limit=6&