title: php-ffmpeg get video duration
body: <p>When I try to get the duration of a video using the php-ffmpeg wrapper and ffprobe, I get a huge object instead of just the duration.</p>
  
  <pre><code>$ffprobe = FFMpeg\FFProbe::create();
      $ffprobe-&gt;format($this-&gt;videoFile)
              -&gt;get('duration'); 
  </code></pre>
  
  <p>$this->videoFile is /home/admin/........./5422346433.mp4</p>
  
  <p>So it points to right file and the duration is listed in the giant object down in</p>
  
  <pre><code>[[-show_format-/home/admin/web/admin.simplewebevents.com/public_html/cron/649652027.mp4][1]] =&gt; Array
                      (
                          [0] =&gt; FFMpeg\FFProbe\DataMapping\Format Object
                              (
                                  [properties:FFMpeg\FFProbe\DataMapping\AbstractData:private] =&gt; Array
                                      (
                                          [filename] =&gt; /home/admin/web/admin.simplewebevents.com/public_html/cron/649652027.mp4
                                          [nb_streams] =&gt; 2
                                          [nb_programs] =&gt; 0
                                          [format_name] =&gt; mov,mp4,m4a,3gp,3g2,mj2
                                          [format_long_name] =&gt; QuickTime / MOV
                                          [start_time] =&gt; 0.000000
                                          [duration] =&gt; 5736.833333
                                          [size] =&gt; 668381267
                                          [bit_rate] =&gt; 932056
                                          [probe_score] =&gt; 100
                                          [tags] =&gt; Array
                                              (
                                                  [major_brand] =&gt; mp42
                                                  [minor_version] =&gt; 0
                                                  [compatible_brands] =&gt; mp42mp41isomavc1
                                                  [creation_time] =&gt; 2016-12-04 18:25:58
                                              )
  
                                      )
  
                              )
  
                          [1] =&gt; 
                      )
  
              )
  </code></pre>
  
  <p>But apparently ->get('duration') doesnt return the duration.</p>
  
  <p>I've also tried with</p>
  
  <pre><code>$ffprobe
  -&gt;streams($this-&gt;videoFile) // extracts streams informations
  -&gt;videos()                      // filters video streams
  -&gt;first()                       // returns the first video stream
  -&gt;get('duration');
  </code></pre>