Mailing List archive

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

[linux-dvb] Re: we might be losing multicast packets



Jeremy Hall wrote:
> In the new year, Johannes Stezenbach wrote:
> > On Sun, Feb 06, 2005 at 08:51:45PM -0500, Jeremy Hall wrote:
> > > I am using current dvb-kernel v2.4 branch with a dvb/s ff card.  I am 
> > > using dvbnet that I found in some apps dir on my hd, no telling how old it 
> > > is, but I run dvbnet -p pidnum to get a dvb0_0 and another one for dvb0_1.
> > > 
> > > The datarate for dvb0_1 is small, like 64k, so I don't see losing packets, 
> > > but dvb0_0 is like 7 or 8 megabits per second.
> > 
> > What do you mean by "datarate for dvb0_0"? The bandwidth on that PID
> > or just the multicast you want to receive?
> 
> It is hard to tell what the bandwidth is for each multicast group, since 
> there are 3 groups transmitting, eventually I'd like to pull all three at 
> once.  The srate is 7955, so I'm guessing maybe the whole stream is about 
> 10 or 11 meg a second.  This would mean each stream, if evenly divided, 
> might be around 4mb each, although if one isn't transmitting, the others 
> might spin up their datarate to use available bandwidth.  How would you 
> recommend I determine this accurately?

Is there just one PID in the TS (apart from PAT, PMT etc.)?
TS bitrate is srate * bits/symbol * fec / 204 * 188, e.g.
for QPSK and fec 3/4 srate 7955 yield bitrate 10997.

> > Did you try to set SO_RCVBUF (see socket(7))?
> > 
> I just ran with SO_RCVBUF set to 2mb, 4mb, and now am running with 8mb.  I 
> have had improving results with each size increase.  That still seems 
> quite high to set the receive buffer.

Hm, that's quite a large buffer. Anyway, it indicates that data is
not lost in the DVB driver but in the network stack due to your
app not reading fast enough.

Johannes




Home | Main Index | Thread Index