diff options
author | root <root@mediaserver.Belkin> | 2010-02-18 13:56:45 +0100 |
---|---|---|
committer | root <root@mediaserver.Belkin> | 2010-02-18 13:56:45 +0100 |
commit | 1f5be309fb11e8fa2070c186efe6037a03a9b572 (patch) | |
tree | 3d42bf40efb2de3ecdb36992ea47204840a734e7 /includes/include.php | |
parent | 50b1f3626eb1d0e6503145264941752ad8d43589 (diff) | |
download | istreamdev-1f5be309fb11e8fa2070c186efe6037a03a9b572.tar.gz istreamdev-1f5be309fb11e8fa2070c186efe6037a03a9b572.tar.bz2 |
avi straming first test
Diffstat (limited to 'includes/include.php')
-rwxr-xr-x | includes/include.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/include.php b/includes/include.php index b2f133d..acffb58 100755 --- a/includes/include.php +++ b/includes/include.php @@ -88,16 +88,19 @@ function gen_media() function start_stream($type, $name, $title, $desc, $qname, $qparams, $category, $url) { - global $httppath; + global $httppath, $ffmpegpath; switch ($type) { case 1: - $cmd = "export SHELL=\"/bin/sh\";printf \"./istream.sh '" .$url ."' " .$qparams ." " .$httppath ." 2 \" | at now"; + $cmd = "export SHELL=\"/bin/sh\";printf \"./istream.sh '" .$url ."' " .$qparams ." " .$httppath ." 2 " .$ffmpegpath ." \" | at now"; break; case 2: - $cmd = "export SHELL=\"/bin/sh\";printf \"cat \\\"" .$url ."\\\"/0* | ./istream.sh - " .$qparams ." " .$httppath ." 1260 \" | at now"; + $cmd = "export SHELL=\"/bin/sh\";printf \"cat \\\"" .$url ."\\\"/0* | ./istream.sh - " .$qparams ." " .$httppath ." 1260 " .$ffmpegpath ." \" | at now"; break; + case 3: + $cmd = "export SHELL=\"/bin/sh\";printf \"./istream.sh '" .$url ."' " .$qparams ." " .$httppath ." 1260 " .$ffmpegpath ." \" | at now"; + break; default: $cmd = ""; } |