beautypg.com

Google Flix Engine Linux Reference Manual User Manual

Page 471

background image

7.14 Command Line

465

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

#muxer= flixengine2.flix2plgnhandlep_value(muxerptr)

#

##cleanup

#flixengine2.delete_flix2plgnhandlep(muxerptr); muxerptr= None

sc = flixengine2.Flix2_Encode(flix); checksc(’flixengine2.Flix2_Encode’,sc)

ier = [0,1]

print

while(ier[1] != 0):

ier = flixengine2.Flix2_IsEncoderRunning(flix);\

checksc(’flixengine2.Flix2_IsEncoderRunning’,ier[0])

pcnt = flixengine2.encoding_status_PercentComplete(flix);\

checksc(’flixengine2.encoding_status_PercentComplete’,pcnt[0])

print "\rEncoding...%d%%

" % pcnt[1],

time.sleep(1)

print "Done!"

print_encoder_status()

#cleanup

sc = flixengine2.Flix2_Destroy(flix); checksc(’flixengine2.Flix2_Destroy’,sc)

flixengine2.delete_flix2handlep(flixptr)

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