[LINUX] XBMC Thumbnailer

Come up with a useful post-processing script? Share it here!
Post Reply
ju1ced
Newbie
Newbie
Posts: 3
Joined: June 21st, 2008, 1:04 pm

[LINUX] XBMC Thumbnailer

Post 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
Post Reply