gpt4 book ai didi

php - 使用 ffmpeg 从视频中生成提取数量的缩略图

转载 作者:行者123 更新时间:2023-12-04 23:22:42 25 4
gpt4 key购买 nike

我想提取带有 ffmpeg 的视频的缩略图数量,例如 5-6,我该怎么做?

以下命令将生成 1 我想要 5-6shell_exec("ffmpeg -ss 01:23:45 -i input.mkv -vframes 1 -q:v 2 output.jpg");

最佳答案

这对我有用

for($thum = 1; $thum <= 5; $thum++)
{
$count = $thum * 10;
shell_exec("ffmpeg -ss $count -i video.mkv -vframes 1 -q:v 2 $thum.jpg");
}

关于php - 使用 ffmpeg 从视频中生成提取数量的缩略图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62094816/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com