Google Flix Engine Linux Reference Manual User Manual
Page 477

7.15 CGI
471
<p><small>flix2_sample.cgi version 1.9</small></p>
<h4>Instructions</h4>
<ul>
<li>In this sample you must choose a source file and an output file.<br>
If you leave all the other options blank then the sample will not call
the corresponding Flix Engine function and the default will be used.<br>
When done please press the "Start Encode" button at the bottom of the page.<br>
<li>Mouse over a function name to see its default, if applicable.
<li>Current source file directory: """
print indir
print """
</ul>
<p>
<label><input type="checkbox" id=’showall’ onclick=’showall(this.checked)’>Show all</label>
</p>
<form action="process_sample.py" method="post">
<!-- ##SOURCE FILE########################################################### -->
<hr>
<fieldset class=’expanded’ id="srcfile">
<legend onclick=’toggle_expand(this)’>Source File</legend>
<table>
<tr>
<td>
"""
if os.path.exists(indir):
first = True
files = os.listdir(indir); files.sort()
print "<select name=’Flix2_SetInputFile’ size=’",
if len(files) < 15: print str(len(files))+"’>"
else: print "15’>"
for j in files:
if os.path.isdir(os.path.join(indir,j))==False:
print "<option ",
if first: print "selected ",; first = False
print "value=\"%s\">%s</option>" %\
(os.path.join(indir,j), j)
print "</select>";
else:
print "WARNING couldn’t open " + indir + " os.path.exists() failed<br>"
print """
</td>
</tr>
</table>
</fieldset>
<!-- ##DST FILE################################################################# -->
<hr>
<fieldset class=’expanded’ id="dstfile">
<legend onclick=’toggle_expand(this)’>Output File</legend>
<table>
<tr>
<td>
<input type="text" name="Flix2_SetOutputFile" value="cgi-python-out.flv">
</td>
</tr>
Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen