title: Python - Codec Issue with the video file downloaded
body: <p>I am trying to download a video that has been uploaded in the cloud, and I am using API's to extract the data.</p>
  <p>The python script seems to download the file fine, but when I open the video it throws this error:</p>
  <p><a href="https://i.stack.imgur.com/Vyq14.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vyq14.png" alt="enter image description here" /></a></p>
  <p>I have tried using different options (VLC, Windows Media Player, etc) to play the video but do not have any luck. Can someone please help?</p>
  <pre><code>if res.status_code == 200:
      body = res.json()
      for meeting in body[&quot;meetings&quot;]:
          try:
              password = requests.get(
                  f&quot;{root}meetings/{meeting['uuid']}/recordings/settings?access_token={token}&quot;).json()[&quot;password&quot;]
              url = f&quot;https://api.zoom.us/v2/meetings/{meeting['uuid']}/recordings/settings?access_token={token}&quot;
              res = requests.patch(
                  url,
                  data=json.dumps({&quot;password&quot;: &quot;&quot;}),
                  headers=sess_headers)
          except:
              pass
  
          topic = meeting[&quot;topic&quot;]
  
          try:
              os.makedirs(&quot;downloads&quot;)
          except:
              pass
          for i, recording in enumerate(meeting[&quot;recording_files&quot;]):
              #os.makedirs(topic)
              download_url = recording[&quot;download_url&quot;]
              name = recording[&quot;recording_start&quot;] + \
                  &quot;-&quot; + meeting[&quot;topic&quot;]
              ext = recording[&quot;file_type&quot;]
              filename = f&quot;{name}.{ext}&quot;
              path = f'./downloads/{filename}'.replace(&quot;:&quot;, &quot;.&quot;)
              res = requests.get(download_url, headers=sess_headers)
  
              with open(Path(path), 'wb') as f:
                  f.write(res.content)
  else:
      print(res.text)
  </code></pre>