Aykhan Amiraslanli
Aykhan Amiraslanli

Reputation: 643

ffmpeg Convert audio files to mp3 using ffmpeg same quality

How can I convert audio files to mp3 with original file's audio quality?

ffmpeg -i audio.ogg -f mp3 newfile.mp3

I want to know is that code converts with same quality?

Upvotes: 6

Views: 21652

Answers (1)

Aykhan Amiraslanli
Aykhan Amiraslanli

Reputation: 643

it is impossible. FFmpeg cannot search for you input file's bit rate and then cannot copy funded bit rate to output. We need to find the input file's bit rate then we need to convert to mp3. This code converts audio files to mp3 with 320 kbps bit rate.

ffmpeg -i 31352.m4a -ab 320k -f mp3 newfile.mp3

Upvotes: 6

Related Questions