# Problem I do not get an accepted video file for vimeo

**URL:** <https://devforum.zoom.us/t/problem-i-do-not-get-an-accepted-video-file-for-vimeo/4498>\
**Category:** API and Webhooks\
**Created:** [June 3, 2019, 9:33pm UTC](https://devforum.zoom.us/t/problem-i-do-not-get-an-accepted-video-file-for-vimeo/4498 "2019-06-03T21:33:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![profesor](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@profesor](https://devforum.zoom.us/u/profesor)\
**Post date:** [June 3, 2019, 9:33pm UTC](https://devforum.zoom.us/t/problem-i-do-not-get-an-accepted-video-file-for-vimeo/4498/1 "2019-06-03T21:33:10Z")

</div>

Hello, my problem is this. My PHP Script can currently get all the recordings and upload them to vimeo, the problem is that some are uploaded with a content not accepted by vimeo, although they are all .mp4, but I am currently filtering by a size limit and excluding the types of recordings , to only upload the indicated for vimeo.

```
private function getGrabacionesZOOM($meetingID,$nameMeeting,$cuenta,$fecha_reunion){
        $url_ZOOM="https://api.zoom.us/v2/meetings/$meetingID/recordings";
        $token= $this->generateJWT();
        $curl = curl_init();
        curl_setopt_array($curl, array(
          CURLOPT_URL => $url_ZOOM,
          CURLOPT_RETURNTRANSFER => true,
          CURLOPT_ENCODING => "",
          CURLOPT_MAXREDIRS => 10,
          CURLOPT_TIMEOUT => 30,
          CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
          CURLOPT_CUSTOMREQUEST => "GET",
          CURLOPT_HTTPHEADER => array(
            "authorization: Bearer $token",
            "content-type: application/json"
          ),
        ));
        
        $response = curl_exec($curl);
        curl_close($curl);
        //var_dump($response);
	
        $response_data=json_decode($response,true);
        $filtro= null;
        $num=0;
        
        if(!empty($response_data['recording_files'])){
            foreach($response_data['recording_files'] as $grabacion){
                if(isset($grabacion["id"])){
                    $nombreID=$grabacion["id"];
                    $urlDescarga=$grabacion["download_url"];
                    $tipo_grabacion=$grabacion["file_type"];
                    
                    
                        if($grabacion["file_size"] >= 2000000){
                            if($this->filtrar_archivo($tipo_grabacion)){
                                //if($this->filtrar($nombreID, $filtro)){
                                    //$this->uploadGrabacionesV($urlDescarga, $nombreID, $nameMeeting,$cuenta, $fecha_reunion);
                                   // $num++;
                                //}
                            }
                            print ('este es el tipo aceptado'.$grabacion["recording_type"]);
                            print('es mayor a 2mb '.$grabacion["file_size"]);
                        }else{
                            print ('este es el tipo aceptado'.$grabacion["recording_type"]);
                            print('es menor a 2mb '.$grabacion["file_size"]);
                        }
                    
                }else{
                   /*Por alguna razon se obtiene una grabacion sin id y por lo tanto esta no existe
                    * Porque el id es el identificador unico de cada grabacion y si una no lo tiene 
                    * NO EXISTE
                    */
                }

            }
        }
        
       
         
    }

```

I did a test I uploaded a video recording that weighs more than 2 mb, but when I get its type, it tells me that it is:

> shared\_screen\_with\_speaker\_view

But when uploading it to vimeo, it does not accept it?

Thank you and I hope your support.

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [June 3, 2019, 11:05pm UTC](https://devforum.zoom.us/t/problem-i-do-not-get-an-accepted-video-file-for-vimeo/4498/2 "2019-06-03T23:05:02Z")

</div>

Hi @profesor,

Can you please let us know the error that you are receiving while uploading it to Vimeo?

Thanks

---

<div class="post-metadata">

**Author:** ![profesor](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@profesor](https://devforum.zoom.us/u/profesor)\
**Post date:** [June 4, 2019, 6:36pm UTC](https://devforum.zoom.us/t/problem-i-do-not-get-an-accepted-video-file-for-vimeo/4498/3 "2019-06-04T18:36:16Z")

</div>

Hello, thanks for answering.

I have no problem loading vimeo, only the only inconvenient is that I do not know, in truth what **type of recording** is a video or file valid by vimeo? because I have a file type filter and all the filtered files are mp4, but some are not accepted by vimeo.

Since the documentation shows different types of recordings. Currently, I am trying to load Vimeo is shared\_screen\_with\_speaker\_view but Vimeo tells me that it is an unaccepted video?

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [June 4, 2019, 7:08pm UTC](https://devforum.zoom.us/t/problem-i-do-not-get-an-accepted-video-file-for-vimeo/4498/4 "2019-06-04T19:08:28Z")

</div>

Hi @profesor,

it seems your issue is related to Vimeo, and not Zoom. I would recommend you to contact Vimeo Support for more details.

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:19pm UTC](https://devforum.zoom.us/t/problem-i-do-not-get-an-accepted-video-file-for-vimeo/4498/5 "2020-08-21T18:19:42Z")

</div>

Closed on August 21, 2020, 6:19pm UTC


