use faster ffmpeg method to generate frame image

This commit is contained in:
Isaac Connor 2017-04-13 12:35:14 -04:00
parent 0bbe5d19a6
commit a5e7db0f7c
1 changed files with 2 additions and 1 deletions

View File

@ -217,7 +217,8 @@ class Event {
return ''; return '';
} }
$command ='ffmpeg -v 0 -i '.$videoPath.' -vf "select=gte(n\\,'.$frame['FrameId'].'),setpts=PTS-STARTPTS" '.$eventPath.'/'.$captImage; #$command ='ffmpeg -v 0 -i '.$videoPath.' -vf "select=gte(n\\,'.$frame['FrameId'].'),setpts=PTS-STARTPTS" '.$eventPath.'/'.$captImage;
$command ='ffmpeg -ss '. $frame['Delta'] .' -i '.$videoPath.' -frames:v 1 '.$eventPath.'/'.$captImage;
Debug( "Running $command" ); Debug( "Running $command" );
$output = array(); $output = array();
$retval = 0; $retval = 0;