Skip to content
Permalink
Browse files

Update camshoter.class.php

  • Loading branch information...
directman66 committed Mar 7, 2019
1 parent 615ad26 commit ed0daa774d5232bf101426be375f3a09bc32d5cd
Showing with 6 additions and 1 deletion.
  1. +6 −1 modules/camshoter/camshoter.class.php
@@ -613,7 +613,12 @@ function propertySetHandle($object, $property, $value) {
// exec('timeout -s INT 60s ffmpeg -y -i "'.$url.'" -t '.$sec.' -f mp4 -vcodec copy -pix_fmt yuv420p -acodec pcm_s16le -an -r 15 '.$savename);
if ($properties[$i]['FFMPEGCMD']=="")
{
exec('timeout -s INT 60s ffmpeg -y -i "'.$url.'" -t '.$sec.' -f mp4 -vcodec copy -pix_fmt yuv420p -acodec copy -an -r 15 '.$savename);
// exec('timeout -s INT 60s ffmpeg -y -i "'.$url.'" -t '.$sec.' -f mp4 -vcodec copy -pix_fmt yuv420p -acodec copy -an -r 15 '.$savename);
exec('timeout -s INT 60s ffmpeg -y -i "'.$url.'" -t '.$sec.' -f mp4 -vcodec copy -pix_fmt yuv420p -acodec copy -an -r 15 '.' 2>&1'.$savename);
} else
{
$cmd='timeout -s INT 60s '.str_replace('#savename',$savename, str_replace('#sec',$sec, $properties[$i]['FFMPEGCMD']));

0 comments on commit ed0daa7

Please sign in to comment.
You can’t perform that action at this time.