ASD
12-14-2006, 09:20 AM
Hi everybody,
my system:
winXP SP2
apache 1.3.33
php 5.0.4
Flix Engine 8.0.7.0 DEMO-Version
I'm testing the Flix Engine on this system with the COM-interface. I tried the SCALE, FRAMERATE and the PNGEX - Filters and they worked nice. But the CUT-Filter didn't work!
Here is my code:
~
$flix = new COM("On2.FlixEngine") or dieError loading Flix Engine COM!");
$input_file = "C:\\in.3gp";
$output_file = "C:\\out.flv";
try {
$flix->setInputFile($input_file);
$vidopts = $flix->videoOptions();
$srcduration = $flix->getSourceDuration();
$srcw = $vidopts->getSourceWidth();
$srch = $vidopts->getSourceHeight();
$flix->setOutputFile($output_file);
$filter_cut = $flix->addFilter($flix->FE2_FILTER_CUT);
if(filter_cut == ON2_OK)
$filter_cut->setParam($flix->FE2_CUT_START_SEC, 0.0);
else
echo "FILTER_CUT Failed";
if(filter_cut == ON2_OK)
$filter_cut->setParam($flix->FE2_CUT_STOP_SEC, 10.0);
else
echo "FILTER_CUT Failed";
$flix->encode(); ...
...
~
My output is:
FILTER_CUT Failed
FILTER_CUT Failed
and the file has not been cut.
If i don't check for ON2_OK for $filter_cut then PHP hangs after a view minutes.
Is it the Demo-Version or PHP/COM?
(php's max_execution_time is enought)
:confused:
any help appreciated
thanks and greetings
ASD
(from germany)
my system:
winXP SP2
apache 1.3.33
php 5.0.4
Flix Engine 8.0.7.0 DEMO-Version
I'm testing the Flix Engine on this system with the COM-interface. I tried the SCALE, FRAMERATE and the PNGEX - Filters and they worked nice. But the CUT-Filter didn't work!
Here is my code:
~
$flix = new COM("On2.FlixEngine") or dieError loading Flix Engine COM!");
$input_file = "C:\\in.3gp";
$output_file = "C:\\out.flv";
try {
$flix->setInputFile($input_file);
$vidopts = $flix->videoOptions();
$srcduration = $flix->getSourceDuration();
$srcw = $vidopts->getSourceWidth();
$srch = $vidopts->getSourceHeight();
$flix->setOutputFile($output_file);
$filter_cut = $flix->addFilter($flix->FE2_FILTER_CUT);
if(filter_cut == ON2_OK)
$filter_cut->setParam($flix->FE2_CUT_START_SEC, 0.0);
else
echo "FILTER_CUT Failed";
if(filter_cut == ON2_OK)
$filter_cut->setParam($flix->FE2_CUT_STOP_SEC, 10.0);
else
echo "FILTER_CUT Failed";
$flix->encode(); ...
...
~
My output is:
FILTER_CUT Failed
FILTER_CUT Failed
and the file has not been cut.
If i don't check for ON2_OK for $filter_cut then PHP hangs after a view minutes.
Is it the Demo-Version or PHP/COM?
(php's max_execution_time is enought)
:confused:
any help appreciated
thanks and greetings
ASD
(from germany)