twidth=$(($width * $target / $height))
-[ -f "$trans" ] || nohup avconv -i "$video" -s "${twidth}x${target}" -threads auto "$trans" &
+if ! [ -f "$trans" ]; then
+ [ "$target" -le 240 ] && nohup avconv -i "$video" -s "${twidth}x${target}" -b:a 80k -threads auto "$trans" &
+ [ "$target" -gt 240 ] && nohup avconv -i "$video" -s "${twidth}x${target}" -threads auto "$trans" &
+fi
echo "Location: /transcoded/${info}.${target}p.webm"
-echo
+echo