[FFmpeg-devel] [PATCH 1/3] thread 0 not working for mpeg4

Jason Garrett-Glaser darkshikari
Tue Sep 21 22:59:30 CEST 2010

> RB: Thread 0 is not working at all for these codec. If the user want to stick to 4 cores he can always specify -thread 4. Running 16 threads on a 2/4 core system will be faster than the default of 1. Isn't partial support is better than none?
> Is there cpu/core count detection in ffmpeg other than the one for x264?

If you want to implement -threads 0 in ffmpeg:

1.  It must replace "0" with "auto".  Auto maps to 0 internally.

2.  It must have real core-count detection code and abide by taskset.

3.  It should have a way for each codec to adjust the thread count,
knowing the number of cores.  This is important for frame-based
threading, where cores != optimal threads.

4.  It should make auto default.

Dark Shikari

More information about the ffmpeg-devel mailing list