#!/bin/bash

input="$1"
base=`basename ${input%.*}`
avconv -i "$input" -ac 1 -ar 44100 -codec:a libvorbis $2 sounds/$base.ogg
normalize-ogg sounds/$base.ogg

#!/bin/bash

input="$1"
base=`basename ${input%.*}`
avconv -i "$input" -vn -ac 1 -ar 44100 -codec:a libvorbis $2 sounds/$base.ogg
normalize-ogg sounds/$base.ogg

Drop video if input is a video file
Drop video if input is a video file
