PDA

View Full Version : Problem with Filter Cut on PHP/COM


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)

kerrizor
02-09-2007, 04:12 PM
I, too, am seeing endless failures of the cut filter.. I know its been done, that its possible.. but what's misisng?

amk
03-06-2007, 12:23 AM
Hey, just installed the 8.0.8.0 version for windows. The changelog reports cut filter fixes for .mov files but I'm having all sorts of trouble. Roughly half of the .mov files I test and try to cut cause an encode exception or hang. Anyone got any ideas? Other files types are ok. Also, removing the cut filter and the files transcode fine.

p.s. Looks like this version cleans up better on finishing transcoding for .mov files though