Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



ffmpeg - How to ext...
 
Share:
Notifications
Clear all

[Solved] ffmpeg - How to extract a single thumbnail from a video file

1 Posts
1 Users
0 Likes
5,926 Views
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2676
Topic starter  

With the help of ffmpeg, it's simple to extract a single thumbnail from a video file:

./ffmpeg -ss 400 -i movie.mp4 -vframes 1 -s 316x145 -f image2 /tmp/preview.jpg

This statement: 
- extracts a frame (-vframes 1),
- at 400 seconds into the movie (-ss 400),
- from the movie file (-i movie.mp4),
- with a size of 316x145 (-s 316x145),
- forced as a JPEG image called preview.jpg (-f image2 /tmp/preview.jpg).

ffmpeg is cross platform and runs under Windows, MacOSX, and Linux.

   
ReplyQuote
Share: