title: How do I integrate the FFMPEG commands with Python Script?
body: <p>I am trying to extract the frames when the <strong>scene changes in an .mp4 video</strong>.
  The package that I am using is FFMPEG.
  FFMPEG predominantly works on the CLI and I am trying to integrate it with Python3.x</p>
  <p>The command I am using in the CLI is:</p>
  <pre class="lang-sh prettyprint-override"><code>ffmpeg -i {0} -vf  &quot;select=gt(scene\,0.5), scale=640:360&quot; -vsync vfr frame%d.png
  </code></pre>
  <p>The output comes out just fine with the CLI execution.</p>
  <p>But I want to <em>use same command in a Python script</em>, how do I do that and what should be the code?</p>
  <p>Being an amateur in the field, currently grappling with this!</p>