Looking for a way execute a task on all files in a directory (recursively) on Windows
Posted
by
stzzz1
on Super User
See other posts from Super User
or by stzzz1
Published on 2014-06-12T23:28:00Z
Indexed on
2014/06/13
3:28 UTC
Read the original article
Hit count: 213
I have a huge number of mp4 video files that needs to have a volume boost. I need a way to execute a ffmpeg audio filter on all files in a specified base directory (and in subdirectories as well). My problem is that I'm working on a Windows computer and I have no knowledge of its shell syntax.
I would like to do the equivalent of what this bash script does :
TARGET_FILES=$(find /path/to/dir -type f -name *.mp4)
for f in $TARGET_FILES
do
ffmpeg -i $f -af 'volume=4.0' output.$f
done
I spent quite some time this afternoon looking for a solution but the recursive nature of what I need (that is so simple with find!) isn't too clear.
Any help would be greatly appreciated!
© Super User or respective owner