AnilKumar

Joined: 09 May 2008 Posts: 197
|
Posted: Tue Jul 14, 2009 9:29 am Post subject: How to convert thumbnails from one video file using ffmpeg? |
|
|
Hi,
the following command will be convert the thumbnails from the video file.
Ffmpeg –i video.avi –r 0.1 –sameq –f image2 video%02.jpg
-i is the input file
-r is for every five seconds will be one fifth (1/5) or 0.2, so to grab ever 0.2 frame, this code will be used.
Specified frame to create thumbnails:
Ffmpeg –i video.mpg –an –ss 00:00:03 –t 00:00:01 –r1 –y –s 320X240 video%d.jpg
-ss record the start time
-t record the end time
-i input file name
-an disable audio
-r fps
-y overwrite file
-s output dimensions
Create multiple thumbnails at specified time interval.
Ffmpeg –i video.mpg –an –ss 00:01:03 –t 00:00:30 –r 1 – y –s 320X240 %d.jpg
This command will create thumbnails of dimensions 320X240, and from 00:01:00 to 00:00:30 in this time interval, 30 thumbnails will be created.
Thank You,
Anil Kumar  |
|