2/20/2023 0 Comments Windows ffmpeg batch convertSo I went ahead and changed the *.flv in your script to *.avi.Īfter running the bat file and adding “fileone.avi” to the folder I had an error saying “fileone no such file in directory”. These files are then converted in flash flv files. The files that are being added to the folder are avi files. I’m wondering if someone can guide me in the right direction. I’m new to writing batch files so I don’t have the expertise to finish this off. I’ve poked around on the Internet and can’t seem to find a solution. I would like the batch file to automatically grab the new file in the folder and start ffmpeg. This bat file works if I drag and drop the avi file into it however this isn’t how I want it to function. What I have done is created a bat file named “auto.bat” which is being run automatically by the program every time a file is added to the folder.Ĭ:\ffmpeg\ffmpeg.exe -y -i %1 -vcodec flv -b 250k -r 14.985 -acodec libmp3lame -ab 40k -ar 22050 -ac 1 -vol 276 -qscale 5 %1.flv This program doesn’t have any arguments for the file and simply runs any program upon addition of a new file. I have a monitoring program that automatically executes/runs a program every time a video file is added to a folder. Over the past few days I have been trying to automate the ffmpeg conversion process to save my self some time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |