title: How to install package ffmpeg in google colab
body: <p>I'm trying to use Google Colab to do something. Particularly I want to use <em>ffmpeg</em> package to <a href="https://stackoverflow.com/a/44951066/6890234">create a video from a image</a>.</p>
  
  <p>But ffmpeg doesn't seems to be working fine.</p>
  
  <p>The output of this (in the last block) was supposed to be <strong><code>400 400</code></strong> instead of <strong><code>0 0</code></strong></p>
  
  <pre><code>frame_width = int(cap.get(3))
  frame_height = int(cap.get(4))
  print frame_width, frame_height
  </code></pre>
  
  <p>The same code is working fine with Azure notebooks and also on my local machine.</p>
  
  <p>What can be the reason for it? And how to rectify that?</p>