ffmpeg -i output.gif img/frame_%03d.png
Show More Show Less View Video Transcript
0:00
uh hello guys welcome to this video So
0:02
in this video I will show you how to
0:04
extract frames from a a GIF file inside
0:07
FMPG So we have a simple uh GIF file
0:11
right here GIF animation file So if I
0:13
try to open this you will see it's a
0:16
simple GIF animation So what I need to
0:19
do right here in this video I will show
0:21
you a ffmppg command which will be able
0:24
to extract each frame and save it as a
0:27
PNG file So for this we will create a
0:30
folder img folder I will create and
0:34
inside this folder we will extract all
0:36
the frames of this gif file So we
0:38
actually execute a very simple command
0:40
of ffmppg right in the terminal itself
0:43
So we just write ffmpg- i followed by
0:46
the name of the gif file So here we
0:49
provide the name right here which is
0:52
sample.gif So after that we just provide
0:57
the folder in which all the frames
0:59
pictures will be stored So right here we
1:02
are providing this image slash after
1:04
that just writing frame
1:07
underscore and then the dynamic variable
1:10
we simply write percentage
1:13
sign03
1:15
dpng So this is actually the command
1:17
here and uh we actually take the input
1:20
GIF file and then we actually convert
1:23
them into a series of static images We
1:26
extract each frame So as I execute this
1:29
command here uh you will
1:31
see it is telling no such file or
1:35
directory Sorry let me just open the
1:39
command line right here So just need to
1:41
open the command line where the file is
1:44
present So we again write the same
1:46
command
1:51
Uh so we just change the file name sum
1:55
So as I press enter you will see it will
1:58
actually extract each frame and save it
2:01
as a PNG image So you can see that this
2:04
is frame one frame two frame three frame
2:06
four So all the frames have been
2:08
successfully
2:10
extracted and you can see this is your
2:13
actually GIF file which is actually
2:16
constructed from the series of static
2:19
images This is your GIF file So if you
2:21
want to extract all the frames you
2:23
actually execute this GIF uh ffmppg
2:26
command which is very simple We take the
2:29
simple GIF file and then we store all
2:32
the frames right here So this is the
2:34
command I've also given this command in
2:36
the description of this video So you can
2:38
just see right here each frame has been
2:41
successfully exported to a image file So
2:44
it's a PNG file right here So in this
2:47
easy way you can actually convert the
2:49
GIF into a series of PNG images of each
2:54
frame You can extract it So you can see
2:57
each frame has been successfully
3:00
extracted to a successful PNG image
3:05
So this was a tutorial on how to do this
3:07
and uh also check out my website which
3:10
is freemedia tools.com uh which contains
3:13
thousands of tools
#Flash-Based Entertainment
#Software
#Multimedia Software
#Online Goodies
#Clip Art & Animated GIFs
#Animated Films
