0

I use the following FFMPEG script for DAV to AVI file conversion:

for %% A IN (* .dav) DO ffmpeg -i "%% A" -vcodec libx264 "%% A.avi

But DAV files are generated in the folder every 30 minutes, the script is triggered when the 1st DAV file is generated, but the conversion is fast, and it finishes before the next DAV file is generated in the folder, I need the script. convert the DAV and wait for the next file to arrive in the folder, or after converting the last DAV file that arrives in the folder 12:00 PM the script terminates the process.

Compo
  • 36,585
  • 5
  • 27
  • 39
AUDICOM
  • 3
  • 4
  • 1
    Start with [How to monitor a folder and trigger a command-line action when a file is created or edited?](https://superuser.com/questions/226828/how-to-monitor-a-folder-and-trigger-a-command-line-action-when-a-file-is-created) and [batch file to monitor additions to download folder](https://stackoverflow.com/questions/4230976/batch-file-to-monitor-additions-to-download-folder). Probably many other examples on Stack Exchange. – llogan Sep 25 '19 at 22:09
  • Start by correcting the code you've posted, to remove those unnecessary spaces! – Compo Sep 25 '19 at 22:12
  • The spaces were typos, but have already been run. – AUDICOM Sep 26 '19 at 12:20

0 Answers0