title: ffmpeg command line write output to a text file
body: <p>I'm using this script for shot detection in ffmpeg.</p>
  
  <pre><code>ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test.mp4,select=gt(scene\,0.3)"
  </code></pre>
  
  <p>I need to write the output into a text file in order to read the output from a c program. How can I do this? Any help is appreciated.</p>