char0n/ffmpeg-php — Issue #9: Can't Get Video's Frame Width and Height
Author: talkspoon
Created: 2012-01-05 07:04:16+00:00
State: open

in class FFmpegMovie https://github.com/char0n/ffmpeg-php/blob/master/FFmpegMovie.php line 21

>protected static $REGEX_FRAME_WH = '/Video:.+?([1-9][0-9]*)x([1-9][0-9]*)/';

It's not meticulous enough in this case below:

> Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x544, 5493 kb/s, 23.98 fps, 23.98 tbr, 2997 tbn, 5994 tbc

Please fix this bug, thanks! XD

>My FFmpeg info:
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 20 2011 11:30:32 with clang 3.0 (tags/Apple/clang-211.12)
configuration: --enable-gpl --enable-nonfree --enable-libx264 --enable-libaacplus --cc=clang
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0