Is it possible to take screenshots of videos via mlt? I would like to take
screenshots of all videos to use as thumbnails on a web interface I¹m
building for a Playout Server.
Independence Media | MiND TV
215.483.3900 ext.204 | ssully@...
8200 Ridge Avenue, Philadelphia, PA 19128
http://www.independencemedia.org | http://www.mindtv.org
From: Dan Dennedy <dan@de...> - 2009-05-07 17:33:19
On Thu, May 7, 2009 at 8:31 AM, Skyler Sully <ssully@...> wrote:
> Is it possible to take screenshots of videos via mlt? I would like to take
> screenshots of all videos to use as thumbnails on a web interface I’m
> building for a Playout Server.
Do you really want the ability to make screenshots or do you want to
make thumbnails? Thumbnails is quite easy with inigo, and there is a
sample at mlt++/swig/ruby/thumbs.rb. To use inigo:
$ inigo /path/to/some/video in=30 out=30 -consumer avformat:thumb.png
vcodec=png s=160x120 aspect=@4/3
The "in=30 out=30" makes it only output one frame at an offset of 30
frames from the beginning of the clip. The aspect property takes a
float value, and the '@' prefix tells MLT to evaluate the simple