[mythtv-users] mythvideo thumbnails

David Miller dave at justdave.net
Tue Jul 10 02:01:55 UTC 2007


On June 6, 2007, damonkieman wrote:
> i've taken this scripts written by segaera and consolidated everything into
> one script. also, this script will run the query to get the videos to
> update only once, whereas segaera's is running once for each video.
> furthermore, this script takes the length of the video into account when
> skipping ahead for the screenshot position. a percentage is used instead of
> a fixed value to get a good capture in videos of widely varying lengths.
> here it is: 

I had problems getting this to work on Ubuntu... not quite sure why.  It
was losing the first half of each line when reading in the results from
the initial DB query.

Anyhow to get it working, I wound up rewriting it as a Perl script, and
I've posted it on the mythtv wiki at
http://www.mythtv.org/wiki/index.php/Generatevideothumbs.pl

Hope it's helpful for folks.  Running this as a cron job seems to be
pretty useful if you're frequently adding videos.

-- 
Dave


More information about the mythtv-users mailing list