zoukankan      html  css  js  c++  java
  • 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 配合使用

  • 相关阅读:
    正则表达式
    .net打印控件基本用法
    批处理
    dos命令
    网络散点
    华为路由器命令
    用eNSP模拟
    oracle PL/SQL语法基础
    路由
    docker redis shell
  • 原文地址:https://www.cnblogs.com/jogh/p/5718265.html
Copyright © 2011-2022 走看看