FFMPEG Command to Extract Video Screenshot or Thumbnail at a Specific Time Interval in Terminal
51 views
Jun 3, 2025
ffmpeg -ss 01:23:45 -i input -frames:v 1 -q:v 2 output.jpg
View Video Transcript
0:00
uh hello guys uh welcome to this video
0:02
so in this video I will show you how to
0:04
take uh the thumbnail or a screenshot of
0:07
a video at a particular location or a
0:10
particular time interval so let's
0:11
suppose I have this video file right in
0:14
the terminal
0:16
1.mpp4 so if you want to create or take
0:19
the screenshot hello guys take the
0:21
screenshot of this video at a particular
0:23
time interval so there is a command in
0:25
ffmppg which will do this automatically
0:27
for you so just open the terminal right
0:30
here just write here
0:32
ffmpg
0:33
dash here we need to provide the
0:36
starting time here so which time
0:37
interval you need to take the screenshot
0:39
or the image or the thumbnail so we will
0:43
simply provide the particular time here
0:46
so 1 minute 23
0:51
second so you can see that
0:53
so my video if you if I open this video
0:56
it is 2 minute uh long video
1:02
so I just need to provide a particular
1:05
time period in which the screenshot will
1:08
be taken
1:12
so
1:14
so you will see 1 minute 32 second we
1:18
have provided this time so dash I again
1:21
we need to provide the name of the video
1:23
so 1 dot
1:25
mp4 and
1:27
then after that we just need to provide
1:30
uh dash
1:33
frames colon v
1:36
uh 1 and then we just need to say dash q
1:41
colon
1:43
v 2 and then the image file which will
1:47
get created so this is the command here
1:50
just pause the video and just write this
1:52
in the first section here we are
1:54
providing the particular time interval
1:56
then we are providing this input file
1:59
-ash i and then dash frames colon v 1
2:04
dash q col v2 and this is your output
2:08
image file so just copy this command and
2:11
just execute this so now what happens if
2:13
you see it the image file is
2:15
automatically generated so it will take
2:19
the screenshot at that particular time
2:21
interval in this video so you can see
2:23
that frame is created this is your
2:26
thumbnail so this is really useful
2:28
because if you are uploading some kind
2:31
of videos to social media if you want to
2:33
take the thumbnail at that particular
2:35
location in the video so this command
2:37
will be very much useful so just you
2:39
need to part uh input the time interval
2:42
at that
2:44
particular you just need to specify the
2:47
time here and then it will automatically
2:49
take the screenshot and then save this
2:56
image so let me just change the image
2:59
file here output2 jpg so you can see
3:02
that so now this is the different
3:06
screenshot at that
3:08
particular time interval so this was the
3:11
command very useful ffmpg command i've
3:14
given this command in the description of
3:16
this video and also check out my website
3:19
freemediatools.com which contains
3:21
thousands of tools
#Event & Studio Photography
#Flash-Based Entertainment
#Multimedia Software
#Photo & Video Sharing
#Software
#Video Sharing