Mailing List archive

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

[vdr] Re: Workaround for UPT Errors



Hello,

wouldn't it be nicer and better to simply let VDR quit as proposed by
Klaus (Sat, 16 Aug 2003 10:33:42 +0200):

Well, it's very simple:

- locate the file that contains the error message:

  kls@hawk2:/home/kls/vdr/VDR > grep "nknown picture ty" *.c
  remux.c:                           esyslog("ERROR: unknown picture type '%d'", pt);

- edit that file and change the lines

                        if (pt < I_FRAME || B_FRAME < pt)
                           esyslog("ERROR: unknown picture type '%d'", pt);

  to

                        if (pt < I_FRAME || B_FRAME < pt) {
                           esyslog("ERROR: unknown picture type '%d'", pt);
                           cThread::EmergencyExit(true);
                           }

That way you could have a little script like this:

#!/bin/bash

while $TRUE; do VDR; done

And the VDR:

#!/bin/bash

export DVDCSS_METHOD=key
cd /usr/local/bin

killall vdr
killall xawtv
killall vdr-1.1
killall kdvb-fe
killall -KILL vdr
killall -KILL xawtv
killall -KILL vdr-1.1
killall -KILL kdvb-fe
rmmod dvb_ttpci
rmmod saa7146_vv
rmmod video_buf
rmmod saa7146
rmmod ttpci_eeprom
modprobe video-buf
modprobe saa7146
modprobe saa7146_vv
modprobe dvb-ttpci hw_sections=0;
xawtv -c /dev/video0 -geometry 770x580-0-0 -xvport 51 &
perl -pi -e 's/\:16387$/\:0/' /video0/channels.conf
nice -n -10 vdr-1.1  -Pbitstreamout -Pdvd -Pmp3 -Pmplayer -P 'osdteletext -r' -s /usr/local/bin/HALT

I have just done a cut and paste from my script, so you have to adapt
them (I use a 2.6.0 with last 12 patches from CVS dvb-kernel).

Have a great day,

	Grégoire
________________________________________________________________________
http://magma.epfl.ch/greg ICQ:16624071 mailto:Gregoire.Favre@freesurf.ch


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



Home | Main Index | Thread Index