$data['rid'], 'appid'=>$data['appid'], 'ext'=>$data['ext'] ]; $isforce = (isset($setarr['isforce'])) ? 1:0; C::t('pichome_ffmpeg_record')->insert($setarr,$isforce); //dfsockopen(getglobal('localurl') . 'index.php?mod=ffmpeg&op=getinfo&path=' . dzzencode($data['rid']), 0, '', '', false, '', 0.1); } } public function rundata(&$data) { require_once DZZ_ROOT . './dzz/ffmpeg/class/class_fmpeg.php'; $fm = new fmpeg(); if ($data['Duration']) { $start = ceil($data['duration'] / 5); } else { $start = 1; } if ($target = $fm->getThumb($data, $start)) { if ($imginfo = getimagesize($target)) { $resourcesarr = [ 'width' => $imginfo[0] ? $imginfo[0]:0, 'height' =>$imginfo[1] ? $imginfo[1]:0 ]; C::t('pichome_resources')->update($data['rid'],$resourcesarr); C::t('pichome_resources')->update($data['rid'], array('hasthumb' => 1)); C::t('pichome_ffmpeg_record')->update($data['rid'], array('thumbstatus' => 1,'thumb'=>$target)); } } } }