XBMC thumbnails via bash script

Simple bash script to create thumbnails for XBMC from avi files. Requires ffmpeg.

xbmcthumb.sh

 
#!/bin/sh
if [ $2 eq "" ]; then
	NUMSEC = 300
else 
	NUMSEC = $2
fi
 
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
chmod +x xbmcthumb.sh
./xbmcthumb.sh /folder/with/avi/files/in/it

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment