2012-02-07 00:17:33 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
|
|
|
package require sqlite3
|
|
|
|
package require cgi
|
2012-05-21 20:23:41 +00:00
|
|
|
source /mod/webif/lib/setup
|
2012-02-07 00:17:33 +00:00
|
|
|
require ts.class system.class
|
|
|
|
|
2014-02-21 21:25:33 +00:00
|
|
|
jqplugin progressbar
|
|
|
|
jscss audio.js
|
2013-02-09 22:46:15 +00:00
|
|
|
header
|
2012-02-07 00:17:33 +00:00
|
|
|
|
|
|
|
set rfile [cgi_get file]
|
|
|
|
set ts [ts fetch $rfile]
|
|
|
|
set dir [file dirname $rfile]
|
|
|
|
set len [$ts duration 1]
|
|
|
|
|
2014-02-21 21:25:33 +00:00
|
|
|
|
2012-02-07 00:17:33 +00:00
|
|
|
puts "
|
|
|
|
|
|
|
|
<fieldset class=cleft>
|
|
|
|
<legend>Audio Extraction</legend>
|
|
|
|
|
|
|
|
<table class=keyval cellpadding=5>
|
|
|
|
<tr><th>File:</th><td>$rfile</td></tr>
|
|
|
|
<tr><th>Length:</th><td>[clock format $len -format "%T"]</td></tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<span class=hidden id=params
|
|
|
|
dir=\"[cgi_quote_url $dir]\"
|
|
|
|
rfile=\"[cgi_quote_url $rfile]\"
|
|
|
|
></span>
|
|
|
|
|
|
|
|
<div id=audiodiv style=\"padding: 1em\">
|
|
|
|
<button id=audioit>Perform audio extraction</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id=progressdiv class=hidden>
|
|
|
|
Extracting audio: <div id=progressbar></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button id=back class=hidden>Back to media list</button>
|
|
|
|
|
|
|
|
<div id=output class=pre style=\"margin-top: 10px\"></div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
"
|
|
|
|
|