[mythtv] First crack at transcode patch

Matt Zimmerman mdz at debian.org
Sat Apr 5 13:50:00 EST 2003


On Sat, Apr 05, 2003 at 10:45:54AM -0600, Geoffrey Hausheer wrote:

> Also, I have a question about the avcodec mutex-lock in WriteVideo...what
> is the point of that?  It seems to be global to all nvr's, which I don't
> understand.  Why can't two capture cards encode at the same time?  For the
> transcoder, I will want to disable the lock, since the transcoding is
> meant to be done in the background at low priority; perhaps while capture
> is going on, and I don't want to lock out the important thread with my
> transcoding.  Anyhow, I need to understand what the lock is protecting
> against.

This lock exists because calling into libavcodec simultaneously from
multiple threads is unsafe.  If you want to do this right, it will probably
need to be in a separate process.

-- 
 - mdz


More information about the mythtv-dev mailing list