Ffmpeg overwrite output file if exists

ffmpeg

I ran:

ffmpeg -i input.flac output.mp3

This prompts:

File 'output.mp3' already exists. Overwrite? [y/N] y

How do I automatically say "yes"?

Best Solution

Use the -y option to automatically overwrite [docs]:

ffmpeg -y -i input.flac output.mp3