Page 1 of 1

[LINUX] XBMC Thumbnailer

Posted: June 30th, 2008, 5:39 pm
by ju1ced
There is probably a better way to do this, but this seems to work fine for avi files. Modify NUMSEC to set how far into the video you would like it to seek before capturing a thumbnail. Would be nice if someone could edit this to alter NUMSEC based on the size of the avi.

Code: Select all

#!/bin/sh
NUMSEC = 300
for NAME in $(find $1 -type f -name '*.avi')
do
        ffmpeg -i "$NAME" -f mjpeg -t 0.001 -ss $NUMSEC -y $1/$(basename "$NAME" .avi).tbn
done