Showing posts with label png/jpg. Show all posts
Showing posts with label png/jpg. Show all posts

Sunday, June 6, 2010

FFmpeg: Convert AVI file to series of PNG/JPG images

Extracting a movie file frame by frame and create images (png, jpg) of it. You can set the the frame rate, on how frequent you want an image extracted. Example, if you want to extract 1 image per sec, your rate is 1, if you want to extract every frame of the movie, your frame rate = frame rate of movie.
This technique is used to do a loss-less video editing in tools as Blender, were you can import a sequence of images. This procedure can be very time consuming for long video's, but the quality after editing rewards you for it.
Lets say you do a screen-capture, on a canvas of 1024x768, and created an AVI file with a frame rate of 15 frames per second. (typical for screen casts) you want every frame to be written out as an png-image file, where the numbering is expected to run up to 5 digits. (%05d - option will allow for numbers 5 digits long, padded with zero's)
The command line to do this would look as follows:

Thursday, October 15, 2009

Creating Thumbnails on Command Line

Image Magick is a great free image processing tool to do batch conversions. Many hosting companies running Linux servers will offer it by default. It will empower your website to create thumbnails and rescale images on the go (given your web-code utilizes it). For a full description click here

In this posting we want to explain how to create thumbnails (one by one or in batch)