INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
Extract still image/frames from avi/mpg

Forum Index -> Video -> Linux Printer-friendly version
Reply to topic
Author Message
bigbadguy
Member


Joined: 05 May 2006
Location: Hong Kong

Post Posted: May 07, 2006 00:19 Posts Comp View users profile Send private message Reply with quote

I am looking for command line tools to script the process of extracting some still images/frames from a given avi/mpeg.

I had tried ffmpeg, which allow me to extract some gif ... but the quality crap... (may be i use the wrong switch ....)

Any advice will help smile.gif Thx


bigbadguy
Member


Joined: 05 May 2006
Location: Hong Kong

Post Posted: May 10, 2006 22:43 Posts Comp View users profile Send private message Reply with quote

seems like VLC and ffmpeg (i tried an old version before... but actully all newer version) actually can do...

for VLC

vlc -V image --image-out-format jpeg --image-out-ratio 200 --image-out-prefix xxxx /usr/file.mpg


bigbadguy
Member


Joined: 05 May 2006
Location: Hong Kong

Post Posted: May 13, 2006 20:38 Posts Comp View users profile Send private message Reply with quote

final version...

for really small thumbnail
ffmpeg -y -i x.avi -vframes 1 -ss 00:00:10 -an -s 120x90 -qmin 20 x%d.jpg

for high quality output
ffmpeg -y -i x.avi -vframes 1 -ss 00:00:10 -an -vcodec png -f rawvideo -s 320x240 x.png


Reply to topic All times are GMT - 6 Hours
Forum Index -> Video -> Linux Page 1 of 1





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
About   Advertise   Forum Archive   RSS Feeds   Statistics