I do batch file flattening (there are 30 .mp3 files and one input.mp4 file in one folder):

FOR %%f IN (*.mp3) DO ffmpeg.exe -i "%%f" -i "input.mp4" -acodec copy -vcodec copy "%%~nf.mp4" 

how to make ffmpeg delete all audio files after batch processing ... tried to write to the batch file: del FOR %% f IN (* .mp3) ffmpeg does not see them ...

    1 answer 1

    I will answer myself, can someone come in handy:

     FOR %%f IN (*.mp3) DO ffmpeg.exe -i "%%f" -i "input.mp4" -acodec copy -vcodec copy "%%~nf.mp4" del *.mp3