[mythtv] [PATCH] Multithreaded libavcodec/MPEG4 encoding

Debabrata Banerjee davatar at comcast.net
Wed May 26 01:09:44 EDT 2004


---- 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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: avcodecthreads.diff
Type: application/octet-stream
Size: 5588 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040526/9cbd6327/avcodecthreads.obj


More information about the mythtv-dev mailing list