[FFmpeg-user] Batch file to convert
astroelectronic at t-online.de
Thu Sep 27 23:42:00 EEST 2018
Am 27.09.2018 um 22:30 schrieb Michael Koch:
> Am 27.09.2018 um 21:33 schrieb esikcalabrese at verizon.net:
>> Any suggestions in a batch file which would take 2 user defined
>> variables to
>> convert an audio file? I have drafted the below which so far does
>> not work.
>> echo off
>> set /p filename = "Enter Unconverted File Name: "
>> set /p outputfilename= "Enter Converted File Name: "
>> cd "c:\ffmpeg\bin"
>> START ffmpeg -i %filename% %outputfilename:
> after outputfilename, replace : by %
Is your input file in the c:/ffmpeg/bin directory?
If not, then ffmpeg won't find it.
If you have the input file in the same directory where you have the
batch file, remove the cd command and then write:
c:/ffmpeg/bin/ffmpeg -i %filename% %outputfilename%
More information about the ffmpeg-user