title: OpenCV video writer unable to find codec or "avc1"
body: <p>I am trying to write a video with cv2 in Python3 and I get the following message:</p>
  
  <blockquote>
    <p>"Could not find encoder for codec id 27: Encoder not found".</p>
  </blockquote>
  
  <p>Here's my code: </p>
  
  <pre class="lang-py prettyprint-override"><code>video_writer = cv2.VideoWriter()
  video_writer.open(filename, cv2.VideoWriter_fourcc(*"avc1"), fps, (width, height), True)
  for frame in frames:
     video_writer.write(image_size_correction(frame, width, height))
  video_writer.release()
  </code></pre>