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

One thought on “How to extract frames from videos

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: