scripts

random scripts
git clone https://git.parazyd.org/scripts
Log | Files | Refs

convert (206B)


      1 #!/bin/sh
      2 
      3 for i in *; do
      4 	if [ "$i" = "$(basename $0)" ]; then
      5 		continue
      6 	fi
      7 	out="$(echo $i | sed -e 's/.opus$/\.mp3/' -e 's/.m4a$/\.mp3/')"
      8 
      9 	ffmpeg -i "$i" -codec:a libmp3lame -qscale:a 0 "$out"
     10 done
     11