Google Flix Engine Linux Reference Manual User Manual

Page 427

Advertising
background image

7.12 Command Line

421

#

##cleanup

#delete_flix2plgnhandlep($codecptr); unset($codecptr);

#

##Use the FLV muxer (default)

#$muxerptr= new_flix2plgnhandlep();

#$sc = Flix2_AddMuxer($muxerptr,$flix,FE2_MUXER_FLV);

#

checksc(’Flix2_AddMuxer(FE2_MUXER_FLV)’,$sc);

#

##retrieve the value of the handle for use in the remaining muxer functions

#$muxer= flix2plgnhandlep_value($muxerptr);

#

##cleanup

#delete_flix2plgnhandlep($muxerptr); unset($muxerptr);

$sc = Flix2_Encode($flix); checksc(’Flix2_Encode’,$sc);

echo "\n";

do {

$ier = Flix2_IsEncoderRunning($flix);

checksc(’Flix2_IsEncoderRunning’,$ier[0]);

$pcnt = encoding_status_PercentComplete($flix);

checksc(’encoding_status_PercentComplete’,$pcnt[0]);

echo "\rEncoding...$pcnt[1]%

";

sleep(1);

} while(($sc == ON2_OK) && ($ier[1] != on2false));

echo "Done!\n";

print_encoder_status();

#cleanup

$sc = Flix2_Destroy($flix); checksc(’Flix2_Destroy’,$sc);

delete_flix2handlep($flixptr);

?>

Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen

Advertising