10
my $device = param("device");
12
my $content = "<div id=\"corner\">
13
If you don't know what values to use, the following are a good starting point for most devices:<br /><br />
21
<form action=\"save_setup.cgi\" method=\"post\"><p>
22
<input type=\"hidden\" id=\"device\" name=\"device\" value=\"$device\" />
23
Title: <input type=\"text\" id=\"title\" name=\"title\" value=\"\" /> <span class=\"red\">*</span><br />";
25
my $template = HTML::Template->new(filename => 'template/template.tmpl');
27
if($device eq "custom"){
28
$content .= "FFmpeg Arguments: ffmpeg -i <input file> <input type=\"text\" id=\"args\" name=\"args\" value=\"\" /> <span class=\"red\">*</span> <output file><br />
29
File Extension: <input type=\"text\" id=\"extension\" name=\"extension\" value=\"\" /><br />";
31
elsif($device eq "mp3"){
32
$content .= "Audio Bitrate: <input type=\"text\" id=\"audioBR\" name=\"audioBR\" value=\"\" /> <span class=\"red\">*</span><br />";
34
elsif($device eq "symlink"){
35
$content .= "Symlinks will be created and linked to your original recordings.";
38
$content .= "Codec: <select id=\"codec\" name=\"codec\">
39
<option value=\"mpeg4\">mpeg4</option>
40
<option value=\"xvid\">xvid</option>
41
<option value=\"h264\">h.264</option>
42
</select> <span class=\"red\">*</span><br />
43
Size: <input type=\"text\" id=\"sizeX\" name=\"sizeX\" value=\"\" /> <span class=\"red\">*</span> X
44
<input type=\"text\" id=\"sizeY\" name=\"sizeY\" value=\"\" /> <span class=\"red\">*</span><br />
45
Aspect: <input type=\"text\" id=\"aspect\" name=\"aspect\" value=\"\" /> <span class=\"red\">*</span><br />
46
Audio Bitrate: <input type=\"text\" id=\"audioBR\" name=\"audioBR\" value=\"\" /> <span class=\"red\">*</span><br />
47
Video Bitrate: <input type=\"text\" id=\"videoBR\" name=\"videoBR\" value=\"\" /> <span class=\"red\">*</span><br />
48
Delete Period: <input type=\"text\" id=\"deletePeriod\" name=\"deletePeriod\" value=\"\" /><br />
49
Podcast Name: <input type=\"text\" id=\"podcastName\" name=\"podcastName\" value=\"\" /><br />
50
Deinterlace: <input type=\"checkbox\" id=\"deinterlace\" name=\"deinterlace\" value=\"1\" /><br />
51
Remove Commercials: <input type=\"checkbox\" id=\"removeCommercials\" name=\"removeCommercials\" value=\"1\" /><br />
53
- Addition Tweaks -<br /><br />
54
Audio Channels: <input type=\"text\" id=\"audioChannels\" name=\"audioChannels\" value=\"\" /> * May help with dvb recordings<br />
55
Muti-threading: <input type=\"checkbox\" id=\"threads\" name=\"threads\" value=\"1\" /><br />";
58
$content .= "<br /> <span class=\"red\">* Are required</span>
59
<br /><input type=\"submit\" id=\"submit\" name=\"submit\" value=\"Submit\" /></p></form>";
61
$template->param(CONTENT => $content);
62
$template->param(LOCATION => "setup");
64
print generateContentType(), $template->output;