fix(video-clipper): add -t option to ffmpeg command to stop generation after duration
fixes #341
This commit is contained in:
parent
55c1d8904c
commit
60814b8d20
|
@ -260,6 +260,7 @@ class VideoClipper
|
|||
"-f lavfi -i color=white:{$this->dimensions['width']}x{$this->dimensions['height']}",
|
||||
"-loop 1 -framerate 1 -i {$watermark}",
|
||||
'-filter_complex "' . implode(';', $filters) . '"',
|
||||
'-t ' . $this->duration,
|
||||
'-map "[outfinal]"',
|
||||
'-map 0:a',
|
||||
'-acodec aac',
|
||||
|
|
Loading…
Reference in New Issue