Cannot convert ANY file to MP3 (tried with MP4 and AAC)

*nix specific usage questions
DAC324
Blank Cone
Blank Cone
Posts: 40
Joined: 04 Aug 2006 18:12

Cannot convert ANY file to MP3 (tried with MP4 and AAC)

Postby DAC324 » 06 Feb 2022 15:21

Hello all,

I am using VLC 3.0.16 under Linux.
It looks like it is impossible to convert any file (no matter if video or audio) to MP3. Apparently, VLC cannot make use of an MP3 encoder in Linux.
I tried with a MP4 video file (H.264/AAC) as well as with an AAC audio file.

All I get using the guide for transcoding provided at https://www.vlchelp.com/convert-video-audio-mp3/ is an empty file when I choose MP3 output.

If I choose, for example, FLAC or OGG, I get the expected audio file which plays flawlessly. Only MP3 is not working.

As there is no error message, I do not know what I could try to fix this.

Please let me kindly ask you for help.

Thank you very much in advance and kind regards,
DAC324

egmond42
New Cone
New Cone
Posts: 2
Joined: 03 Sep 2022 21:54

Re: Cannot convert ANY file to MP3 (tried with MP4 and AAC)

Postby egmond42 » 03 Sep 2022 22:00

I have the same problem since I updated to Ubuntu 22.04.1 LTS
Is there any driver I have to add to the system?
thanks in advance!
kind regards
egmond

DAC324
Blank Cone
Blank Cone
Posts: 40
Joined: 04 Aug 2006 18:12

Re: Cannot convert ANY file to MP3 (tried with MP4 and AAC)

Postby DAC324 » 04 Sep 2022 13:35

As you can see from the fact that nobody responded to the initial post for several months, this question seems to be of no interest to anybody.
We will have to accept that but some information about the reasons would be great.

Rémi Denis-Courmont
Developer
Developer
Posts: 15151
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Cannot convert ANY file to MP3 (tried with MP4 and AAC)

Postby Rémi Denis-Courmont » 04 Sep 2022 16:14

I believe that Debian and Ubuntu are stripping AAC encoding from their VLC packages. That being the case, you have to expect that it won't work. There is not much to be done about it here.

You can install the VLC Snap if you want an unstripped VLC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

DAC324
Blank Cone
Blank Cone
Posts: 40
Joined: 04 Aug 2006 18:12

Re: Cannot convert ANY file to MP3 (tried with MP4 and AAC)

Postby DAC324 » 04 Sep 2022 16:43

Looks like it's not only Debian and Ubuntu but Arch as well.
Thanks for that hint anyway - looks like we will have to ask our package maintainers.

UPDATE: At least in Manjaro Linux, the conversion to MP3 works again with vlc 3.0.17.4. Looks like checking for an updated vlc package indeed makes sense :)

egmond42
New Cone
New Cone
Posts: 2
Joined: 03 Sep 2022 21:54

Re: Cannot convert ANY file to MP3 (tried with MP4 and AAC)

Postby egmond42 » 11 Sep 2022 12:56

I found a solution that works for me:
I changed the profile for mp3, section audiocodec from "MP3" to "MPEG Audio"

snowfinch
New Cone
New Cone
Posts: 1
Joined: 05 Aug 2023 19:21

Re: Cannot convert ANY file to MP3 (tried with MP4 and AAC)

Postby snowfinch » 05 Aug 2023 19:23

- I changed the profile for mp3, section audiocodec from "MP3" to "MPEG Audio"
That worked for me, too! Thanks for the hint!

BroadcastTV
Blank Cone
Blank Cone
Posts: 23
Joined: 24 Jan 2021 20:43

Re: Cannot convert ANY file to MP3 (tried with MP4 and AAC)

Postby BroadcastTV » 11 Jan 2024 10:28

You might be missing the MP3 codec on your Linux system. VLC usually requires additional codec packages to handle MP3 transcoding. Try installing the 'lame' codec, which is specifically for MP3. It's available in most Linux distributions' package repositories.

Paramahansa
New Cone
New Cone
Posts: 4
Joined: 28 Dec 2017 13:02

Re: Cannot convert ANY file to MP3 (tried with MP4 and AAC)

Postby Paramahansa » 26 Jan 2024 10:26

Had the same problem, and this worked for me.

I fixed it by installing 'lame'. Just open your terminal, type a command to get 'lame' (it's different for each Linux version), and that should do it. It's pretty straightforward and worked well for me.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests