title: How to get frame rate and stream count information of video files into a text file with using MediaInfo?
body: <p>I have a problem with a console command executed from within a batch file in a command prompt window on Windows 7. I want to get the frame rate and the number of audio streams of a video and write them into a text file. For the frame rate there is no problem, I run this command from a batch file:</p>
  
  <pre><code>for %%a in (C:\Documents) do (
      echo.
      Mediainfo --Inform=Video;%%FrameRate%% %%a
  )&gt;&gt; "D:\TestFrame2.txt"
  </code></pre>
  
  <p>But for the number of audio streams, it returns an empty text and there is no error message. I use exactly the same batch file, but I replaced <code>Video</code> by <code>Audio</code> and <code>FrameRate</code> by <code>StreamCount</code>.</p>
  
  <p>I see these parameters when I run <code>Mediainfo --Help-Inform</code>.</p>
  
  <p>And also a lot of others options like <code>Mediainfo --Inform=General;%%AudioCount%%</code> don't work.</p>
  
  <p>I have tested already to replace <code>Inform</code> by <code>Output</code> and there is no change. And I have tested also to use this command directly in the console window without redirecting the results into a text file and it's the same thing.</p>
  
  <p>What is the reason for not getting number of audio streams written to the text file?</p>