How to extract frames from videos

Using mplayer, frames can be extracted from videos by simply selecting jpeg (or some other image format) as output driver. If the video is interlaced, a deinterlacing filter like yadif can be used. However, in this case it is important to add the scale filter at the end of the list in order to convert to RGB colorspace after deinterlacing.

The complete command looks as follows:

mplayer -vf yadif=1,scale -vo jpeg:quality=95 -nosound file.mpg

Advertisements

Tags: , , ,

One Response to “How to extract frames from videos”

  1. compare car insurance salt lake ut Says:

    Hi! This is my 1st commment herde sso I just wanted to give a
    quick shout out and say I really enjoy reading your articles.
    Can you recommend any other blogs/websites/forums that deal with the
    same subjects? Thqnks a lot!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: