fix(video-clipper): add -t option to ffmpeg command to stop generation after duration

fixes #341
This commit is contained in:
Yassine Doghri 2023-06-29 15:15:04 +00:00
parent 55c1d8904c
commit 60814b8d20
1 changed files with 1 additions and 0 deletions

View File

@ -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',