[mythtv] dvb zero length record

Tj htpc at treblid.dyndns.org
Fri May 27 03:43:22 UTC 2005


  Tj NG <htpc at treblid.dyndns.org> wrote:
 >>Yup, running with your patch.. What I did was I scheduled alot of
 >>recordings (one show after another) and try to keep my two cards busy
 >>as much as I could. Finally got 1 out of around 15 odd recordings.
 >
 >Got another *zero* byte recording, around 23.5hrs after the last one. So
 >this patch doesn't work for me.
This is an ugly patch that tries to retune the same channel again when 
it got a timeout getting PMT. Its ugly but it works for me (as long as 
that channel is still broadcasting I guess)...

With this patch, I got the following from the mythbackend log. This is 
from a plain CVS backend/frontend machine. I'm not sure but the ber and 
unc seems wierd. Now the next step is to figure out why it didn't tune 
properly, still not sure if it's a tuning issue though.... Any help is 
appreciated.
----
2005-05-27 09:30:03.088 Started recording "Reba" on channel: 1006 on 
cardid: 1, sourceid 1
2005-05-27 09:30:03.090 DVB#0 DVB SI Table Parser Started
2005-05-27 09:30:03.096 DVB#0 Using DVB card 0, with frontend DST DVB-T.
2005-05-27 09:30:03.096 scheduler: Schedule Change
2005-05-27 09:30:03.127 DVB#0 WARNING - Unsupported hierarchy parameter.
2005-05-27 09:30:04.128 Reschedule requested for id 0.
2005-05-27 09:30:04.368 Scheduled 37 items in 0.2 = 0.00 match + 0.24 place
2005-05-27 09:30:04.375 scheduler: Scheduled items
2005-05-27 09:30:05.763 DVB#0 DVB signal 5400 | snr 6200 | ber   7e | 
unc aee01538
2005-05-27 09:30:05.765 DVB#0 Status: LOCK.
2005-05-27 09:30:05.769 DVB#0 Multiplex Locked
2005-05-27 09:30:12.135 DVB#0 XXXX: Tuning failed??
2005-05-27 09:30:12.253 DVB#0 Multiplex Locked
2005-05-27 09:30:13.479 DVB#0 Successfully tuned to channel 7.
2005-05-27 09:30:13.560 Changing from None to RecordingOnly
2005-05-27 09:30:13.607 DVB#0 Recorder: Card opened successfully (using 
TS mode).
2005-05-27 09:30:13.614 DVB#0 Data read from DMX - This is for debugging 
with transform.c


-------------- next part --------------
Index: libs/libmythtv/dvbchannel.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/dvbchannel.cpp,v
retrieving revision 1.34
diff -r1.34 dvbchannel.cpp
819a820
>     int timer = 0;
821,822c822,824
<     if (!TuneTransport(channel,all))
<         return false;
---
>     while ( timer++ < 3 ) {
>         if (!TuneTransport(channel,all))
>             return false;
824c826
<     GENERAL("Multiplex Locked");
---
>         GENERAL("Multiplex Locked");
826c828
<     siparser->AddPMT(channel.serviceID);
---
>         siparser->AddPMT(channel.serviceID);
829,833c831,832
< // TODO: Pick a more reasonable time here
<     for (int x = 0; x < 3000 ; x++)
<     {
<         pthread_mutex_lock(&chan_opts.lock);
<         if (channel.PMTSet == true)
---
>     // TODO: Pick a more reasonable time here
>         for (int x = 0; x < 3000 ; x++)
834a834,839
>             pthread_mutex_lock(&chan_opts.lock);
>             if (channel.PMTSet == true)
>             {
>                 pthread_mutex_unlock(&chan_opts.lock);
>                 return true;
>             }
836c841
<             return true;
---
>             usleep(100);
838,839c843
<         pthread_mutex_unlock(&chan_opts.lock);
<         usleep(100);
---
>         GENERAL ("XXXX: Tuning failed??");
841c845
< 
---
>     


More information about the mythtv-dev mailing list