mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-23 16:05:34 +00:00
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']}",
|
"-f lavfi -i color=white:{$this->dimensions['width']}x{$this->dimensions['height']}",
|
||||||
"-loop 1 -framerate 1 -i {$watermark}",
|
"-loop 1 -framerate 1 -i {$watermark}",
|
||||||
'-filter_complex "' . implode(';', $filters) . '"',
|
'-filter_complex "' . implode(';', $filters) . '"',
|
||||||
|
'-t ' . $this->duration,
|
||||||
'-map "[outfinal]"',
|
'-map "[outfinal]"',
|
||||||
'-map 0:a',
|
'-map 0:a',
|
||||||
'-acodec aac',
|
'-acodec aac',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user