18 lines
285 B
Plaintext
18 lines
285 B
Plaintext
|
#!/mod/bin/jimsh
|
||
|
|
||
|
package require cgi
|
||
|
|
||
|
puts "Content-Type: text/html"
|
||
|
puts ""
|
||
|
|
||
|
cgi_input
|
||
|
#cgi_dump
|
||
|
|
||
|
if [file exists /mod/bin/ffmpeg] {
|
||
|
set file [dict get $_cgi file]
|
||
|
puts [exec /mod/var/mongoose/lib/ffmpeg -i $file]
|
||
|
} else {
|
||
|
puts "Install ffmpeg package for more information..."
|
||
|
}
|
||
|
|