1.

Solve : Batch script for every file found in a given directory.?

Answer»

Hello guys,

I have a KODAK Zi8 pocket CAMCORDER and i'm using a command line tool ffmpeg to remux the mov files to mp4, this works LIKE it should but i'm trying to automate the proces for all *.mov files found in a given directory.

At this moment i'm using:

CODE: [Select]@echo off
ffmpeg -y -i %1.mov -acodec copy -vcodec copy %1.mp4
I have to use this for all my mov files. How can I adjust the script so that it scans a given directory for mov files and RUNS the ffmpeg tool on each of them automatically?

Many thanksCode: [Select]for /f "delims=" %%A in ('dir /b *.mov') do ffmpeg -y -i "%%~dpnxA" -acodec copy -vcodec copy "%%~dpnA.mp4"Many thanks!

This seems to be working as it should!



Discussion

No Comment Found