# Donwload big Zoom recordings

**URL:** <https://devforum.zoom.us/t/donwload-big-zoom-recordings/46946>\
**Category:** API and Webhooks\
**Created:** [March 30, 2021, 7:07pm UTC](https://devforum.zoom.us/t/donwload-big-zoom-recordings/46946 "2021-03-30T19:07:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![csotelo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/csotelo/32/10713_2.png) [@csotelo](https://devforum.zoom.us/u/csotelo)\
**Post date:** [March 30, 2021, 7:07pm UTC](https://devforum.zoom.us/t/donwload-big-zoom-recordings/46946/1 "2021-03-30T19:07:41Z")

</div>

**Description**  
Hi, I used the following code to download Zoom recordings (I’ve stored the zoom download URLs in a database previously and process these in a foreach collection):

> $token=$this-\>zoomjwt-\>generateJWTKey();  
> $file\_path = $video[‘download\_url’].“?access\_token=$token”;   
> $filename = $video[‘recording\_id’]. ‘.’ . strtolower($video[‘file\_type’]);  
> $destination = $topic\_path .‘/’. $filename;
> 
> $fp = fopen ($destination, ‘w+b’);  
> $options = array(  
> CURLOPT\_FILE =\> $fp,  
> CURLOPT\_FOLLOWLOCATION =\> true,  
> CURLOPT\_URL =\> $file\_path,  
> CURLOPT\_FAILONERROR =\> true,  
> CURLOPT\_SSL\_VERIFYPEER =\> false,  
> CURLOPT\_TIMEOUT =\> 7200,  
> CURLOPT\_TCP\_KEEPALIVE =\> 1,  
> CURLOPT\_TCP\_KEEPIDLE =\> 2,  
> );
> 
> $ch = curl\_init();  
> curl\_setopt\_array($ch, $options);
> 
> $result = curl\_exec($ch);  
> $status = 0;  
> if (!curl\_errno($ch)) {  
> $info = curl\_getinfo($ch);  
> $status = (int)$info[‘http\_code’];  
> }  
> else {  
> echo curl\_error($ch) .PHP\_EOL;  
> }  
> curl\_close($ch);  
> fclose($fp);
> 
> if($status == 200)  
> {  
> echo ‘------ Zoom Donwload OK (’.date(‘H:i:s’).') '.PHP\_EOL;
> 
> }

**Error**  
The code works nice with small/medium files. The problem is with big files, from 700MB to up the connection is unstable and I get different messages:

“openssl ssl\_read ssl\_error\_syscall errno 10054”  
“SSL: error:140770FC:SSL routines:SSL23\_GET\_SERVER\_HELLO:unknown protocol”

What kind of errors are these? is it a problem with the apache config or a firewall? why with big files?

Do you know another method to download the files? (with php if it possible)? I’ve tried chunked the donwload ([PHP: File downloader function - Downloading files in chunks. · GitHub](https://gist.github.com/irazasyed/7533127)), but always returns 0bytes… I think it happens for the url token.

I’d appreciate any information

Thanks

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**  
[https://api.zoom.us/v2/accounts/me/recordings](https://api.zoom.us/v2/accounts/me/recordings)

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 30, 2021, 10:16pm UTC](https://devforum.zoom.us/t/donwload-big-zoom-recordings/46946/2 "2021-03-30T22:16:08Z")

</div>

Hi @csotelo,  
Thank you for reporting the issue and we are taking a look and will update you once more information is available on the matter. [Zoom-262423]

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 31, 2021, 6:53pm UTC](https://devforum.zoom.us/t/donwload-big-zoom-recordings/46946/3 "2021-03-31T18:53:00Z")

</div>

Hi @csotelo,  
We did not see any issue on our end, and there was no record of the error message in our logs, 700MB is okay for our server. Based on the error message, it seems like the error may be caused by SSL configuration. Are you able to check your firewall configurations? Also, can you verify that the hostname is entered correctly or the hostname is tabled in your DNS. You can verify that with a “host” or “nslookup” command. Here is a [link](https://www.google.com/search?q=error%3A140770FC&rlz=1C5GCEM_enUS943US943&oq=error%3A140770FC&aqs=chrome..69i57j69i58.1405j0j7&sourceid=chrome&ie=UTF-8) you might find helpful:

Please let me know if this helps.

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 1, 2021, 4:53am UTC](https://devforum.zoom.us/t/donwload-big-zoom-recordings/46946/4 "2021-05-01T04:53:10Z")

</div>

Closed on May 1, 2021, 4:53am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
