error extracting audio: ffmpeg does not include a "mp3" encoder needed for output stream

in the past I extracted audio with this command:

ffmpeg -i file.mkv -ab 160k -ac 2  file.mp3

or

ffmpeg -i file.mkv -f mp3  file.mp3

but now ffmpeg gives me this error:

This build of ffmpeg does not include a "mp3" encoder needed for output stream 

how can have ffmpeg working with mp3 and other encoders??
how can I extract audio from my mkv files??
manythanks, ciao pier :slight_smile:

Did you do the “switch to Packman”?

When you do not understand the above expression, you probably did not.

uh :-), click on the “switch system to…” written in blue on the top of yast2 in repositories tab??, may be not, I’m doing it:), many thanks :slight_smile:

manythanks, it works now lol!