求convert Freebsd脚本 BSD改成base脚本还是不能运行
#!/bin/bash
Extension="mpg 3gp mov mpeg vod mp4 m4v avi wmv mpe"
#INPUT YOUR SUPESITE PATH
siteroot="/void1/root/aaaa"
for e in $Extension; do
fullfiles=`find $siteroot/video/temp -name "*.$e" -exec ls {} \;`
for fullfile in $fullfiles;do
if [ -f $fullfile ];then
a=`basename $fullfile | awk -F "." '{print $1}'`
b=`echo $a | cut -d_ -f 2 | cut -c-6`
if [ !-d $siteroot/video/$b ]; then
mkdir $siteroot/video/$b
chown -R www:www $siteroot/video/$b
fi
/usr/local/bin/mencoder $fullfile -o $siteroot/video/$b/$a.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc
chown www:www $siteroot/video/$b/$a.flv
ffmpeg -i $siteroot/video/$b/$a.flv -y -f image2 -ss 8 -sameq -t 0.001 -s 480*360 $siteroot/video/$b/$a.jpg
chown www:www $siteroot/video/$b/$a.jpg
rm $FullFile
fi
done
done
[root@ /home]# uname -a
FreeBSD 7.0-RELEASE-p2 FreeBSD 7.0-RELEASE-p2 #0: Wed Jul 2 00:39:33 UTC 2008 root@:/usr/obj/usr/src/sys/PENGTAI i386
[root@ /home]# ./convert
bash: ./convert: /bin/bash: bad interpreter: No such file or directory
[root@ /home]#