Google Flix Engine Linux Reference Manual User Manual

Page 389

Advertising
background image

7.11 CGI

383

<p>This page requires javascript be enabled.</p>

</noscript>

<hr>

<h1>Flix CGI Sample</h1>

<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: $indir

</ul>

<p>

<label><input type="checkbox" id=’showall’ onclick=’showall(this.checked)’>Show all</label>

</p>

<form action="process_sample.cgi" method="post">

<!-- ##SOURCE FILE########################################################### -->

<hr>

<fieldset class=’expanded’ id="srcfile">

<legend onclick=’toggle_expand(this)’>Source File</legend>

<table>

<tr>

<td>

HTML_END

if(opendir DIR,$indir) {

#search the input directory for potential files to encode

#populating a list box in the process

@a = sort grep { -f $indir.$_ } readdir DIR;

foreach (@a) {

$a{$indir.$_} = $_;

$_ = $indir.$_;

}

print scrolling_list(-name=>’Flix2_SetInputFile’,

-values=>\@a,

-labels=>\%a,

-default=>$a[0],

-size=>scalar(@a)<15?scalar(@a):15);

closedir DIR;

} else {

print "WARNING couldn’t open $indir: $!",br;

}

print <<HTML_END;

</td>

</tr>

</table>

</fieldset>

<!-- ##DST FILE################################################################# -->

<hr>

<fieldset class=’expanded’ id="dstfile">

<legend onclick=’toggle_expand(this)’>Output File</legend>

<table>

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

Advertising