Skip to content
Permalink
Browse files

Update camshoter.class.php

  • Loading branch information...
directman66 committed Dec 14, 2018
1 parent 30fa5a9 commit 0c149423b7b3d38a93827200c0032508beb48667
Showing with 7 additions and 1 deletion.
  1. +7 −1 modules/camshoter/camshoter.class.php
@@ -461,6 +461,12 @@ function propertySetHandle($object, $property, $value) {
mkdir($users, 0777, true);}
$savefacesdir=ROOT."cms/cached/nvr/faces/";
if (!file_exists($savefacesdir)) {
mkdir($savefacesdir, 0777, true);}
if (!file_exists($savelast)) {
mkdir($savelast, 0777, true);}
@@ -498,6 +504,7 @@ function propertySetHandle($object, $property, $value) {
$savename=$savepath."cam".$properties[$i]['ID']."_".date('Y-m-d_His').".mp4"; // куда сохранять
$savenamethumb=$savepath."cam".$properties[$i]['ID']."_".date('Y-m-d_His').".jpg"; // куда сохранять
$savenamelast=$savelast."cam".$properties[$i]['ID'].".jpg"; // куда сохранять
$savenameface=$savefacesdir."cam".$properties[$i]['ID']."_".date('Y-m-d_His').".jpg"; // куда сохранять
//linux
if (substr(php_uname(),0,5)=='Linux') {
//exec('timeout -s INT 60s ffmpeg -y -i "'.$url.'" -t '.$sec.' -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -r 15 '.$savename);
@@ -550,7 +557,6 @@ function propertySetHandle($object, $property, $value) {
//..if ($iam=='img') {$detect$this->mailvision_detect($savename);}
//if (($iam=='video')&&($fsize>500)) {$detect$this->mailvision_detect($savename);}
$savenameface=$savelast.'lastface.jpg';
//определяем, есть ли на фото лицо

0 comments on commit 0c14942

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