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