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

Richard Buteau rbuteau
Wed Sep 22 17:08:12 CEST 2010


I will look when I got a little bit of spare time.
I can get this to work for x86 if that is sufficient to begin with.

> -----Original Message-----
> From: ffmpeg-devel-bounces at mplayerhq.hu [mailto:ffmpeg-devel-
> bounces at mplayerhq.hu] On Behalf Of Jason Garrett-Glaser
> Sent: Tuesday, September 21, 2010 3:59 PM
> To: FFmpeg development discussions and patches
> Subject: Re: [FFmpeg-devel] [PATCH 1/3] thread 0 not working for mpeg4
> 
> > 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
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel



More information about the ffmpeg-devel mailing list