The Animated GIF thread.
Posted 21 December 2010 - 09:25 PM
I'll go first, with how I do stuff. The programs I use mainly are VirtualDub:
I also like the Xvid codec for when I'm outputing AVIs:
First things first, let's get your video files. You probably have some source video in mind that you may already have, have seen on Youtube, or on some other site. If you already have the video, you can skip this part. You can get videos from various shady sites such as 4chan, but I'm not going to talk about that here. If you need to get it from Youtube, the add-on DownloadHelper is a fast and easy way to save it:
With that installed, an icon appears to the left of the title of the video when on Youtube and you can click on that to download it. For other web sites, such as Hubworld, you need a bit more advanced tactics. StreamTransport will do it:
It appears as a web browser window, which you use to get to the video that you want. You then select the file from the bottom half of the screen (usually whichever listed file has the longest play length) and click download on the right. If you select show tasks, you can see the download's progress. When it is done, choose locate so that you can find the file you saved. Put it somewhere that you'll remember.
Now that you have your video, we need to get it into an avi format, since VirtualDub will only open those and that is the program that I use to actually output the GIFs. I will explain this later though, since I am honestly getting tired of typing.
Posted 21 December 2010 - 09:31 PM
Video: MPEG-4 ASP (Xvid) – note, if you don't have Xvid, you'll have to experiment with the others to see what works on your computer
If you only plan on using part of the video, you can save converion time by selecting a segment now. Use the arrow keys on your keyboard and/or the slider at the bottom of the screen to get to the start of the segment, then choose the edit menu and “Set marker A”. Then get to the end of the segment and “Set marker B”. Finally, choose File => Save => Save Video and save it somewhere with a file name ending it .avi.
I will explain how to convert with SUPER later, I mainly mentioned it because Avidemux occasionally chokes on a file that SUPER can handle.
Now, here's the basics of VirtualDub. Choose File => Open Video File and choose the avi you saved in the last part. Once it's open, if you have not already shortened the video, use the slider and/or the arrow keys to move to the start of the segment that you want to use and pick Edit => Set Selection Start, then move to the end and pick Edit => Set Selection End. If the video size is large, one useful technique is to pick Filters under the Video menu. Click Add and then select one of the 2:1 reduction filters. You can add it multiple times to further reduce the size of the video. You can also crop your video through the filter menu. After adding at least one filter (if you don't want to change the size, add a brightness/contrast filter and don't change any settings), the Cropping button should be selectable. Navigate using the slider and/or buttons to the part of the video you're focusing on so that you can see how much extra space there may be. By using your mouse cursor and dragging the sides of the video view box, you can crop out parts of the frame. Hit ok when you're done.
When you have everything the way you want it, choose the File menu, then Export, then Animated GIF. You probably want “Infinite Loop” to be selected. Give it a name, save it somewhere, and enjoy your new GIF.
Edited by Waspinator, 21 December 2010 - 09:39 PM.
Posted 24 December 2010 - 01:38 AM
Say that there's a clip that you want to loop that has no clean point to do so. Open up the video in Avidemux and get the starting and ending points selected as above, also set up the video and audio boxes. Save the video as an .avi somewhere and put a 1 on the end of the name (not necessary, but convenient to help you remember the order later). Go to the Video menu at the top and select Filters. Double click on the part that says Reverse and then click close. Save the .avi again, this time with a 2 on the end. Open the 1 file in Virtualdub normally and then choose File => Append AVI Segment and choose the 2 file. Then do whatever resizing, cropping, whatever and export the GIF as normal. The video should play once forwards, then backwards, then forwards, backwards, etc, for forever in a clean loop.
If you need to reduce file size further and want to risk potential choppiness, you can have Virtualdub remove frames to reduce file size. This works best in high frame-rate source videos, since they can probably lose some redundant frames without much effect. In VirtualDub, open the Video menu and choose Frame Rate, then choose either "Process every other frame" or "Process every third frame". This is not recommended in all cases since, especially in videos with a lot of movement, it can make things very choppy.
Posted 06 January 2011 - 02:06 PM
I tried again last night after grabbing the high quality .flv files from the Hub, but Avidemux hangs when I try to load any of them! So I downloaded SUPER instead (which was a headache in itself) and then spent an hour trying to figure out the interface. I managed to export an AVI of Swarm of the Century, but it looks terrible, and I couldn't get a decent .gif out of it at all -- it came out all full of artifacts.
Any tips on getting SUPER to export the AVI right? I tried to match the output settings to the specs of the input file, but it didn't seem to help any...
Edit: Suddenly I notice that the tutorial thread was actually meant to be a discussion thread -- feel free to take any responses over there! Sorry for not noticing.
Assuming you've matched the framerate (29.970) and resolution (640x360) of the Hubworld videos in SUPER's settings, the major thing I could see causing that kind of quality decrease would be the codec you're using. The Hubworld files use H.264/AVC, which usually transcodes (i.e. suffers a second round of encoding) fairly well once or (for HD) twice, unlike its predecessor (MPEG-2). But personally, I prefer just converting the episode into a RAW, uncompressed AVI. That doesn't diminish the quality at all since there's no transcoding. The only downside is space; a full episode of this show uncompressed is 25.7GB; but raw video is much easier to work with and I have 3TB of space, so it's not really a concern.
Edited by TM2-Megatron, 06 January 2011 - 02:07 PM.
Posted 06 January 2011 - 04:23 PM
As far as I can tell, all I had to do was:
- Set the output to AVI.
- Set the codec to Raw.
- Set the Video Scale Size to No Change.
- Select the frame rate that matches the original video (most players will give that information).
- Drag the video file from Windows Explorer onto the SUPER window. (Which is harder than it has any right to be--who was the arrogant harebrain that coded SUPER to be always centered and on top?)
- Click Encode.
Posted 14 January 2011 - 06:33 PM
Edited by Waspinator, 14 January 2011 - 06:36 PM.
Posted 31 January 2011 - 08:25 PM
Edited by Copper Bezel, 31 January 2011 - 08:28 PM.
something something friendship is magic
Posted 25 February 2011 - 05:23 PM
Edited by Waspinator, 25 February 2011 - 05:24 PM.
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users