Member-only story

How convert my mac recording (.mov) to a gif file to upload to my Medium post? (ffmpeg)

Fredric Cliver
Feb 19, 2021

--

Run it on your terminal

brew install ffmpeg
brew update && brew upgrade ffmpeg

Use the ffmpeg with your custom option.

I used -r 10 to restricted to being only 10 frames per sec as the output.

ffmpeg -i [recordingfile.mov] -r 10 [outputfile].gif

Play speed and Scaling

ffmpeg -i ./original.MP4 -vf "setpts=0.5*PTS,fps=10,scale=480:-1" output.gif

if you set the ‘setpts’ with 2.0*PTS. The output will be slow down

0.5: x2 speed

0.66: x1.5 speed

2.0: x0.5 speed

scale=new_width:-1

ratio will be maintained and width will be changed as the ‘new_width’ value

--

--

Fredric Cliver
Fredric Cliver

Written by Fredric Cliver

13+ years in the digital trenches. I decode complex tech concepts into actionable insights, focusing on AI, Software Engineering, and emerging technologies.

No responses yet