I made a script for ffprobe I can use to view information of my media more easily. An additional feature I want is to breakout the output information to a log file.

Implementation 1:

@echo off

for %%f in (%*) do (ffprobe -hide_banner -i %%f>"%~dp1ffprobe.log)

Implementation 2:

@echo off

for %%f in (%*) do (ffprobe -hide_banner -i %%f)

The issue I am having is that the log is being created in the expected location but it it always empty with either of these implementations. Usually either of these methods for breaking into a file have worked for me. Is there a native or alternative way of accomplishing this?

1 Answer 1


With ffprobe 5.1 or later, you can add -o OUTFILE to store probe data in a file.

If using redirection with earlier versions, redirect stderr as well.

  • I have tried this, but I believe this is part of ffmpeg and not ffprobe. It works in ffmpeg when converting or remuxing, but I am unable to get output saved to a file with the same flag. Commented Apr 3 at 0:52
  • ffmpeg has no -o option.
    – Gyan
    Commented Apr 3 at 3:57

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.