itpixelz / phpvideotoolkit

Automatically exported from code.google.com/p/phpvideotoolkit
0 stars 0 forks source link

Invalid video dimensions returned (0x30355) #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Do $info = PHPVideoToolkit::getFileInfo on a video using the codec: mpeg4 
(DX50 / 0x30355844)

What is the expected output? What do you see instead?
The returned dimensions under $info['video']['dimensions'] are 0x30355 instead 
of the real video's dimensions. 

The fault is at line 890 of phpvideotoolkit.php5.php, where it uses the 
following regex to parse raw ffmpeg output:
/([0-9]{1,5})x([0-9]{1,5})/

One way of fixing this would be to change the regex to:
/[^0-9]([0-9]{1,5})x([0-9]{1,5})[^0-9]/

Original issue reported on code.google.com by gme...@gmail.com on 16 Jan 2012 at 7:47

GoogleCodeExporter commented 8 years ago
PHPVideoToolkit has been updated to version 2.

Original comment by bugged...@gmail.com on 20 Mar 2013 at 11:37