diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-23 19:32:04 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-23 19:32:04 +0100 |
commit | 22327380c154a4aabffb8b3aa7014363833403a9 (patch) | |
tree | 023eb5f0a2c97236fcf1868b10a33a9e6bd97307 /includes | |
parent | bc39f6d40dbff3d08a6712d3e4c593d06033a680 (diff) | |
download | istreamdev-22327380c154a4aabffb8b3aa7014363833403a9.tar.gz istreamdev-22327380c154a4aabffb8b3aa7014363833403a9.tar.bz2 |
Resize media picture
Diffstat (limited to 'includes')
-rwxr-xr-x | includes/inc_files.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/inc_files.php b/includes/inc_files.php index 8ddde5a..cc5c1c0 100755 --- a/includes/inc_files.php +++ b/includes/inc_files.php @@ -32,11 +32,11 @@ function mediagetinfostream($stream = "") $path = dirname($stream); if (file_exists(substr($stream, 0, -4) .".tbn")) - exec("cp " .substr($stream, 0, -4) .".tbn ram/stream-tb.jpg"); + exec("cp \"" .substr($stream, 0, -4) .".tbn\" ram/stream-tb-tmp.jpg; " .$ffmpegpath ." -y -i ram/stream-tb-tmp.jpg -s 128x72 ram/stream-tb.jpg"); else if (file_exists($path ."/poster.jpg")) - exec("cp " .$path ."/poster.jpg ram/stream-tb.jpg"); + exec($ffmpegpath ." -y -i \"" .$path ."/poster.jpg\" -s 128x72 ram/stream-tb.jpg"); else if (file_exists($path ."/folder.jpg")) - exec("cp " .$path ."/folder.jpg ram/stream-tb.jpg"); + exec($ffmpegpath ." -y -i \"" .$path ."/folder.jpg\" -s 128x72 ram/stream-tb.jpg"); else exec($ffmpegpath ." -y -i \"" .$stream ."\" -an -ss 00:00:05.00 -r 1 -vframes 1 -s 128x72 -f mjpeg ram/stream-tb.png"); |