Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: buffer usage: 100%



> -----Original Message-----
> From: Rene Bartsch [mailto:vdr@bartschnet.de]
> Sent: Saturday, September 07, 2002 4:38 PM
> To: vdr@linuxtv.org
> Subject: [vdr] Re: buffer usage: 100%
> 
> 
> 
> ----- Original Message -----
> From: "Rienecker, Fa. Evenio, ITS P, M" <C.Rienecker@deutschepost.de>
> To: <vdr@linuxtv.org>
> Sent: Friday, September 06, 2002 10:32 AM
> Subject: [vdr] Re: buffer usage: 100%
> 
> 
> > > Rienecker, Fa. Evenio, ITS P, M wrote:
> > > >>At around line 58 (vdr-1.0.4) there is
> > > >>#define VIDEOBUFSIZE  MEGABYTE(1)
> > > >>
> > > >>Change it to
> > > >>#define VIDEOBUFSIZE  MEGABYTE(10)
> > > > But be aware that with the current production release
> > > (1.0.x) of vdr the
> > > > larger buffer will result in a premature end of replay (8MB
> > > is about 1
> > > > Minute).
> > > > This has been fixed in the 1.1.8
> > > With 500 KB/s 8MB is around 16 second, if I'm not 
> calculating wrong...
> >
> > That has nothing to do with calculating. It depends on the 
> datarate and
> > experiments yield
> > 1MB is approx. 1  second
> > 4MB is approx. 10 seconds
> > 8MB is approx. 60 seconds
> >
> > CU,
> > Christian.
> >
> > PS: I fixed my 1.0.4 by introdrucing a seperate 
> REPLAYBUFSIZE with a small
> > size. This not only saves RAM but also eliminates the 
> premature ending of
> a
> > replay.
> >
> >
> 
> Could you post that patch?
> 
> I've only one or two full-featured DVB-S-cards in that VDR-box.
> So there will be only one record process and a second record or replay
> process.
> 
> I'd like to set VIDEOBUFSIZE to 15 (only 64 MByte) RAM.
> 
> Are there any other processes than record/replay using 
> VIDEOBUFSIZE, which
> could flood my RAM?
> 
> Thanx
> 
> Rene


The patch is fairly simple.
Line numbers might be different for you as I am using vdr-1.0.4 with
AIO sometime of late july (I don't recall the exacte version).
For vanilla vdr-1.0.4 there will be only ome cPlayBuffer(...) line
as the other belongs to (S)VCD Playback.

1. dvbapi.h
----begin snip----
58c58,59
< #define VIDEOBUFSIZE  MEGABYTE(1)
---
> #define VIDEOBUFSIZE  MEGABYTE(8)
> #define REPLAYBUFSIZE  KILOBYTE(512)
----end snip----

2. dvbapi.c
----begin snip----
1415c1415
< :cPlayBuffer(DvbApi, VideoDev, AudioDev, VIDEOBUFSIZE)
---
> :cPlayBuffer(DvbApi, VideoDev, AudioDev, REPLAYBUFSIZE)
1762c1762
< :cPlayBuffer(DvbApi, VideoDev, AudioDev,VIDEOBUFSIZE)
---
> :cPlayBuffer(DvbApi, VideoDev, AudioDev,REPLAYBUFSIZE)
----end snip----

CU,
Christian.




Home | Main Index | Thread Index