I'm trying to figure out a batch script (windows based) which will allow me to multiplex some .m2v and .wav files that exist in a load of sub-directories (within one single main directory). They need to be restriped and transcoded as well, the output files need to be MXF and end up in another folder. I'm new to batch scripts, not so new to FFMPEG commands. I've not been able to find any batch scripts so far that allow for multiple files to be used, only ones that work to convert a single file.
After much searching the closest thing I've seen is this, which I've tried with no success. Oddly, one time it did produce a .mxf file, albeit 0KB, but every time since I get nothing.
for %%a in (".m2v") do ffmpeg -i "%%~na.wav" -i "%%~na.m2v" -acodec copy -vcodec copy "newfiles\%%~na.mxf".
I'm not sure what is meant to go in the parenthesis where I have (".m2v").
what does that represent?