[mythtv-users] Can't watch LiveTV from Mythfrontend

Michel Meyers steltek at tcnnet.com
Tue Jun 1 18:46:59 UTC 2010

Hello fellow MythTV users,

I've got a problem that has me stumped: My Pinnacle PCTV USB DVB-S
receiver burnt out two days ago, so instead of running out and shelling out
money for a new one, I figured I'd try the Tevii S660 DVB-S USB receiver
(that I'd previously failed to make work) as a replacement. I've managed to
get it up and running and I can tune channels in Kaffeine. I also managed
to get it to cooperate with MythTV with some updating to my dtv_multiplex
table (had to change mod_sys from '1' to 'DVB-S' and set the rollover from
NULL to '0.35'). Even recordings seem to work fine.

My problem now is: I cannot get LiveTV in the frontend to work. When I
select LiveTV, it just says 'Loading' for a few seconds and then drops back
to the main menu. I see this error in its debug output:

2010-06-01 20:04:27.061 RemoteEncoder::Setup(): Connected
2010-06-01 20:04:27.061 Spawning LiveTV Recorder -- begin
2010-06-01 20:04:27.061 MythSocket(a015b98:42): write -> 42 80     
2010-06-01 20:04:27.061 MythSocket(a015b98:42): writeBlock(0x166378352,
2010-06-01 20:04:27.062 Got data on select
2010-06-01 20:04:27.062 Processing ready reads
2010-06-01 20:04:27.062 MythSocketThread: Total read time: 0ms, on sockets
2010-06-01 20:04:27.062 Reacquired ready read lock
2010-06-01 20:04:27.062 ProcessAddRemoveQueues
2010-06-01 20:04:27.062 Construct FD_SET
2010-06-01 20:04:27.062 Waiting on select..
2010-06-01 20:04:34.064 MythSocket(a015b98:42): readStringList: Error,
timed out after 7000 ms.
2010-06-01 20:04:34.064 MythSocket(a015b98:42): state change Connected ->
2010-06-01 20:04:34.064 MSocketDevice::close: Closed socket 42
2010-06-01 20:04:34.064 RemoteEncoder::SendReceiveStringList(): No
2010-06-01 20:04:34.064 MythSocket(a015b98:-1): DownRef: -1
2010-06-01 20:04:34.064 MythSocket(a015b98:-1): delete socket
2010-06-01 20:04:34.064 Spawning LiveTV Recorder -- end

It appears that the frontend is waiting for some kind of response from the
backend and not getting it within 7000 ms. This is what I see at the

2010-06-01 20:04:28.036 MythEvent: LIVETV_CHAIN UPDATE
2010-06-01 20:04:28.039 MSqlQuery::exec(DBManager1) SELECT count(*) FROM
inuseprograms WHERE chanid   = '12030'   AND starttime =
'2010-06-01T20:04:27' AND       hostname = 'shodan' AND recusage  =
'recorder' <<<< Returns 1 row(s)
2010-06-01 20:04:28.040 MSqlQuery::next(DBManager1) Result: "count(*) = 0"
2010-06-01 20:04:28.042 MSqlQuery::exec(DBManager1) INSERT INTO
inuseprograms  (chanid,         starttime,  recusage,  hostname,  
lastupdatetime, rechost,    recdir) VALUES  ('12030',      
'2010-06-01T20:04:27', 'recorder', 'shodan',   '2010-06-01T20:04:28',  
'shodan',   '/var/lib/mythtv')
2010-06-01 20:04:28.043 TVRec(2): Starting Signal Monitor
2010-06-01 20:04:28.044 TVRec(2): SetupSignalMonitor(1, 1)
2010-06-01 20:04:28.046 DVBChan(2:/dev/dvb/adapter0/frontend0): Opening
DVB channel
2010-06-01 20:04:28.081 MythEvent: MASTER_UPDATE_PROG_INFO 12030
2010-06-01 20:04:30.994 WorkerThread:Run - Exiting: HTTP_WorkerThread
2010-06-01 20:04:33.852 DVBSM(/dev/dvb/adapter0/frontend0): Can measure
Signal Strength
2010-06-01 20:04:33.885 DVBSM(/dev/dvb/adapter0/frontend0): Can measure
2010-06-01 20:04:33.960 DVBSM(/dev/dvb/adapter0/frontend0): Can measure
Bit Error Rate
2010-06-01 20:04:34.028 DVBSM(/dev/dvb/adapter0/frontend0): Can count
Uncorrected Blocks
2010-06-01 20:04:34.029 SM(/dev/dvb/adapter0/frontend0)::RemoveFlags:
Seen() Match() Wait()
2010-06-01 20:04:34.030 DVBSM(/dev/dvb/adapter0/frontend0):
DVBSignalMonitor::ctor initial flags Seen() Match() Wait(Sig,SNR,BER,UB,)
2010-06-01 20:04:34.030 TVRec(2): Signal monitor successfully created
2010-06-01 20:04:34.031 TVRec(2): Setting up table monitoring.

So my question now is: Why is there so much time between the events at :28
and :34 and what can I do to fix this?

On a sidenote, I tried MythTV Player 0.70 under Windows and that one is
able to initiate LiveTV just fine. Not only that, but if I start up LiveTV
in mythfrontend while MythTV Player is already watching TV, it works fine.
(I can quit MythTV Player and use the frontend normally.)

I also found this ticket which sounds like it would work around my
problem, but it appears that the proposed solution of making the 7000 ms
customizable was rejected: http://svn.mythtv.org/trac/ticket/8137

Any ideas?

- Michel

More information about the mythtv-users mailing list