26
2
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?
26
2
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?
47
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
1
sox
didn't directly work with MP3s for me. I had to installlibsox-fmt-mp3
– gsmafra – 2016-03-21T18:58:13.52010
ffmpeg
is a perfectly appropriate tool, though it may be overkill in a way. – leftaroundabout – 2018-08-10T15:44:20.7672
And if you need constant bitrate (CBR), you can add something like
– Ryan – 2019-02-18T15:41:36.380-b:a 64k
(https://trac.ffmpeg.org/wiki/Encode/MP3).Command to use sox resampler with the ffmpeg is
– Ivan Shatsky – 2019-11-17T12:13:05.877ffmpeg -i file1.mpg -af aresample=resampler=soxr -ar 44100 file1-enc.mpg
, see FFmpeg Wiki.Yes sox is much better for audio, thanks for the tip! – Michael Pliskin – 2012-01-04T11:17:08.680
6ffmpeg supports sox resampler since 1.1 – Benja – 2014-04-10T15:04:04.323