I have about 20 .webm files that I would like to convert to audio in the terminal. I want to do
avconv -i *.webm -acodec libmp3lame0 -aq 4 *.mp3
I tried:
for i in *.webm; do avconv -i "${i}" -acodec libmp3lame0 -aq 4 "${i%.wemb}.mp3"; done
but it says "libmp3lame0 encoder not found." It is installed, though. I also installed ubuntu-restricted-extras and reinstalled libav-tools.
I also tried
for i in *.webm; do avconv -i "${i}" -acodec -aq 4 "${i%.wemb}.ogg"; done
to remove the whole mp3/LAME aspect, but then it just said '.ogg encoder not found.'
This worked once before when I tried to convert using libmp3lame0 without the for loop...but I just tried to convert one file and it doesn't work anymore.
Thanks. (I'm using 12.10.)