Whats a GIF you ask? Just in case you don't know, a GIF is an picture file with multiple frames and are usually animations or slideshows. Often those frames are directly ripped from a video of some kind and display a scene like in this GIF example below:
UPDATE: 10/08/13
How to make an animated GIF from your videos:
Step 1:
Download and install this free software.
CCCP: Don't needed anymore
http://www.cccp-project.net/download.php?type=cccp
You may already have the CCCP to watch anime, but for those who use the VLC instead of codec packs, is important to have the pack installed in order that the script uses DirectShow.
Avisynth 2.5:
http://sourceforge.net/projects/avisynth2/files/latest/download?source=files
This software is a powerful script tool for video post-production. Used by most of the anime encoders.
FFMS2:
http://ffmpegsource.googlecode.com/files/ffms-2.17.7z
DLL for Avisynth, help with the load of all kind of video files, with frame accuracy.
Decompress in "C:Program FilesAvisynth2.5plugins" folder.
VSFilter: Optional: to keep subtitles.
http://vsfiltermod.googlecode.com/files/VSFilterMod.zip
DLL for Avisynth to embed styled subtitles in the video. Also support non standard ass tags.
Decompress in "C:Program FilesAvisynth2.5plugins" folder.
AvsPmod:
http://www.amvhell.com/avspmod/AvsPmod_v2.4.2.zip
Script editor for Avisynth with many useful functions.
Installation not required, just unzip in a folder of your selecction.
VirtualDub:
http://sourceforge.net/projects/virtualdub/files/virtualdub-win/1.9.11.32842/VirtualDub-1.9.11.zip/download
Video capture/processing utility with many useful functions.
Installation not required, just unzip in a folder of your selection.
Step 2:
Get the video you want to make the GIF.
Step 3:
Open AvsPmod and go to File - Open.
Select Source files and open the video file.
Change "DirectShowSource" by "FFVideoSource":
<pre>FFVideoSource("D:/Downloads/Video/Chuu2/Chuu2-02.mkv")
Press "Next Frame" button, the video should load and you will be able to watch the video frame by frame.
Optional:
If you want to keep the softsubs, first Demux the ass/ssa/srt file from the MKV with MKVExtract.
Drag the ass/ssa/srt file to AVSPmod and change "DirectShowSource" by "TextSubMod":
<pre>TextSubMod("D:/Downloads/Video/Chuu2/Chuu2-02.ass")
Then find the part of the video you want to make GIF with the bottom slider, and look at the number of frame. Then add in a new line:
#Trim(0,0)
and replace the first 0 with the number of the frame you want the gif start, and the second with the last frame.
NOTE: in case you want to make a gif from different parts of the video just add another Trim with "+" without spaces between the first an the second:
<pre>#Trim(27651,28108)+Trim(28202,28309)
Then remove the leading "#", and go to the first frame with the bottom slider. Click on the Play/Pause button to see the preview of your gif.
NOTE: if you want a GIF with reverse loop just modify the Trim line and add something like this:
<pre>a=Trim(16215,16484)
b=Reverse(a)
a+b
If it's OK, save the script as AVS, and close AvsPmod. If not, adjust the trims.
Step 4:
Open VirtualDub, and open the avs script in "File - Open Video File".
You must see 2 video frames(depend on your screen and the video resolution, you can't see the second video frame)
Fullscreen VirtualDub(big image)
NOTE: right click in the first video frame and adjust the zoom to 50% or less.
Go to "Video - Filters", here we add 1 or 2 filters to obtain the final resolution of the gif.
If you need to crop the gif to a specific part of the screen, press "Add..." button and find "Null Transform" and press OK.
Then press "Cropping..." button, and adjust the margins to obtain just the part you want. Keep in mind the final size and the aspect ratio of your desired gif.
Press "Add..." again(of for first time if you don't crop the video file) and search "Resize". Here we can resize the video to obtain a small gif. Depend of what do you want to do with the gif is the size you put in this field, as Absolute size(in pixels) or Relative(%). I recommend to keep the same aspect ratio from the source(default option). Press OK button and press OK again.
You must see the second video frame at the final size. If it's OK, then we are ready to save as GIF.
Go to "File - Export - Animated GIF...".
Select the name and folder to save the GIF by pressing "...", and select Infinite loop.
Click OK and wait until the program finishes, and close VirtualDub.
You now get an animated GIF with the best quality possible(as the GIF only support 256 colors).
GIF
OPTIONAL:
You can modify the GIF with an image editing software to improve some aspects, but with the last step most of you get a fully functional GIF for whatever you want.
Outdated:
PS: IMG tag issue... when come back the BBCode I'll update the post. |