[mythtv-users] Live TV tries to tune channel unavailable on that tuner...

Mark Perkins perkins1724 at hotmail.com
Fri Nov 14 01:33:03 UTC 2014



> -----Original Message-----
> From: mythtv-users [mailto:mythtv-users-bounces at mythtv.org] On Behalf
> Of Steven Adeff
> Sent: Friday, 14 November 2014 9:23 AM
> To: Discussion about MythTV
> Subject: Re: [mythtv-users] Live TV tries to tune channel unavailable on
that
> tuner...
> 
> On Thu, Nov 13, 2014 at 8:58 AM, Peter Bennett (cats22)
> <cats22 at comcast.net> wrote:
> > On 11/12/2014 04:37 PM, Steven Adeff wrote:
> >> $ mythbackend --version
> >> Please attach all output as a file in bug reports.
> >> MythTV Version : v0.27.4-6-ge0b0027
> >> MythTV Branch : fixes/0.27
> >> Network Protocol : 77
> >> Library API : 0.27.20141016-1
> >> QT Version : 4.8.1
> >> Options compiled in:
> >>  linux profile use_hidesyms using_alsa using_oss using_pulse
> >> using_pulseoutput using_backend using_bindings_perl
> >> using_bindings_python using_bindings_php using_crystalhd using_dvb
> >> using_firewire using_frontend using_hdhomerun using_ceton
> using_hdpvr
> >> using_ivtv using_joystick_menu using_libcec using_libcrypto
> >> using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg
> >> using_opengl using_opengl_video using_qtwebkit using_qtscript
> >> using_qtdbus using_sdl using_taglib using_v4l2 using_x11 using_xrandr
> >> using_xv using_profiletype using_bindings_perl using_bindings_python
> >> using_bindings_php using_mythtranscode using_opengl using_vaapi
> >> using_vdpau using_ffmpeg_threads using_mheg using_libass
> >> using_libxml2
> >>
> >> The system has two HDPVR with a full channel listing available, and
> >> an QAM HDHR with a limited channel listing available.
> >> When both HDPVR are in use, and the user attempts to watch LiveTV,
> >> the system flashes "Please Wait" then goes back to the menu with the
> >> following in the backend log,
> >>
> >> Nov 12 13:28:05 MythCenter mythbackend: mythbackend[2641]: I
> >> TVRecEvent tv_rec.cpp:1050 (HandleStateChange) TVRec[7]: Changing
> >> from None to WatchingLiveTV Nov 12 13:28:05 MythCenter mythbackend:
> >> mythbackend[2641]: E TVRecEvent channelutil.cpp:1940
> (GetChannelData)
> >> GetChannelData() failed because it could not#012#011#011#011find
> >> channel number '52' in DB for source '2'.
> >> Nov 12 13:28:05 MythCenter mythbackend: mythbackend[2641]: E
> >> TVRecEvent recorders/channelbase.cpp:221 (IsTunable) ChannelBase[7]:
> >> IsTunable(MPEG2TS,52) Failed to find channel in DB on input '7'
> >> Nov 12 13:28:05 MythCenter mythbackend: mythbackend[2641]: E
> >> TVRecEvent channelutil.cpp:1940 (GetChannelData) GetChannelData()
> >> failed because it could not#012#011#011#011find channel number '52'
> >> in DB for source '2'.
> >> Nov 12 13:28:05 MythCenter mythbackend: mythbackend[2641]: E
> >> TVRecEvent recorders/channelbase.cpp:221 (IsTunable) ChannelBase[7]:
> >> IsTunable(MPEG2TS,52) Failed to find channel in DB on input '7'
> >> Nov 12 13:28:05 MythCenter mythbackend: mythbackend[2641]: E
> >> TVRecEvent recorders/channelbase.cpp:171 (Init) ChannelBase[7]:
> >> Setting start channel '52' failed, #012#011#011#011and we failed to
> >> find any suitible channels on any input.
> >> Nov 12 13:28:05 MythCenter mythbackend: mythbackend[2641]: I
> >> TVRecEvent tv_rec.cpp:3603 (TuningCheckForHWChange) TVRec[7]: HW
> >> Tuner: 7->7
> >> Nov 12 13:28:05 MythCenter mythbackend: mythbackend[2641]: E
> >> TVRecEvent channelutil.cpp:1940 (GetChannelData) GetChannelData()
> >> failed because it could not#012#011#011#011find channel number '52'
> >> in DB for source '2'.
> >> Nov 12 13:28:05 MythCenter mythbackend: mythbackend[2641]: E
> >> TVRecEvent recorders/dtvchannel.cpp:241 (SetChannelByString)
> >> DTVChan[7](192.168.1.117-0): SetChannelByString(52): Unable to find
> >> channel in database.
> >> Nov 12 13:28:05 MythCenter mythbackend: mythbackend[2641]: E
> >> TVRecEvent tv_rec.cpp:3793 (TuningFrequency) TVRec[7]: Failed to set
> >> channel to 52. Reverting to kState_None Nov 12 13:28:05 MythCenter
> >> mythbackend: mythbackend[2641]: I TVRecEvent tv_rec.cpp:1050
> >> (HandleStateChange) TVRec[7]: Changing from WatchingLiveTV to None
> >> Nov 12 13:32:13 MythCenter mythbackend: mythbackend[2641]: N Expire
> >> autoexpire.cpp:264 (CalcParams) AutoExpire: CalcParams(): Max
> >> required Free Space: 4.0 GB w/freq: 7 min
> >>
> >> When this first happened I changed the startchan number for the tuner
> >> from 52 to a channel that is in the database for the source connected
> >> to this tuner, but now it looks to have returned for some reason.
> >> Is there something I've missed in my setup that is causing this to
happen?
> >>
> >> thanks!
> >>
> > Mythtv keeps the last channel tuned by each frontend for live tv and
> > when you switch to live tv it tries to tune that channel.
> > Unfortunately if that channel is not working you are stuck, every time
> > you try again it hangs there and you cannot change channel.
> > I have solved this before by running this SQL:
> >
> > update settings set data = '3707'
> > where value = 'DefaultChanid' ;
> >
> > Setting a good known channel (note that is the chanid not the channel
> > number). This will set all frontends to that default channel. To set a
> > single frontend you will need to add a hostname to the where clause.
> >
> > Peter
> 
> great. so basically, I have to run that before going in to live tv every
time...
> 
> 
> --
> Steve

No, that's not my understanding.

But just to confirm I understand the situation correctly first. You have 3
tuners, 2 HDPVR assigned to videosource1 and a QAM HDHR assigned to
videosource2. Videosource2 has a different set of channels compared with
videosource1 (in this case less channels). Somehow during normal use the
channel of the QAM HDHR gets set to a channel that is not part of its
videosource (videosource2) and once that happens if both HDPVR's are in use
you are unable to start livetv because it tries to tune to a channel outside
its videosource?

So if I understand correctly, we need to work out how the starting channel
is getting set to be a channel outside of the range of videosource2. Do you
have a sequence of steps that you can do to reproduce this problem? Ie, go
to livetv when a HDPVR is available, switch to channel 52 (which is in
videosource1 but not videosource2), exit livetv, schedule recordings on both
the HDPVR's so they are fully occupied, enter livetv, hey presto bang crash?

Have you checked under mythtv-setup / 5. Input Connections / QAM HDHR /
Starting Channel is set to a starting channel valid for the HDHR?



More information about the mythtv-users mailing list