多线程上的 avconv

Shu*_*ary 9 convert multi-core avconv

是否可以在多个处理器或线程上运行作业来加速 avconv?
是否有正在进行的功能,如果没有,我想知道为什么?

and*_*.46 11

您正在使用 avconv的-threads选项。最安全的设置是:

 -threads auto
Run Code Online (Sandbox Code Playgroud)

但是如果你想尝试一下,你也可以在那里设置一个整数。现代 FFmpeg(现在是 Ubuntu 中的标准)auto 默认设置了这一点如“ffmpeg-all”手册页的这一部分所示:

threads integer (decoding/encoding,video)

Set the number of threads to be used, in case the selected
codec implementation supports multi-threading.

  Possible values:

     auto, 0
     automatically select the number of threads to set

 Default value is auto.
Run Code Online (Sandbox Code Playgroud)

注意2个要点:

  1. 此设置仅在所选编解码器支持多线程时有效
  2. 可以为单个流设置线程数,而不是简单地尝试全局线程设置