Google Flix Engine Linux Reference Manual User Manual
Page 510
504
Flix Engine Linux Page Documentation
global filter, filterptr
##if name is a filter name, e.g. FE2_FILTER_CUT, add an instance
##we’ll assume all Flix2_FilterSetParam’s relate to this filter until we
##hit the next filter name
if(filterptr):
flixengine2.delete_flix2plgnhandlep(filterptr)
print "
filterptr = flixengine2.new_flix2plgnhandlep()
sc = flixengine2.Flix2_AddFilter(filterptr, flix, eval(’flixengine2.’+name))
process_sc(’Flix2_AddFilter’,sc)
#retrieve the filter handle to be used in all Filter API function calls
filter = flixengine2.flix2plgnhandlep_value(filterptr)
def filter_interface(funcname, name, value):
print "
if ’AsStr’ in funcname:
functry = ’flixengine2.’+funcname+’(filter, flixengine2.’+name+’ , \"’+value+’\")’
elif(re.search(’[a-zA-Z_]’, value)):
functry = ’flixengine2.’+funcname+’(filter, flixengine2.’+name+’ , flixengine2.’+value+’)’
else:
functry = ’flixengine2.’+funcname+’(filter, flixengine2.’+name+’ , ’+value+’)’
sc = eval(functry)
process_sc(funcname,sc)
def init_muxer(name):
global muxer, muxerptr
##if name is a muxer name, e.g. FE2_MUXER_FLV, add an instance
##we’ll assume all Flix2_MuxerSetParam’s relate to this muxer until we
##hit the next muxer name
if(muxerptr):
flixengine2.delete_flix2plgnhandlep(muxerptr)
print "
muxerptr = flixengine2.new_flix2plgnhandlep()
sc = flixengine2.Flix2_AddMuxer(muxerptr, flix, eval(’flixengine2.’+name))
process_sc(’Flix2_AddMuxer’,sc)
#retrieve the muxer handle to be used in all Muxer API function calls
muxer = flixengine2.flix2plgnhandlep_value(muxerptr)
def muxer_interface(funcname, name, value):
print "
if ’AsStr’ in funcname:
functry = ’flixengine2.’+funcname+’(muxer, flixengine2.’+name+’ , \"’+value+’\")’
elif(re.search(’[a-zA-Z_]’, value)):
functry = ’flixengine2.’+funcname+’(muxer, flixengine2.’+name+’ , flixengine2.’+value+’)’
else:
functry = ’flixengine2.’+funcname+’(muxer, flixengine2.’+name+’ , ’+value+’)’
sc = eval(functry)
process_sc(funcname,sc)
rpchost = ’localhost’
outdir
= ’/var/www/cgi-bin/flixmedia/out/’
print """
Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen