使用FFmpeg截图中提到『把-ss 10放到第一个参数的位置,速度比放到放到其他位置快,且不会出现如下错误』
这个-ss参数官方的解释是:
-ss position (input/output)
When used as an input option (before -i), seeks in this input file to position. Note that in most formats it is not possible to seek exactly, so ffmpeg will seek to the closest seek point before position. When transcoding and -accurate_seek is enabled (the default), this extra segment between the seek point and position will be decoded and discarded. When doing stream copy or when -noaccurate_seek is used, it will be preserved.
When used as an output option (before an output filename), decodes but discards input until the timestamps reach position.
position must be a time duration specification, see (ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual.
可见是由于把-ss放到-i之前,ffmpeg直接seek到指定位置,把-ss放到-i之后,ffmpeg会decode并且discard指定时间点之前的部分,我勒个擦,这能不慢么。