OK I decided to test on ClearOS as that would be more useful to people here...
After installing all the rpms and compiling ffmpeg-php I get this - all test fail
| Code: |
---
Number of tests : 29 29
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 29 (100.0%) (100.0%)
Tests passed : 0 ( 0.0%) ( 0.0%)
...
|
If I do this I get much more information...
| Code: |
[root@georgina tests]# php getAudioChannels.phpt
--TEST--
ffmpeg getAudioChannels test
--SKIPIF--
--FILE--
[mpeg @ 0x97a8590]invalid dts/pts combination
ffmpeg getAudioChannels(): 1
--EXPECT--
ffmpeg getAudioChannels(): 1
[root@georgina tests]#
|
Note the test result is good - just this error
[mpeg @ 0x97a8590]invalid dts/pts combination
So I replaced the supplied test file with my own. Obviously the actual result will differ from the expected result in a large number of cases - but may prove enlightening with regards to errors...
Now we get (run 3 of the tests)...
| Code: |
[root@georgina tests]# php getAudioChannels.phpt
--TEST--
ffmpeg getAudioChannels test
--SKIPIF--
--FILE--
ffmpeg getAudioChannels(): 1
--EXPECT--
ffmpeg getAudioChannels(): 1
[root@georgina tests]# php getAudioSampleRate.phpt
--TEST--
ffmpeg getAudioSampleRate test
--SKIPIF--
--FILE--
ffmpeg getAudioSampleRate(): 11024
--EXPECT--
ffmpeg getAudioSampleRate(): 32000
[root@georgina tests]# php getFrameCount.phpt
--TEST--
ffmpeg getFrameCount test
--SKIPIF--
--FILE--
ffmpeg getFrameCount(): 414
--EXPECT--
ffmpeg getFrameCount(): 240
[root@georgina tests]#
|
So it works - just the supplied test file (robot.avi) causes problems!
to be continued...