Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Performance 使用FFMPEG提取缩略图在大型视频文件上非常慢?_Performance_Ffmpeg_Extract_Video Thumbnails - Fatal编程技术网

Performance 使用FFMPEG提取缩略图在大型视频文件上非常慢?

Performance 使用FFMPEG提取缩略图在大型视频文件上非常慢?,performance,ffmpeg,extract,video-thumbnails,Performance,Ffmpeg,Extract,Video Thumbnails,我使用Linus上的FFMPEG(Debian 64位)从.MOV文件中提取缩略图 我从中提取缩略图的文件大约有430兆字节大 我使用以下命令执行此操作: ffmpeg -i 'largeVideoFile.mov' -ss 00:14:37 -vframes 1 'thumbnail.jpg' 提取单个帧需要3分钟以上的时间 如何加快它的速度?,这表明应该使用快速搜索来提高性能,只需在-I前面定义-ss,而不是相反 因此,我的命令现在如下所示: ffmpeg -ss 00:14:37 -i

我使用Linus上的FFMPEG(Debian 64位)从
.MOV
文件中提取缩略图

我从中提取缩略图的文件大约有430兆字节大

我使用以下命令执行此操作:

ffmpeg -i 'largeVideoFile.mov' -ss 00:14:37 -vframes 1 'thumbnail.jpg'
提取单个帧需要3分钟以上的时间

如何加快它的速度?

,这表明应该使用快速搜索来提高性能,只需在
-I
前面定义
-ss
,而不是相反

因此,我的命令现在如下所示:

ffmpeg -ss 00:14:37 -i 'largeVideoFile.mov' -vframes:v 1 'thumbnail.jpg'
请注意,参数的排列已更改, 从
-ss
和时间开始,然后是
-i
和源文件,最后是
-vframes:v
1
和目标路径


时间缩短到1秒左右,这很好。

我无法相信这会产生多么大的变化。哇!谢谢