0

The basic of what I'm trying to do is to run through my old encodes recursively and output the results of ffprobe to a file so I can review it.

This is what I am trying and it is not working...

for /d /r "D:\Video\TEST" %%a in *.mkv do if exist "%%a" echo ffprobe.exe -i "%%a" -hide_banner >> results.txt

Also, Ideally I would like to exclude any "trailer.mkv" file.

0

1 Answer 1

2

/D is for processing directories, not contents of directories.

for /r D:\Video\TEST %%a in (*.mkv) do (
  if "%%~nxa" neq "trailer.mkv" ffprobe.exe -i "%%a" -hide_banner 2>> results.txt )
1
  • Works great, thank you! Now I get to figure out how to parse all of it so I can remove the extra audio and subtitles! :D
    – Dizzy49
    Commented Jun 20, 2017 at 6:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.