Celeb Glow
updates | March 11, 2026

(solved ) Convert MP3 to Wav using FFMPEG, without trimming silence?

I am used to convert all my audio and video stuff with FFMPEG bat files because it's convenient.

I am currently using ffmpeg -i "%1" %~dpn1.wav in a Drag-and-Drop bat file, which does convert MP3 (and others) to WAV, but unfortunately the few milliseconds of silence at either end of the sound seem to be discarded. At the very least the sound length is no longer the same.

Is there a way to make FFMPEG output the exact same lenght without trimming any parts of the sound?

Answer: Thanks to Ricardo Bohner, who suggested adding -ss 00:00:00 to the mix, turning the code into ffmpeg -ss 00:00:00 -i "%1" %~dpn1.wav

-c copy was also suggested, but somehow didn't work. It also made Audacity unable to open the converted sound file, while Adobe audition still managed to do so.

1

1 Answer

Only -c copy option can guarantee the input and output streams has the same data / duration:

ffmpeg -i "%1" -c copy %~dpn1.wav

Any codec conversion (like skipping -c option entirely or use any other option than -c copy) can lead you to some differences between input and output. On the other hand, the above command will not work in cases where wav format will not be able to use the codec from the input file.

8

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy