classes/Models/Encoding.php
protected function getStatsAttribute()
    {
        if (empty($this->response->output)) {
            return;
        }
        $o = $this->response->output;

        return array_filter([
            'Bitrate' => number_format($o->video_bitrate_in_kbps
                + $o->audio_bitrate_in_kbps).' kbps',
            'Filesize' => number_format($o->file_size_in_bytes/1024/1024, 1).' mb',
            'Duration' => number_format($o->duration_in_ms/1000, 1).' s',
            'Dimensions' => number_format($o->width).' x '.number_format($o->height),
            'Download' => '<a href="'.$this->outputs->mp4.'" target="_blank">MP4</a>'
        ]);
    }
protected function getStatsAttribute()
    {
        if (empty($this->response->output)) {
            return;
        }
        $o = $this->response->output;

        return array_filter([
            'Bitrate' => number_format($o->video_bitrate_in_kbps
                + $o->audio_bitrate_in_kbps).' kbps',
            'Filesize' => number_format($o->file_size_in_bytes/1024/1024, 1).' mb',
            'Duration' => number_format($o->duration_in_ms/1000, 1).' s',
            'Dimensions' => number_format($o->width).' x '.number_format($o->height),
            'Download' => '<a href="'.$this->outputs->mp4.'" target="_blank">MP4</a>'
        ]);
    }
protected function getStatsAttribute ( ) { if ( empty ( $ this -> response -> output ) ) { return ; } $ o = $ this -> response -> output ; return array_filter ( [ 'Bitrate' => number_format ( $ o -> video_bitrate_in_kbps + $ o -> audio_bitrate_in_kbps ) . ' kbps' , 'Filesize' => number_format ( $ o -> file_size_in_bytes / 1024 / 1024 , 1 ) . ' mb' , 'Duration' => number_format ( $ o -> duration_in_ms / 1000 , 1 ) . ' s' , 'Dimensions' => number_format ( $ o -> width ) . ' x ' . number_format ( $ o -> height ) , 'Download' => '<a href="' . $ this -> outputs -> mp4 . '" target="_blank">MP4</a>' ] ) ; }
Read an array of stats from the response

@return array|void
Read an array of stats from the response