[mythtv] running encoder in realtime

Isaac Richards ijr at case.edu
Tue Jan 17 15:24:28 UTC 2006

On Tuesday 17 January 2006 09:02, Daniel Kristjansson wrote:
> On Tue, 2006-01-17 at 00:28 -0500, Tony Lill wrote:
> > I'd like to try to run the thread(s) that transfers the data from the
> > video device to the file in realtime mode to try and get rid of the
> > ivtv0 warning: ENC Stream 0 OVERFLOW messages.
> >
> > Is Ringbuffer.cpp the right place to do it? It seems to spawn a couple
> > of threads to read and write stuff. Or is there some other place that
> > does actual fileio when recording?
> Yup, the MpegRecorder in the case of ivtv. There is a DeviceReadBuffer
> class that functions like a RingBuffer for device reads, but it is not
> used by MpegRecorder.

mpegrecorder really shouldn't need one, since it's not really doing much 
parsing of the stream - it's passing off to the RingBuffer class quickly.  
The ringbuffer has its own level of buffering for the disk output (in 
ThreadedFileWriter), so you could probably get the same effect by just 
increasing that buffer size.


More information about the mythtv-dev mailing list