Python script for creating .gifs from video files using ffmpeg
- python >= 3.6
- ffmpeg
- Download
- (Optional)
chmod +x gifify.py
- (Optional) Move the script to a location that is in your PATH variable
- Run the .py file or run
gifify.py --file <path>
if you did the optional steps
--file --f <path>
Select the file to operate on--mode --m <auto|mp4|cut|crop|resize|gif>
Select the mode. Defaultauto
--timestamp --time --t <hh:mm:ss.ds>
The starting timestamp for modecut
in ffmpeg format--duration --dur --d <hh:mm:ss.ds>
The duration for modecut
in ffmpeg format--startx --x <number>
The starting x coordinate for modecrop
in pixels--starty --y <number>
The starting y coordinate for modecrop
in pixels--resolution --res --r <number>
The length of the side of the square for modescrop
andresize
. Support for non-square rectangles planned.