[FFmpeg-trac] #1882(avcodec:open): Multi-threading wmv encoder

FFmpeg trac at avcodec.org
Tue Nov 6 22:29:51 CET 2012

#1882: Multi-threading wmv encoder
             Reporter:  txspaderz    |                    Owner:
                 Type:  enhancement  |                   Status:  open
             Priority:  wish         |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  wmv2         |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |

Comment (by xnejp03):

 Actually it looks like the threads parameter is now not breaking the
 command any more. It also looks that when not supplied, it uses all cores
 (at least for the mpeg2video encoder) and the threads parameter is now
 used mostly to limit the usage of CPUs (can you confirm)?

 When run with -threads 1 I'm getting about 39 fps on my example file, when
 run without -threads it does about 80 fps, so it'd seem that there is some
 parallelism implemented. It doesn't push all the cores to maximum, as
 mpeg2video does though, so there is possible room for improvement.

 Also, does it make difference if -threads is provided before -i and after?
 Would that specify number of CPUs separately for decoder and encoder? Or
 is just one definition (before -i) enough?

Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1882#comment:9>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list