Convert video to images on Linux

Опубликовано: 04 Октябрь 2024
на канале: Average Linux User
12,083
178

If you want to extract frames from a video fast and precise, there is no better tool than the command line utility ffmpeg.

If you prefer graphical tools, you can extract images with VLC player as I showed in this video.

If you are interested in making GIF animation, I suggest you watch these two videos:

Making an animated GIF in Linux    • Making an animated GIF in Linux  
How to make a GIF with GIMP    • How to make a GIF with GIMP  

To convert viedeo to png images you need to run this command:

ffmpeg -ss 00:10 -i video-filename.mp4 -t 00:03 images-filename_%03d.png

where
-ss defines the offset from the beginning of the video
-t specifies how long the fragment should be.
-i is to provide the input video file name.
%03d - indicated to use 3 digits number. For example, the output will be like this:
images-filename_001d.png
images-filename_002d.png
images-filename_003d.png

To have have all the tools to make GIF animations from images and videos, save this playlist

################################################

Support on Patreon:   / averagelinuxuser  

Donate through PayPal: https://www.paypal.me/Kryvokhyzha

################################################

More cool Linux stuff at other social media:

Google+ - Best Linux Stuff: https://plus.google.com/+AverageLinux...
Facebook - Top Linux Tips:   / averagelinuxuser  
Twitter - Daily Linux News:   / avglinuxuser  

Website: http://averagelinuxuser.com/