[FFmpeg-devel] [PATCH] Runtime detection for the number of processors/cores

Philipp Meinen philipp
Wed May 21 13:15:52 CEST 2008


On Wednesday 21 May 2008 12.30:00 Craig Whitmore wrote:
> On Wed, 2008-05-21 at 11:24 +0100, M?ns Rullg?rd wrote:
> > Philipp Meinen wrote:
> > > Hello FFmpeg Team
> > >
> > > The attached patch is an attempt to allow runtime detection for
> > > the number of online processors/cores instead of having to
> > > specify the number of threads. The idea is to type:
> > >     ffmpeg -threads 0 ....
> > > to use as many threads as processors/cores are online.
> > >
> > > I guess cmdutils.c/h is not the right file to place the new
> > > detection function. To which file should this function belong?
> > >
> > > Comments welcome :)
>
> What about codecs which don't work with more than 1 threads? like
> encoding to FLV for example doesn't work with more than 1 thread,
> WMV2 is the same, and there are alot more..

My patch does not change the default threading behaviour.
It adds a method to do a online cpu detection *IF* you want
ffmpeg to do so.

>
> Thanks

Regards, Philipp






More information about the ffmpeg-devel mailing list