videclip.sh
#!/bin/bash
T=$(/usr/bin/ffprobe -v error "$1" -show_format | grep grep duration | egrep -o '[0-9\.]+'
END=$((T - 2))
# ffmpeg -ss 00:00:10 -t $END -i "$1" -strict experimental "out_$1"
mencoder -ss 00:00:01 -endpos $END -ovc copy -oac mp3lame -lameopts abr:br=24 -o "out_$1" "$1"
if [ -f "out_$1" ];then
# mv "$1" "in_$1" -v
rm -v "$1"
mv "out_$1" "$1"
fiINFO