
davatar at comcast
May 25, 2004, 10:09 PM
Post #1 of 1
(568 views)
Permalink
|
|
[PATCH] Multithreaded libavcodec/MPEG4 encoding
|
|
---- This is not for 0.15 release --- This enables the use of more than one thread to encode MPEG4, configurable through the recording profiles. I am probably getting close to double encoding capacity with it on my SMP machine. It should help a bit for HT as well. However when using many threads it magnifies a small memory leak in libavcodec, but most people will not want to use more than 2. By default it comes set to one thread, which should be no different than normal. I also needed to patch libavcodec's pthread.c, which had some bugs which caused memory and thread freeing problems (not a problem in ffmpeg since it's one shot). I'll be submitting these changes to the ffmpeg project. Thanks, Debabrata
|