FFMPEG Command to Convert the GIF Animation to MP4 Video in Terminal
337 views
Jun 3, 2025
ffmpeg -f gif -i input.gif output.mp4
View Video Transcript
0:00
uh hello guys welcome to this video so
0:02
in this video I will show you a ffmppg
0:05
command which will be able to convert or
0:08
export a GIF animation into a MP4 video
0:11
file so we have this GIF animation file
0:14
right here uh it's a animated file here
0:17
you will see GIF animation file so what
0:20
I will do in this video I will show you
0:22
how to export this file into a video
0:25
file which can be MP4 so just go to your
0:29
command line and you just need to
0:31
execute this command here just write
0:33
fmpfmpg - f and then we provide the gif
0:38
file as an
0:39
input so dash i followed by the file
0:44
name which is
0:45
sample.gif so this is actually the
0:48
command here we'll see and after that we
0:51
just need to name the output file here
0:54
output.mpp4 so this is a very simple
0:56
command uh you provide your input GIF
0:59
file and then change to the MP4 using
1:03
ffmppg so if I execute this now you will
1:06
see the video file will get
1:09
created and if I try to open this you
1:12
will see this is your actual video file
1:15
so let me just open it with
1:26
So you can see now that this GIF
1:28
animation is successfully converted to a
1:33
video so in this easy way you can
1:36
actually convert any GIF
1:39
file to a video you
1:43
simply write ffmpg- i the input file
1:48
here which is your gif file and then the
1:51
output you can even write like this as
1:54
well this is a shorthand command which
1:56
will also do the same thing
2:05
so thank you very much for watching this
2:07
video and also check out my website
2:10
freemediatols.com which contains
2:12
thousands of tools
#Clip Art & Animated GIFs
#Multimedia Software
#Online Goodies
#Online Video