Google Flix Engine Linux Reference Manual User Manual
Page 383

7.10 Command Line
377
#
checksc(’Flix2_CodecSetParam($FE2_VP6_RC_MODE,$VBR_1PASSControl)’,$sc);
#
##cleanup
#delete_flix2plgnhandlep($codecptr); $codecptr= undef;
#
##Use the FLV muxer (default)
#my $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
#my $muxer= flix2plgnhandlep_value($muxerptr);
#
##cleanup
#delete_flix2plgnhandlep($muxerptr); $muxerptr= undef;
$sc = Flix2_Encode($flix); checksc(’Flix2_Encode’,$sc);
print "\n";
$| = 1; #auto flush
my ($ier,$pcnt);
do {
($sc,$ier)= Flix2_IsEncoderRunning($flix);
checksc(’Flix2_IsEncoderRunning’,$sc);
($sc,$pcnt)= encoding_status_PercentComplete($flix);
checksc(’encoding_status_PercentComplete’,$sc);
print "\rEncoding...$pcnt%
";
sleep(1);
} while($ier);
print "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