[FFmpeg-user] ffmpeg - Creating output file

CMG DiGiTaL cmarciog at gmail.com
Thu Apr 7 16:55:12 EEST 2022

I use the command below to generate the LUFS normalization file. Note that
the output file will be generated in the same folder as the renamed input

FOR /F "tokens=1,2 delims=," %%b IN ('ffprobe -v 0 -select_streams a
-show_entries "stream=sample_fmt,sample_rate" -of "csv=p=0"
"!filename!.flac"') DO (
  ffmpeg -hide_banner -y -i "!filename!.flac" -af
-c:v copy -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v
comment="Cover (front)" -map 0:0 -c:a flac -sample_fmt:a %%b -ar:a %%c
"..\Áudios LUFS\!filename!_LUFS_!vLUF!.flac"

Note that the output file name will be:
"..\LUFS Audios\!filename!_LUFS_!vLUF!.flac"
eg. Music_LUFS_-10.0.flac

When I run the command in the folder that already has this file, a new file
is created:

So the folder has two files with the same content but with different names:

The output command:
"..\LUFS Audios\!filename!_LUFS_!vLUF!.flac"

can it be used with some option to replace files that have the same names
instead of creating another one with a different name?

More information about the ffmpeg-user mailing list