Save frame to target file without prompt
This commit is contained in:
parent
f7a44a720a
commit
aa26a1efd0
3 changed files with 5 additions and 4 deletions
|
|
@ -5,6 +5,7 @@ CHANGELOG
|
|||
|
||||
* Allow use of FFProbe on remote URIs.
|
||||
* Fix #47 : MediaTypeInterface::save adds filters depending on the codec.
|
||||
* Save frame to target file without prompt.
|
||||
|
||||
* 0.3.0 (07-04-2013)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
|
|
@ -83,13 +83,13 @@ class FrameTest extends AbstractMediaTestCase
|
|||
{
|
||||
return array(
|
||||
array(false, array(
|
||||
'-ss', 'timecode',
|
||||
'-y', '-ss', 'timecode',
|
||||
'-i', __FILE__,
|
||||
'-vframes', '1',
|
||||
'-f', 'image2')
|
||||
),
|
||||
array(true, array(
|
||||
'-i', __FILE__,
|
||||
'-y', '-i', __FILE__,
|
||||
'-vframes', '1', '-ss', 'timecode',
|
||||
'-f', 'image2'
|
||||
)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue