Mailing List archive

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

[vdr] Re: [PATCH] (DVB-T) statmux fix vbr tagging for pic header



Klaus Schmidinger wrote:

After a lot of talking and speculation and testing out I've come up with an
experimental, dirty patch for vdr-1.1.31 to work around problems with
either the firmware, the drivers or the way some mux encoders send the
headers for variable bitrate streams.
...
Here's the patch
http://www.mpex.net/riovolt/vdr-statmux-vbr_vbv_delay.patch
comments from testers appreciated.

To avoid an additional place where the data is scanned I'd like to suggest
putting this into cRemux::ScanVideoPacket(), since there we are already
sync'ed on an I-frame:

--- remux.c 2003/04/26 15:07:41 1.15
+++ remux.c 2003/05/15 16:00:00
@@ -501,6 +501,13 @@
if (Data[i] == 0 && Data[i + 1] == 0 && Data[i + 2] == 1) {
switch (Data[i + 3]) {
case SC_PICTURE: PictureType = (Data[i + 5] >> 3) & 0x07;
+ if (PictureType == I_FRAME) {
+ uchar *p = (uchar *)Data;
+ //printf("VBV: %02X %02X %02X\n", p[i + 5], p[i + 6], p[i + 7]);//XXX
+ p[i + 5] = 0x8F; // 10001111 http://members.aol.com/mpucoder/DVD/mpeghdrs.html#picture + p[i + 6] = 0xFF; // 11111111 tag vbv for variable bitrate
+ p[i + 7] = 0xF8; // 11111000 ditto
+ }
return Length;
}
}

Assuming that I don't have the wrong end of the stick here, I applied the above to 1.1.29 and it made no difference to the
blank screen problem. Additionally I have noticed that I cannot successfully play any recording made in the UK of BBC2, which
as far as I'm aware is a VBR channel - recordings play for ~5 seconds and then just stop on a blank screen. Was the
above supposed to fool vdr into being able to handle channels like that ?

John



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



Home | Main Index | Thread Index