Gifify - Convert Video to GIF Tool

Convert video files to optimized animated GIFs with Gifify. Easily create GIFs from MP4, add subtitles, text, and resize with this powerful command-line tool.

Gifify

Convert Video to GIF

Gifify is a powerful command-line tool designed to convert any video file into an optimized animated GIF. It's an essential utility for developers and content creators looking to easily generate GIFs from video sources.

Gifify Usage Examples

Below are common usage examples for the Gifify tool, demonstrating its flexibility in converting videos to GIFs with various options.

Basic Conversion

Convert an MP4 video file to a GIF. Replace ${input_mp4} with your input video file path and ${output_gif} with your desired output GIF file path.

# gifify
#
# Convert any video file to an optimized animated GIF

# convert MP4 ${input_mp4} to GIF ${output_gif}
gifify ${input_mp4} -o ${output_gif}

Skipping Initial Seconds

Create a GIF from a video, skipping the first 1.2 seconds. This is useful for removing intros or unwanted segments from the beginning of a video.

# convert MP4 ${input_mp4} to GIF ${output_gif}, skip first 1.2 seconds
gifify ${input_mp4} --from 00:00:01.200 -o ${output_gif}

Resizing GIFs

Convert a video to a GIF and resize it to a specific width while maintaining the aspect ratio. Here, it's resized to 800 pixels wide.

# convert MP4 ${input_mp4} to GIF ${output_gif}, resize it to width 800
gifify /tmp/output.mp4 --resize 800:-1 -o /tmp/output.gif

Adding Subtitles

Generate a GIF from a video and embed subtitles from an ASS file. This is great for creating GIFs with dialogue or captions.

# convert MP4 to GIF and add subtitles from the ASS file
gifify ${input_mp4} -o ${output_gif} --subtitles ${file_ass}

Adding Text Overlays

Create a GIF from a video and add custom text as a subtitle overlay. Replace ${subtitle_text} with your desired text.

# convert MP4 to GIF and add text "${subtitle_text}" as a subtitle
gifify ${input_mp4} -o ${output_gif} --text "${subtitle_text}"

Further Resources

For more advanced usage and options, refer to the official Gifify documentation or related resources: