55

I have some MP3s that are in 48000 Hz sampling frequency. I'd like to burn them to CD, so I have to reduce the sampling frequency into 441000.

How to do that using ffmpeg?

1 Answer 1

93

ffmpeg doesn't look to be the appropriate tool; I'd normally use sox for audio-only files.

$ sox file1.mpg -r 44100 file1-enc.mpg

If you want to try using ffmpeg anyway, I think the correct command would be

$ ffmpeg -i file1.mpg -ar 44100 file1-enc.mpg
6
  • 9
    ffmpeg supports sox resampler since 1.1
    – Benja
    Apr 10, 2014 at 15:04
  • 2
    sox didn't directly work with MP3s for me. I had to install libsox-fmt-mp3
    – gsmafra
    Mar 21, 2016 at 18:58
  • 28
    ffmpeg is a perfectly appropriate tool, though it may be overkill in a way. Aug 10, 2018 at 15:44
  • 3
    And if you need constant bitrate (CBR), you can add something like -b:a 64k (trac.ffmpeg.org/wiki/Encode/MP3).
    – Ryan
    Feb 18, 2019 at 15:41
  • 2
    Command to use sox resampler with the ffmpeg is ffmpeg -i file1.mpg -af aresample=resampler=soxr -ar 44100 file1-enc.mpg, see FFmpeg Wiki. Nov 17, 2019 at 12:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .