• ffmpeg -vf thumbnail


     Select the most representative frame in a given sequence of consecutive frames.

    The filter accepts the following options:

    n

    Set the frames batch size to analyze; in a set of n frames, the filter will pick one of them, and then handle the next batch of n frames until the end. Default is 100.

    Since the filter keeps track of the whole frames sequence, a bigger n value will result in a higher memory usage, so a high value is not recommended.

    过程:

    1. 对每幅图像的RGB通道进行直方图(3x256)统计。
    2. 对所有图像的直方图统计求平均(记为“统计平均”)
    3. 计算每幅图像的直方图和“统计平均”的平方差
    4. 选出平方差最小的一幅

    参数:

      n越大需要缓存的图像就越多,所需内存就越大

    使用:

      可以和 image2 配合使用

  • 相关阅读:
    Part 29 AngularJS intellisense in visual studio
    Part 28 AngularJS default route
    css动画效果之一
    css
    css.盒子阴影
    css字行标签谁写写
    简单的介绍a标签点击个成
    看css.1的启示。
    css.1
    总结:html
  • 原文地址:https://www.cnblogs.com/jogh/p/5718265.html
Copyright © 2020-2023  润新知