Mailing List archive

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

[linux-dvb] Re: vbv delay/buffer overflows on VBR statmux



Oliver Endriss wrote:
> 
> ...
> > >Then I modified pes_play() to patch the bitrate in the sequence
> > > header and the RTL recording plays flawless...
> >
> > Oliver, could you please post this patch to the list? We both know
> > this needs fixing in the firmware but I'm sure quite a few people
> > would like a temporary fix to a problem that's been haunting them
> > especially with DVB-T and av7110s to demux ever since the new
> > firmware in early in 2002. After all it doesn't alter the recordings
> > itself only the output to the av7110.
> 
> Ok, here it is:
> 
> --- /home/endriss/cvs-work/DVB/driver/av7110/av7110.c   Sat May 17 05:12:30 2003
> +++ av7110.c    Tue May 20 21:09:24 2003
> @@ -1116,6 +1116,8 @@ pes_play(void *dest, ring_buffer_t *buf,
>          int len, split=0;
>          u32 sync;
>          u16 blen;
> +        int i;
> +        unsigned char *p;
> 
>          dprintk ("function : %s\n", __FUNCTION__);
>          if (!dlen) {
> @@ -1165,6 +1167,20 @@ pes_play(void *dest, ring_buffer_t *buf,
> 
>          dprintk ("function: %s pread=%08x pwrite=%08x\n", __FUNCTION__,
>                  buf->pread, buf->pwrite);
> +
> +        p = dest;
> +        for (i = 6; i < ((int)blen)-10; i++) {
> +                if (p[i] || p[i+1] || p[i+2] != 1)
> +                        continue;
> +
> +                if (p[i+3] == 0xb3) {
> +                        //printk ("seq: bit_rate %.2x %.2x %.2x\n", p[i+8], p[i+9], p[i+10]);
> +                        p[i+8] = 0x24; // 15 MBit/s
> +                        p[i+9] = 0x9f;
> +                        i += 11;
> +                }
> +        }
> +
>          wake_up(&buf->queue);
>          return blen;
>  }
> 
> It simply patches the bit_rate in the sequence header to 15 MBit.
> Works fine here.

I just tried this with a recording of today's "Quarks & Co" and I'm afraid
this patch somehow causes video glitches. There is at least one place where
I have picture distortions with the patch that are not there without it.

If it helps I can cut out a minute or so around the glitch and make it available
for download.

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index