Find duration only with ffprobe in Windows I want to find video file duration only with ffprobe but
ffprobe FILENAME.EXT 2| find &quot;Duration:&quot; 

does not filter output to show just the line with &quot;Duration:&quot;  Instead, I got:

Argument '2' provided as input filename, but 'FILENAME.MP4' was
already specified.

How do I see just the duration of a file from the Windows command prompt?
First, if you just want information about a file, you should probably use &quot;ffprobe&quot;, not &quot;ffmpeg&quot;. Otherwise you'll get an answer, but you'll also have an error return status.
As to your real question: By convention, ffmpeg reserves STDOUT for binary video and audio data only. Everything else, including all the possible kinds of informative text, is sent to STDERR.
So, try changing your code to:
ffprobe FILENAME.EXT 2| find &quot;Duration:&quot;  (for a *nix shell)
or
ffprobe.exe FILENAME.EXT 2&gt;&amp;1 | findstr Duration (for a Windows shell)