The number of cores + 1.
This is the default value libavcodec does.
The maximum value is 16.
According to libavcodec/pthread.c,
Quote:
/* H264 slice threading seems to be buggy with more than 16 threads,
* limit the number of threads to 16 for automatic detection */
|