Save frame to target file without prompt

This commit is contained in:
Romain Neutron 2013-08-06 14:59:28 +02:00
commit aa26a1efd0
3 changed files with 5 additions and 4 deletions

View file

@ -80,14 +80,14 @@ class Frame extends AbstractMediaType
*/
if (!$accurate) {
$commands = array(
'-ss', (string) $this->timecode,
'-y', '-ss', (string) $this->timecode,
'-i', $this->pathfile,
'-vframes', '1',
'-f', 'image2', $pathfile
);
} else {
$commands = array(
'-i', $this->pathfile,
'-y', '-i', $this->pathfile,
'-vframes', '1', '-ss', (string) $this->timecode,
'-f', 'image2', $pathfile
);