ffmpeg overwrite output file if exists
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"?
Use the -y
option to automatically overwrite [docs]:
ffmpeg -y -i input.flac output.mp3
I need to add the -y
global switch before specifying the output file to accomplish this
ffmpeg -i /audio/191079007530_1_01.flac -t 51 -ss 69 -y /clips/44z274v23303t264y2z2s2s2746454t234_clip.mp3 2>&1 >> /ffmpegLogs.log
Alternatively, you can use the
-n
option to deny overriding the file.