Google Answers Logo
View Question
 
Q: Unix movie thumbnail extraction commad line tool ( No Answer,   1 Comment )
Question  
Subject: Unix movie thumbnail extraction commad line tool
Category: Computers > Software
Asked by: manuelk-ga
List Price: $20.00
Posted: 13 Sep 2004 22:33 PDT
Expires: 13 Oct 2004 22:33 PDT
Question ID: 400893
I am looking for a unix (freebsd compatible) command line tool to
extra thumbnails out of different kind of movie clips like ImageMagick
and other tools can do with pictures (example: one thumbnail every 10
seconds). The tool has to support the main video codecs (WMV/MPEG) but
more codecs/libraries would be prefered (ex. DiVX, XVID etc). I was
searching for links to open-source projects which can handle this but
couldn't find anything yet.

It is important that has to be a command line tool to support batch
processing and that no X-windows is available.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Unix movie thumbnail extraction commad line tool
From: drexel-ga on 26 Sep 2004 00:17 PDT
 
The transcode utility can do what you are looking for.  This can be
built from /usr/ports/multimedia/transcode.  Make sure you review your
make options (WITH_DIVX5=yes as an example) before you build.

Once you have transcode installed, you can use it to extract images
from your video stream like this:

transcode -o outputfile.jpg -i inputfile.avi -c 2100-2101,4544-4545 \
-y jpg,null -Z 320x240 -z 

This command will save frames 2100 and 4544 from the inputfile.avi
video into jpg files of size 320x240 named outputfile.jpg000000.jpg
and outputfile.jpg000001.jpg.

An explanation of the options:

-o            the base output filename to use
-i            the input file
-c            the frames to decode
-y jpg,null   sets output to jpg for video, null for audio
-Z 320x240    resizes the image to 320x240
-z            flips video horizontally

If the faces appear blue, swap the red and blue channels with -k.

You can also output to .ppm and a few other file formats described in the man page.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy