r/GifTutorials • • Jul 16 '15

GIMP GIFS 101: Start-to-Finish Tutorial on how to make gifs in Linux (or Windows) using 100% FREE software.

34 Upvotes

So you want to make high-quality GIFs. The only problem is you are on Linux... besides that, you can't afford Photoshop or After Effects (and Blender sucks). Well don't worry, I'm going to show you how to make high-quality GIFs in Linux using 100% free and (mostly) open-source software! You'll be posting to /r/HighQualityGifs and reaping that sweet, sweet gif-karma in no time at all.

Note: Most of this can be done on Windows as well.


Introduction

The gif-making process involves a few primary steps. You will be following these steps (with few exceptions) every time you make a gif.

  1. Download/capture source video

  2. Split video into frames

  3. Import frames into GIMP

  4. Manipulate frames (crop, scale, add text/effects, etc.)

  5. Convert to exportable form

  6. Export

  7. Upload to image host

  8. Karma

  9. ????

  10. Profit

I will give detailed instructions for each step further below.


Software

Depending on your particular Linux distribution, you will have a different software source/package manager. I personally use Ubunu and Xubuntu depending on which computer I am using. Most of the software is available in the Ubuntu Software Center. If you can't find it, or you are on Windows, use your Google-Fu and I'm sure you'll be able figure it out.

You will need to download and install the following software (All of it is 100% free!):

  • GIMP (w/ GAP plugin and AnimStack script)

  • FFmpeg

  • VLC


This is the free, open-source equivalent of Photoshop. It is the graphics program where you will do most of your image manipulation like cropping, scaling, adding text, etc.

Where to get it: package manager or website linked above

Additionally, you will need to download and install the following GIMP plug-ins/scripts (mostly done through the package manager):

GIMP Animation Package (aka GAP or GIMP-GAP) - Will be used to process video. It is really a powerful animation plug-in, but we'll only use it for one step.

Where to get it: I got this through my package manager. Windows: google it for best results

AnimStack - This script is a huge time-saver because it allows you to automate the layer duplication process. You'll primarily be using it to apply text to multiple layers of your gifs.

You'll have to download it from here. After you have installed GIMP, Click on "Download animstack.scm", then drag the .scm file to the */scripts folder of the GIMP directory, which will probably be in your main directory. It will be titled something like ".gimp-2.8" (since it starts with a period it will be hidden and you'll have to enable "show hidden files"). Windows: same.

Fonts - when adding text/captions to gifs, the right font can make all the difference. You'll probably end up finding a nice neutral font that you really like and will use it for most of your gifs, but sometimes something a little different is more appropriate.

Where to get it: I have found that the easiest way to get quality fonts for free is to download them from http://www.dafont.com . Just download the font and drag the .ttf or .otf file into the GIMP fonts folder (*/.gimp-2.8/fonts/) and restart GIMP to install. Windows: same.

This is a really powerful video converter that you will be using to split your source video into individual frames which you can then import into GIMP. It doesn't have a GUI so you will be doing all your work with it by the command line in a terminal window.

Where to get it: When I installed it I had to do it from the command line because it didn't show up in my package manager for whatever reason. As of this post however, it is available through the normal means. You can always go to the website and follow their directions to get it. Windows: website linked above

I use VLC to download/record my source video. Either from youtube or captured from DVD.

Where to get it: package manager or website above. Windows: website.


Ok. Let's get to it. I'll try to give examples and screenshots of each step as I show you the process.

Making a GIF from Start to Finish:

Step #1. Source Video - The quality of your source video will be the main determining factor in the final quality of your gif. You can't take a 360p video from youtube and turn it into a 720HD gif, it just doesn't work that way.

I would recommend using at a minimum 720p HD (or DVD) videos or higher as a source.

I find the best way to get high quality video is to capture it from DVD. (If you have Blu-Ray on your PC, that will work too, but fuck you... I'm jealous).

To do this, open VLC. Now click "view" --> "advanced controls". That will add the DVR controls to the GUI so you can record nearly any video playing in the VLC window (except youtube... see note below). Now set-up where the videos you capture will be saved by going to Tools -> Preferences -> Input&codecs and Record directory or filename.

Now play your favorite DVD and record the scene of your choice. Click the red circle to start recording video. There is always a lag of a couple of seconds between the time you hit the record button and when it actually starts capturing. Click again to stop.

Now open the .mpg file you just created and check to make sure that everything you want in your gif was captured correctly. Also note, as accurately as possible, the times in the video that correlate with where you want your gif to begin and end (it will save you some time in subsequent steps). Give yourself a second or two on either end as wiggle room.

VLC will give the file a long-ass name. I always rename it something simple to save future headaches. I renamed mine "goodfellas.mpg" Also move it to a new directory (folder) somewhere. You want all your files for each gif to be located in the same place, trust me.

Now you are ready to split your video into frames.

Note: If you want to use youtube videos and already know how to download them, great! If not, google that shit, because youtube is always changing things to stop people from downloading them and I can't keep up. Most can be opened in VLC as a network source and recorded or converted. Note: VEVO videos on youtube (music videos) can't be downloaded by any ordinary human means. Just forget about trying.

Step #2. Extracting video to frames

FFmpeg is the best way I've found to split video into frames. It can also be used to convert from one video format to another (more on that later). There is no GUI, so everything is done from the command prompt in a terminal window.

Open a terminal window in the folder where your source video is located and type the following command:

ffmpeg -i video.mpg -r ## -t # -ss # -f image2 frame_%4d.png

"video.mpg" is the filename of your source video

"-r" tells it the frame rate to split in frames per second. You can match your source if you know it. A higher framerate will give you smoother gifs. Never go below 24 fps if possilbe. I always use 30 fps.

"-t" is the total time in seconds to split

"-ss" is the starting spot you want

"-f image2 frame_%4d.png" tells it to output .png images with the name frame_0001.png, frame_0002.png, frame_0003.png, etc. You can use almost any image format, but .png gives you the best quality without the compression issues of .jpg

So for my example I will imput:

ffmpeg -i goodfellas.mpg -r 30 -t 5 -ss 0:03 -f image2 frame_%4d.png   

That will output each frame as a .png file named as shown above. It will start at the 0:03 second mark in the video and run for 5 seconds to the 0:08 mark. It will capture 30 frames per second. 30 fps X 5 seconds = 150 frames = 150 .png files in your working directory.

Press enter to start it. It will take a few seconds or longer to run depending on the speed of your system, how long the video is, and how many frames you are capturing. When it returns to the command prompt, it is finished.

Now time to open up GIMP.

Note: There is a way to use GIMP to extract frames directly without having to use FFmpeg but I've never been able to make it work with Linux. I've read that it has to do with the correct codecs being absent, but have never been able to solve the issue. It works sometimes in Windows, but I always found it to be buggy. I prefer to use FFmpeg. In GIMP, go to "Video" -> "split video into frames" -> "extract videorange" load your video and go to town.

Step #3. Importing frames into GIMP.

This one is pretty easy. Once you have GIMP open, click "File" -> "Open as Layers" Select all of the images you just created and click "OK." Now wait as GIMP opens each image as a new layer stacked on top of each other. I have a old and slow system so this takes forever. When it gets done it will look something like this. I have the layer window pinned to the toolbox. Yours may be in a separate window by default, but you can change this to your own tastes.

You can see that I overshot a little and it bled several frames into the next scene. You can delete these extra frames 1 by 1 by highlighting it then clicking on the little garbage can at the bottom-right of the toolbox, but you don't have to do that right now.

Step #4. Manipulate Frames

Cropping and scaling:
Once you have your layers open in GIMP, the first thing you want to do is to crop the image to the full visible frame, e.g. trim off any black border that is around your image. My example doesn't have a border so I don't actually have to crop anything, but this varies from movie to move. If you want to crop to something smaller, you can do it later, but not yet!

Next we have to adjust the aspect ratio, which is defined as width:height. You'll notice the title bar of my example that my image dimensions are 720 x 480. 720 divided by 480 gives you 1.5. That means, the image has an aspect ratio 1.5:1. But it appears like someone stretched it vertically... so what gives? If we look up the movie on IMDB we can see that the intended ratio is 1.85:1. We need to scale the image.

Click "Image" -> "Scale Image" Now click the little chain next to Image Size so you can adjust width and height independently. Then enter your desired aspect ratio. I always set height to 100 and then use the width to get the correct ratio. (185:100 = 1.85:1)

Now click the chain again. Now you can change the width to any size you want and the height will change automatically to preserve the aspect ratio. I make most of my gifs 640 pixels wide, it's a nice intermediate size. The temptation will be to make them as big as possible, but size does not necessarily translate into quality.

Set "Interpolation" to Cubic and click "scale." Now that you have the correct aspect ratio, you can crop the image as your heart desires.

Note that both cropping and scaling act upon all the layers in the stack.

Editing:
Now lets take a look at what the gif will look like. Click "Filters" -> "Animation" -> "Playback." A small player will open up that will allow you to preview your GIF. Change the framerate to the value you used in FFmpeg.

This is where you should finish deleting the frames you don't need/want from the start and end of your gif (remember I trimmed a little earlier).

Once you have it where you want it to start and end, you are ready to add captions.

This is also a good place to save the file. We haven't exported as .gif yet, that will happen later, we are just saving the layers as one file which will be a .xcf file. I should note that these files can get kind of large if you have a lot of layers. GIMP will also have all the layers and cropped info in it's cache, so if you want, you can save, close the program, and re-open it. This is only important if you have an ancient system like I do.

Adding Text:
If you are just making something like a reaction gif or there's no dialog, you can skip this step.

You want to go through the layers and find over which frames you want your text to appear. With captions, it looks best when the appearance of the text syncs up with the movement of the actor's mouth. I will go through each frame and find the one where he starts speaking. I do this by clicking the little eyeball on the left most column of the layer dialogue. You can select one layer or all layers at once by holding shift while you click.

In my example it looks like he starts speaking at around frame_0065. At 30fps, one frame here or there doesn't make a huge difference so you don't need to be exact. So I select frame_0065 as my visible frame.

Then click the text tool. Choose the font you want and the color. Pure white can be a bit hard on the eyes, especially on dark gifs, so I use more of a light-gray for most of my captions. Draw your text box and add the caption you want. The text box can take some getting used to and it's temperamental. You may want to practice adding text to a blank image. I unpinned the layer tab from my toolbox so you could see both the layers and the text tool. You can move the text around using the move tool. You have to click and drag the text itself, not the text box (it will move the layer behind it).

Now let's add a black border behind the text. It will add some depth to the text and make it easier to see. White (or light-gray) text with a black border can be easily read on any color background.

So you want to select the text of the text layer. The way it is done is a bit different than what you might be used to. We are going to select the outline of the existing text layer, enlarge it by a pixel or two, add a blank layer, then use the bucket fill tool to make it black.

The select tools (rectangle, ellipse, free, etc.) act as a kind of stencil. Be sure the text layer is highlighted by clicking on it. Click "Layer" -> "Transparency" -> "Alpha to Selection". We aren't actually selecting the text, but an imaginary line around the text that we will use as a stencil to create another layer that will outline the text. Now make it bigger by clicking "Select" -> "Grow" use 1 or 2 pixels then click "OK." If you hide the text layer you can see that the selection is a separate entity.

Now add a new transparent layer by clicking "Layer" -> "New Layer" and select transparency. Click on the bucket fill tool, change one of the colors to black and choose "fill whole selection" now click within the dashed lines to make your black text. Now click "Select" -> "none."

Move the black layer behind the lighter text layer by selecting the dark layer and then clicking the down arrow at the bottom of the tool box. You now have a dark outline behind your light text. (I zoomed in so you can see it better).

Now merge the light text to the dark text layer by right clicking on the light text and selecting "merge down." You won't be able to edit the text again once you do this.

Now comes the tricky part/pain-in-the-ass. In GIMP if you want the text to appear over the scene, you need to place a copy of the text layer over every frame. You can see how this would get tedious when you have a lot of different text and a lot of layers.

To help us, we are going to take advantage of the AnimStack script. The way AnimStack works is you edit the name of the layers, add AnimStack tags to the names, then run the script. AnimStack tags are just commands in-between brackets []. The tool is really powerful, but the commands can be fucking confusing. If you copy the tags I use exactly they will work for you. If you want to learn more, you can go here (they also have links to youtube tutorials and a tumblr help-page there).

I want to use the text layer as an overlay aka a foreground object, so I'm going to use the foreground AnimStack tag. Double click the layer (or right click "edit layer attributes") and add the tag:

 [~fg>end]

as shown here then click "OK". This tag tells the script to copy this layer as a foreground over every image above it until it reaches the layer tagged as the end. Now we want to tag the layer where we want the text to end. It looks like he stops talking on frame_0120 or so. So I will add the tag [:end] to that layer. Now run the script. click "Filters" -> "Animation" -> "Process AnimStack Tags" it will run on its own until complete. You can always undo this and go back and adjust the location of the tags and re-run the script if things aren't quite right.

You can see how the script created what's called a layer group, with our text layer in the foreground and the image as the background. If we did this the old-fashioned way (manually, layer-by-layer) it would have taken hours. Thanks AnimStack!

If you bring up the Playback window again (filters->animation->playback) you can now preview exactly how your gif will look.

You may want to save a copy here, once we move on, you can't change any of the timing of the text.

Now before the next step, we have to merge the foreground text to the background images or else GIMP won't let us continue. Click "Image" -> "Flatten Layer Groups"

Step #5: Convert to a Format you can Export

So right now, we are in RGB color mode (you can see this in the title bar of the main window) RGB color mode has ~17,000,000 color combinations. Unfortunately, the .gif format can only support 256 colors... (Well, f-ck!). So to change it to 256 colors, click "Image" -> "Mode" -> "indexed" and use the following settings.

Color dithering is the process that... well just google "color dithering." I seem to get the best results when I use the "Floyd-Steinberg (reduced color bleeding)" algorithm. But you can experiment. Click "Convert" and watch as your beautiful image is turned into a pixelated monster (I'm exaggerating, it's just the nature of the .gif format). You can look at the playback again and you'll definitely see the difference. GIMP doesn't have the best color dithering. There are alternatives I'm exploring, and I will include one of those alternatives at the end, but for beginners, GIMP will have to do.

Now you're ready to make it into a GIF!

Technically you could export it as a .gif file now, but it would have a relatively large file size. Let's minimize that. Click "Filters" -> "Animation" -> "Optimize (Difference)" Don't use Optimize (for Gif). Why? I don't know. I've never been given a good explanation for it but that is how I was told to do it so critical thought be damned.

The program will now take your image frame by frame and pull out the pixels that carry over from frame to frame without changing color. It will actually open a new image with fewer layers and missing pixels, leaving you individual layers that look like this.. This will help save file size but don't worry, we'll set it up so it looks fine when played back as a GIF.

Step 6: Export
Time to save your GIF (We're now working with the Optimized image in the new window). But you can't just 'save-as' you have to click "File" -> "Export As" then chose your file name and add ".gif" to the end and click "Export." Use the following settings. or else it will look strange.

When you optimize the image in GIMP, it almost always gives you a final image that will be played back at 25 fps (don't worry, it's an optimized 25 fps... it will still look just like the 30 fps gif you want) This is where the 40 ms delay between frames that you see in the export settings comes from.

Let's do some math. The original image was 123 frames. and it was intended to playback at 30 fps. 123 frames ÷ (divided by) 30 frames per second = 4.1 seconds (the total length of your gif) now divide this by 123 again to get the delay between frames... 33ms. Now looking at your optimized image, it is only 98 frames. take the original 123 ÷ 30 ÷ 98 the new delay between frames rounds to ~40 ms (GIMP only deals in 10's of ms... or (0.01 seconds) no need to go any farther past the decimal point than that.

I tell you to check this because it will not always be 40ms. (Although it is for nearly all video you capture from DVD). Video you download from the web or youtube doesn't usually optimize to fewer layers, so in that case use a delay of 30ms.

CONGRATULATIONS! YOU JUST MADE YOUR FIRST HIGH-QUALITY GIF FROM SCRATCH!

Step #7: Upload to image host

I prefer to use gfycat for gifs and imgur for static images. I like the gfycat interface better, plus you can upload your gifs as .webm videos and you can avoid that awful dithering step (I'll cover this at the end). You can't do that easily with imgur.

Step #8: Karma

When you post something someone else made all over reddit, it is called re-posting and you are a karmawhore.

When you post something YOU made [OC] and post it all over reddit, it is called cross-posting and is perfectly acceptable. You worked really hard to make some new, fresh content for reddit and your reward for all that hard work is some meaningless internet points and the approval of anonymous strangers.

Step #9: ????

????

Step #10: Profit

$$$$ When I figure this one out, I'm not telling any of you.


Appendix

Skipping the Dithering and .gif format for the promised land .webm and ~17,000,000 colors

So I told you about the crippling limitation of the .gif format and it's meager 256 color palette. I figured out a way to skip that step!

Actually you will export frames from GIMP to .avi then use a video converter (FFmpeg) to go to .webm which you can upload to gfycat without a loss in quality.

NOTE: This will only work where you can use ".webm" or gfy. If you have to post something as a ".gif" you'll have to do it the old way.

Follow Steps 1-4 as above. After you finish step 4 where you flatten the image, you are at the point where you would normally convert from RGB to Indexed (256 color dither). Instead of doing that, convert straight to video!

(This will only work if you have the GIMP Animation Package plug-in a.k.a. GAP)

  • Go to "Video" -> "Master Videoencoder"

http://i.imgur.com/taYt5Ee.png

Be sure to adjust the framerate... it defaults to 1 fps. You can set the input mode to "layers" or "frames." If you choose frames your layers need to be named "frame####" e.g. "frame_001" "frame_002" etc."

  • Click the "parameters" button and use these settings:

http://i.imgur.com/Lat2ENW.png

Be sure to adjust the quality to 100 (it defaults to 84). Click "OK" When it finishes, you'll have a nice .avi that you can convert to .webm

  • If you use FFmpeg the following command line will get you where you want to go:

    ffmpeg -i goodfellas.avi -c:v libvpx -crf 4 -b:v 50M -c:a libvorbis goodfellas.webm

change filenames where appropriate

-crf and -b:v affect the quality and bitrate.

libvpx and libvorbis are codecs/plug-ins it uses

I haven't had time to experiment with this yet, so I just use the generic settings from here: https://trac.ffmpeg.org/wiki/Encode/VP8


WELL... THAT WAS MY GIF TUTORIAL


r/GifTutorials • • Feb 05 '21

A compilation of high quality gif making tutorials

29 Upvotes

Tutorials

All these tutorials were available only on Old Reddit, so I'm putting them here in one post so that it's easier to find. THE ONLY HIGH QUALITY GIF MAKING GUIDE YOU WILL EVER NEED!

Making gifs in Photoshop?

  1. Creating a GIF in Photoshop CS6

  2. Adding Text to a GIF

  3. Ideal "Save for Web" Settings

  4. Tips and tricks

Making gifs in After Effects? Upvote gifs?

  1. Playlist of all tutorial videos!

Making cinemagraphs or looping gifs in After Effects?

  1. How to create a seamless video loop in After Effects

  2. How to create a cinemagraph in Photoshop

  3. Optimal gif export settings in Photoshop

Can't afford Photoshop? Try GIMP!

EXTRA


r/GifTutorials • • Aug 30 '16

Changing the logo on the "Double Dank" cap

Thumbnail
imgur.com
25 Upvotes

r/GifTutorials • • Dec 01 '15

How to make cool 3D "name tag" effects in After Effects

Post image
24 Upvotes

r/GifTutorials • • Nov 19 '19

Hi GifTutorials! I'm a NSFW poster on Gonewild and other NSFW subs. I'm UK based and am having a hideous time trying to post videos. I've tried gfycat and while many posters have the clearest smoothest posts mine seem to always come out laggy, grainy and really pixelated. So please, HELP ME! 😘 NSFW

23 Upvotes

r/GifTutorials • • Feb 16 '16

Photoshop Using Masking to cut down on file size

Thumbnail
imgur.com
21 Upvotes

r/GifTutorials • • Apr 06 '17

Postal Pat's step by step guide to making sweet high quality 60fps gifs

20 Upvotes

Hi all, I just recently I got into giffing. I've been lurking on/r/highqualitygifs for a while and finally decided to take the plunge. I'm only 5 gifs in, but I think I can officially say I've got the hang of it.

 

One of the things that I found really hard was the lack of information for extreme beginners like myself. Mainly in how to export good quality footage and not have it torn to shreds when uploading to imgur or gfycat. Doesn't help that a lot of the information available is dated. I also wanted to try my hand at 60fps gifs, because why not right?

 

Being that I have gone through this whole process recently and that its all fresh in my head. I figured I would write a step by step super beginners guide to exporting high quality gifs to gfycat and also how to interpolate videos to 60fps.

 

A bit of information and tips before you start:

 

-Except for the Adobe products, all the software below is free.

-I use a combination of Adobe Premiere, After Effects and sometimes Photoshop for my gifs. All 2017 version.

-Until I am ready for my final export to Webm, I usually work as much as possible with .mp4. I will usually export my working clips from Premiere in H.264.

-I have found that it is best to work with as high quality source material as possible at all times. That means 1080p/Bluray quality footage etc...

-At the time of this writing, GfyCat accepts .webm files of 60 seconds or less with little to no degradation in quality if done properly

 

DISCLAIMER: The below procedures were done on computers running Windows 10 64-bit Pro. I cannot guarantee that they will work on any other version of windows etc... I am still a beginner at this, some of this information may be incorrect or not good practice. I am an IT professional by trade, but am by no means knowlegeable Video formats and encoding, so I don't know what a lot of the settings I describe below mean or actually do. All I know is that they work for me. The below processes ask that you download files and software from various websites. I do not guarantee the safety or stability of any of the sites and the software downloaded from them in any way shape or form. So far, the stuff I have downloaded from the below appears to be safe, but I cannot guarantee they actually are or will remain so. Proceed at your own risk.

 

 

Exporting a high quality Webm Gif for upload to GfyCat.

 

These steps are more or less directly pulled from this post from /u/harris5. I have added a few extra tidbits I found and some advice from my own personal experience. It's also formatted in a nice step by step fashion for those who don't want to think about it.

 

These steps assume that you have a fairly recent version of Adobe Premiere and you know how to create and export a project with video etc...

 

  1. Download the fnord webm plugin for adobe premiere: http://www.fnordware.com/WebM/

  2. Install the plugin.

  3. Open your project in Adobe Premiere and go to the export media dialog.

  4. Select format WebM.

  5. Uncheck Export audio

  6. Ensure that resolution is divisible by 16. Do not bother reducing the size of the video, export at native resoltion whenever possible. If you resolution is almost divisible by 16, crop the size of the video in the Premieres sequence settings (not in the export settings).

  7. Enable VP8 under codec.

  8. Set quality to 80.

  9. Make sure Use maximum render quality is checked.

  10. Export

Once done, uploade the completed file via Simple upload to Gfycat.

Enjoy!

 

 

Interpolating a video to 60fps.

 

Based on guide from http://www.spirton.com/convert-videos-to-60fps/.

 

These steps will allow you to interpolate a .mp4 video to 60fps. At this point in time, all videos I have interpolated were exported from Premiere with H.264 with audio disabled and maximum render quality enabled. I have found that for best results, interpolate your source clips before adding in effects with AE. AE will render at whatever FPS your source clips are at, so any effects you add in after the fact will be native 60fps, thus making them cleaner looking.

 

  1. Download MeGui from: https://sourceforge.net/projects/megui/

  2. Create a folder called MeGui in C:\Program Files (x86)

  3. Extract contents of downloaded MeGui zip file to C:\Program Files (x86)\MeGui (This version of MeGui is completely standalone, thus there are no actual installed components. So you could technically copy this anywhere, just bear in mind the rest of the instructions assume MeGui is in a folder in C:\Program Files (x86))

  4. Download AviSynth with plugins from: http://www.spirton.com/uploads/60FPS/Files-20150521.zip

  5. Extract to a temporary location

  6. In the extracted folder go to \Files-20150521\tools and copy the avisynth_plugin folder to C:\Program Files (x86)\MeGui\tools

  7. In the root of the extracted folder, install avisynth.exe

  8. Download the Avisynth multithreading DLL from: http://forum.doom9.org/showthread.php?t=148782

  9. Goto C:\Windows\SysWOW64 (C:\Windows\System32 if you have windows 32-bit) and rename avisynth.dll to avisynth_OLD.dll

  10. Extract the new avisynth.dll from the downloaded zip into copy into syswow64 folder (system32 on 32-bit)

  11. Download K-lite mega codec pack from: https://www.codecguide.com/download_k-lite_codec_pack_mega.htm

  12. Install K-lite mega pack. During install, ensure every box that refers to Haali is enabled, especially important in the select components screen.

  13. Start MeGui.exe. If Megui wants to update a component at any point, allow it to do so.

  14. Click tools

  15. Click Avisynth script creator

  16. Click New

  17. Give your preset a name (like 60fps) then ok

  18. Copy paste the AviSynth dialog options found at the bottom of the post into the large text box (for formatting reasons I had to put them down there)

  19. Click the Extra Setup tab.

  20. Ensure that "Prefer DSS2 over DirectShowSource" is checked off.

  21. Click update.

  22. Click ok (Optional: I recommend closing Megui at this point and then opening it back up to save you AviSynth script. If Megui crashes when trying to render your first project, you will may lose your avisynth profile. Once you get this done, get back to the Avisynth script creator window.)

  23. Click "..." beside video input.

  24. Select starting file (I use MP4 exclusively for compatibility with Adobe products). Then click open.

  25. Click One-Click Encoder.

  26. Beside one click profile, click Config.

  27. In the video tab, beside Encoder, click config.

  28. Set quality to 16.

  29. Set preset to slower.

  30. Click Update.

  31. Click ok.

  32. Check the Keep Input Resolution box.

  33. Click the output tab and make sure MP4 is checked.

  34. Set filesize to Don't Care and Splitting to Dont split

  35. Click Update.

  36. Click Ok.

  37. Set your output location and filename.

  38. Click go and then wait.

  39. Once the encoding is complete, you can then export to webm using the above steps (ensure match source frame rate is enabled ;) )

 

The nice part about this, is that now that everything is set, interpolating more videos is really easy.

 

  1. Open Megui

  2. Tools -> Avisynth script creator

  3. Select starting file

  4. Onc Click encoding

  5. Select output

  6. Go!

 

 

AviSynth dialog options

 

Cores=4

SetMemoryMax(512)

SetMTMode(3,Cores)

PluginPath = "C:\Program Files (x86)\MeGUI\tools\avisynth_plugin"

LoadPlugin(PluginPath+"svpflow1.dll")

LoadPlugin(PluginPath+"svpflow2.dll")

Import(PluginPath+"InterFrame2.avsi")

<input>.ConvertToYV12()

SetMTMode(2)

<deinterlace>

<crop>

<denoise>

<resize>

InterFrame(Cores=Cores)

 

(Refer to http://www.spirton.com/convert-videos-to-60fps/ guide for extra keys you can set (at the bottom). If you have more than 4 cores, you can add more, if you have a dedicated GPU, you can leverage that by change the last line InterFrame(Cores=Cores) to InterFrame(Cores=Cores, GPU=true) etc...)


r/GifTutorials • • Jul 25 '17

My first gif!

Thumbnail
i.imgur.com
18 Upvotes

r/GifTutorials • • Mar 01 '17

Uploading to Gfycat for MAXIMUM QUALITY

18 Upvotes

There’s a few tricks to making a MAXIMUM QUALITY gfycat upload. Gfycat doesn’t document them really well. I suspect they want to keep an air of “simple to use.” And that’s true, they’re easy to use, but not easy to get MAXIMUM QUALITY from. But it’s possible, and that’s something! You can never get MAXIMUM QUALITY on imgur, because you have to go through the .gif step first! Gifs wreck quality. You only have those 256 colors to work with...

When I say MAXIMUM QUALITY, I mean your final upload is the same quality of your original source. The dimensions may be smaller, but there’s no banding, dithering, encoding artifacts, or other issues that gifmakers of the past have had to accept.

So here’s the list summarized:

  1. Upload as a VP8 .webm file under 15 seconds

  2. Use “simple upload” option

  3. Make the dimensions even (ex: 540x360)

  4. Make the dimensions divisible by 16

If you want it straight from the horse's mouth, here’s /u/mandinga33 (gfycat staff) saying the same thing.

The goal here is to get the uploaded file of the right format and dimensions so that gfycat doesn’t need to re-encode it. When gfycat re-encodes something, it loses quality. (when you re-encode anything it loses quality, but gfycat’s is rather severe). You want it to be able to “pass-through” and display exactly as you rendered it.

I’ve uploaded an old Indiana Jones gif-remake in a couple of different methods. Here’s the MAXIMUM QUALITY version. Niiiiiice. When looking at the other Indianas, pay attention to the beads of sweat on his cheek, those highlighted beard hairs on the right of his face, and the soft grey blurs on either side of the hole.

Still frame

 

.webming it

Gfycat uses webm files, so that’s how you should encode yours. There’s different methods. There’s plugins for ffmpeg. Personally, I use fnord’s webm plugin. Find what works with your workflow. You’ll want to make sure you’re using VP8, and that your bitrate is good. Here's my fnord specific output settings. Err on the side of better quality.

Make sure things are under 15 seconds. If it’s over, gfycat won’t take it and you have to upload a gif. Ugh. gifs.

Here’s Indiana when he’s uploaded as an h264 (with high bit rate mind you)

Still frame

Here’s Indiana when he’s uploaded as a .gif

Still frame

 

Simple upload

When you hit “upload” you get a screen with three options. “Create” sends you to gfycat’s editing suite. While neat, it may re-encode your upload, and thus denies you MAXIMUM QUALITY. If you make no edits it might not re-encode, but I’ve had it automatically do it in the past. So be safe, use “simple upload”.

I have no idea if the 3rd option (“paste a URL”) re-encodes. I’ve never used it. ¯_(ツ)_/¯

Here’s Indiana when he’s uploaded through “create”

Still frame

I added a bit of text in gfycat’s editor to force gfycat to re-encode. This is the same file as the “perfect” copy though.

 

Even dimensions

If your upload has odd dimensions, gfycat will re-encode the whole thing and your gif will look terrible. I have no idea why. Just do it.

Here’s Indiana when he has odd dimensions (963x401)

Still frame

 

Multiples of 16

I don’t think this affects the quality as bad as the “even dimensions” rule, but it still helps. If you're having trouble with the difference in the examples, check out the sharpness of the text.

Here’s Indy when he’s not uploaded as a multiple of 16 (966x402)

Still frame

 

Wrapping it up

Here’s an album of all the still frames together. I think this highlights exactly how low the quality can get if you’re not careful. So remember, if you want MAXIMUM QUALITY:

Upload as a .webm file under 15 seconds Use “simple upload” option Make the dimensions even (ex: 540x360) Make the dimensions divisible by 16


r/GifTutorials • • Feb 06 '18

How to find a source for a gif fast

17 Upvotes

If you are like me, you don't have a ton of time to find sources for your Gifs. I decided to put together a guide on how to find the right source fast.

First, think about what you would like the Gif to be about. For this Gif, I wanted to have it say "So you need a...". Type in what you would like it to say into the search at getyarn.io and it will show a bunch of clips from movies with "So you need a..." being said. I have chosen this one. Its really sweet because it shows how the text is said in the video player, so you can see if it is usable for a Gif quickly.

Next, the easiest way to find the time that clip is said is to go to quodb.com and search the text to the quote you just found. Do this, then this. When you find the right movie it will show the time-code for the quote in the movie, so when you download your source, you will be able to find where it is easily.

If you cannot find your quote at QuoDB, there is a alternate route, but I'm not actually sure it will be much faster than just manually looking for the scene. I'm still gonna explain it below.

Go to subscene.com and search for your movie. Make sure when you download the captions you get the English version. Take the .srt file into Premiere Pro, and double click on it. It should open up the captions panel. Just search the text from the clip you were looking for and it should be right there. Copy the time code for that caption and you have the time of your clip.

I hope this proves to be useful to anyone, and thanks for reading!


r/GifTutorials • • Mar 09 '16

Basic GIF Organization

Thumbnail
imgur.com
16 Upvotes

r/GifTutorials • • Oct 24 '17

So you wanna try some rotoscoping, eh?

15 Upvotes

I was hunting down some finer points of rotoscoping and came across a few links worthy of sharing for those of you just starting out with roto.

Here are some of the the tricks I've picked up:

  • TrkMat is your friend. Learn him. Love him.

  • If you've got something low-contrast like skin on a white background, roto a copy of it with the colors basted out and use that as a TrkMat for your real footage. My favorite effects for doing this are Brightness & Contrast, Hue/Saturation, Curves, and Levels. The main thing is to look at the area that's ambiguous and get the clearest contrast you can. Don't worry about how it looks - it's merely a tool for you the editor.

  • Pivoting on the above, use multiple layers in a precomp as a TrkMat. Got a good track of the head, but some arm is giving you trouble? Use a shape mask to turn the head into just a piece and roto that arm by itself on a separate layer as another "piece". This "cutting apart" technique makes it easy to try different roto techniques without risking undo hell. Want to start over? Dupe your layer and delete the affects/masks/whatever.

  • Don't try to roto something complex in one sitting. Give yourself time. Roto is a tedious pain in the ass anyway - rushing it just makes things worse.

If you've got some roto tricks yourself or links that help, I'd love a reply. :)


r/GifTutorials • • May 20 '15

Vegas Pro Using Vegas Pro to make subtitled High Quality Gifs

Thumbnail
youtube.com
15 Upvotes

r/GifTutorials • • Feb 16 '17

A new updated mobile giffing tutorial

Thumbnail
imgur.com
14 Upvotes

r/GifTutorials • • May 20 '15

Photoshop Two methods to create combined gifs within Photoshop

Thumbnail
imgur.com
14 Upvotes

r/GifTutorials • • Oct 02 '16

How do I make GIFs from Netflix?

13 Upvotes

I'm using Giphy on Mac. Every time I try to record a screen capture on the Giphy app, Netflix crashes.

What do other people use to capture from Netflix?


r/GifTutorials • • Mar 06 '18

BadMonkey's upscale trick for AE

12 Upvotes

I get asked how I upscale old video a lot and since I never finished my tutorial for it, here's the super-short version:

Add Effect -> Distort -> Detail-Preserving Upscale. Crank up Reduce Noise and mildly adjust Detail to taste.

If you're daring and it's going badly, toss an Effect -> Blur & Sharpen -> Unsharp Maskon after the upscale and crank both the Amount and Threshold.

That should be enough info to get people experimenting with it. Would love to hear any improvements you may have.


r/GifTutorials • • May 04 '15

gimp Gimp , animstack plugin, for adding text , cinemagraphs, animated text, and everything else

Thumbnail
youtube.com
12 Upvotes

r/GifTutorials • • Jun 27 '19

How to make realistic closed captions in AE

Thumbnail
imgur.com
11 Upvotes

r/GifTutorials • • Nov 09 '20

how do you make an HQ gif?

10 Upvotes

I have been looking everywhere for a tutorial on how to make an HQ gif. I have been trying to figure it out on my own but it’s just never HQ enough. FYI, I know how to make a « normal » gif using Photoshop. I have Photoshop and After Effet. If anyone could share their techniques on how to make an HQ gif, it would be very much appreciated! thanks in advance🙌🏼


r/GifTutorials • • Jul 05 '18

Roundup of seven free video editing tools (for those of you on a budget)

Thumbnail
youtube.com
10 Upvotes

r/GifTutorials • • Nov 14 '16

What's the best way to make these stripes rotate?

Post image
10 Upvotes

r/GifTutorials • • Feb 24 '16

Gimp Plug-in for Text Outlines

10 Upvotes

Based on this post by /u/petenu (and thanks to you for saving me time!).

This creates a new layer underneath the text layer, fills the outline with the current background color, then merges the text layer down and renames it with a fg animstack tag based on the current text layer name. If you already have an end label ("[:something]") you can rename the text layer to "something" and then the new layer name will be "something [fg>something]" for animstack.

The change to background color is so you can switch between foreground colors for dialogue between multiple people.

Pastebin: http://pastebin.com/2wgbi9Ln

Just save the file in your plugins folder, make it executable (sudo chmod u+x) and restart GIMP.

If you do something else with text outlines, I'm interested to know. I found I was doing the same steps for text outlines over and over, and was about to write it all myself when I found the post above, which gave me the base for my own changes.


r/GifTutorials • • Feb 19 '16

Not a Tut, but a resource - Have the GIFferResources GitHub repo!

10 Upvotes

I get asked a lot about where I get my 3D upvote models. Well, I make them. To save everyone else the trouble, I added them to a GitHub repository.

https://github.com/BrynM/GIFferResources

I added some of my standard testing and utility textures in there as well as a selection of OBJ vote files I've used (you may recognize one or two from my GIFs). In the future, I'll be putting more and more stuff in. Those include some AE files, more models, some handy shell scripts and whatever else I stumble across or create. I've got a big personal data migration going on, so chances are I will have plenty to toss in.

If you want to contribute yourself, please make sure you either own the rights to what you want to add or that the stuff is public domain. If all that is good, just submit me a PR.