Commit 60814b8d authored by Yassine Doghri's avatar Yassine Doghri
Browse files

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

fixes #341
parent 55c1d890
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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',