alchemy-fr/PHP-FFmpeg — pull request #23 by pulse00 (2012-12-16 18:59:35+00:00)
Title: refactored prober to use native json response from ffmpeg

This version of output parsing has the benefit of getting tags from media streams directly as json which has better formatting.

Format array now:

```
[filename] => /path/to/file.mp3
[nb_streams] => 1
[format_name] => mp3
[format_long_name] => MPEG audio layer 2/3
[start_time] => 0.000000
[duration] => 60.143875
[size] => 1443453
[bit_rate] => 192000
[tags] => Array
(
[title] => 'file'
[encoded_by] => iTunes 10.7
)

```

Format array prior to this patch:

```
[filename] => /path/to/file.mp3
[nb_streams] => 1
[format_name] => mp3
[format_long_name] => MPEG audio layer 2/3
[start_time] => 0.000000
[duration] => 60.143875
[size] => 1443453
[bit_rate] => 192000
[TAG:title] =>'file'
[TAG::encoded_by] => 'Itunes 10.7'
```

I've added the `toArray` parameter to the `probeFormat` method with a default value of `false` to avoid bc breaks.