Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques How to convert mp3 to m4a without losing quality

  • How to convert mp3 to m4a without losing quality

    Posted by Aaron Bernabeu on February 12, 2013 at 6:10 pm

    Hello,

    I´m trying to convert a .mp3 file to an .m4a format an the result is worse than the original. The sound have poor quality.

    I´m using this command:

    ffmpeg -i file.mp3 -acodec copy output.m4a

    and also:

    ffmpeg -i file.mp3 -acodec aac -strict experimental -ab 256k output.m4a

    Someone can help me please?

    Thanks in advance.

    Lou Logan replied 13 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply
  • Lou Logan

    February 12, 2013 at 7:17 pm

    Please include the complete ffmpeg console outputs for each ffmpeg command (and wrap them in the code tag for readability). Your first command will most likely complain:
    [ipod @ 0x19694a0] track 0: could not find tag, codec not currently supported in container

    However it will probably work with mp4 as your output container.

    Your second command uses the native AAC encoder. It is not a great encoder, especially at lower bitrates, but it shouldn’t be terrible at higher bitrates. Can you tell a difference between “file.mp3” and “output.m4a”? If yes, and if you must re-encode to AAC, then I recommend using another encoder, such as “libfdk_aac” or “libfaac” as described in the FFmpeg and AAC Encoding Guide (specifically the VBR examples). However, it is recommended to avoid re-encode from a lossy format to another lossy format if possible.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy