Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 8370  / 2 Years ago, sun, february 27, 2022, 4:57:57

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.)


More From » mp3

 Answers
0

You seem to be using the wrong codec name. To see which codecs are supported, do:



avconv -codecs


according to this the codec name is libmp3lame (you have an extra 0). This is on my system however, so yours may be different. The command I gave will let you find out.


[#32560] Sunday, February 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leddre

Total Points: 180
Total Questions: 113
Total Answers: 108

Location: France
Member since Thu, Oct 27, 2022
2 Years ago
;