Standard fixing
This commit is contained in:
parent
cdeed25ada
commit
e1688c7966
2 changed files with 11 additions and 11 deletions
|
|
@ -26,8 +26,8 @@ class ClipFilter implements VideoFilterInterface
|
||||||
|
|
||||||
public function __construct(TimeCode $start, TimeCode $duration = null, $priority = 0)
|
public function __construct(TimeCode $start, TimeCode $duration = null, $priority = 0)
|
||||||
{
|
{
|
||||||
$this->start = $start;
|
$this->start = $start;
|
||||||
$this->duration = $duration;
|
$this->duration = $duration;
|
||||||
$this->priority = $priority;
|
$this->priority = $priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -60,13 +60,13 @@ class ClipFilter implements VideoFilterInterface
|
||||||
*/
|
*/
|
||||||
public function apply(Video $video, VideoInterface $format)
|
public function apply(Video $video, VideoInterface $format)
|
||||||
{
|
{
|
||||||
$commands = array('-ss', (string) $this->start);
|
$commands = array('-ss', (string) $this->start);
|
||||||
|
|
||||||
if($this->duration !== null) {
|
if ($this->duration !== null) {
|
||||||
$commands[] = '-t';
|
$commands[] = '-t';
|
||||||
$commands[] = (string) $this->duration;
|
$commands[] = (string) $this->duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $commands;
|
return $commands;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ class VideoFilters extends AudioFilters
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clips (cuts) the video.
|
* Clips (cuts) the video.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue