[mythtv-users] No live tv and not recording

Stephen Worthington stephen_agent at jsw.gen.nz
Thu Mar 15 12:40:02 UTC 2018


On Thu, 15 Mar 2018 12:03:09 +0100, you wrote:

>> >In mythfrontend:
>> >"It appears that your backend may be misconfigured.  Check your backend
>> >logs to determine whether your inputs, lineups, channels, or storage
>> >configuration are reporting errors.  This issue is commonly caused by
>> >failing to complete all setup steps properly.  You may wish to review the
>> >documentation for mythtv-setup."
>> >
>> >What can still be wrong ?
>> 
>> Lots - until now, you have not had the tuners working, so the channels
>> that you already have are from before are probably wrong, as they can
>> not have come from a scan of the DVB-S2 multiplexes.  Where did your
>> channels come from?  In any case, you need to try using channels that
>> have been created from scanning using the DVB-S2 tuners.  Only those
>> channels are likely to be set up to actually use the DVB-S2 tuners.
>> 
>> What do these SQL queries produce:
>> 
>> select * from videosource;
>
>MariaDB [mythconverg]> select * from videosource;
>+----------+---------+-----------------+--------+-----------+----------
>+----------+--------+------------+------------+
>| sourceid | name    | xmltvgrabber    | userid | freqtable | lineupid | 
>password | useeit | configpath | dvb_nit_id |
>+----------+---------+-----------------+--------+-----------+----------
>+----------+--------+------------+------------+
>|        1 | Deutsch | eitonly         |        | default   | NULL     | NULL     
>|      1 | NULL       |         -1 |
>|        2 |         | tv_grab_eu_egon |        | default   | NULL     | NULL     
>|      1 | NULL       |         -1 |
>+----------+---------+-----------------+--------+-----------+----------
>+----------+--------+------------+------------+
>2 rows in set (0.00 sec)

You have two sources, one using EIT for the EPG and one using an XMLTV
grabber.

>> 
>> select
>> cardid,parentid,videodevice,cardtype,defaultinput,inputname,displayname,sour
>> ceid,dvb_diseqc_type,startchan,livetvorder,schedorder,recpriority from
>> capturecard order by sourceid,videodevice,cardid;
>
>MariaDB [mythconverg]> select 
>cardid,parentid,videodevice,cardtype,defaultinput,inputname,displayname,sourceid,dvb_diseqc_type,startchan,livetvorder,schedorder,recpriority 
>from capturecard order by sourceid,videodevice,cardid;
>+--------+----------+-----------------------------+----------+--------------
>+-----------+-------------+----------+-----------------+-----------
>+-------------+------------+-------------+
>| cardid | parentid | videodevice                 | cardtype | defaultinput | 
>inputname | displayname | sourceid | dvb_diseqc_type | startchan | livetvorder 
>| schedorder | recpriority |
>+--------+----------+-----------------------------+----------+--------------
>+-----------+-------------+----------+-----------------+-----------
>+-------------+------------+-------------+
>|      1 |        0 | /dev/dvb/adapter0/frontend0 | DVB      | Television   | 
>DVBInput  |             |        1 |            NULL | 1         |           1 
>|          1 |           1 |
>|      2 |        1 | /dev/dvb/adapter0/frontend0 | DVB      | Television   | 
>DVBInput  |             |        1 |               0 | 1         |           1 
>|          1 |           1 |
>+--------+----------+-----------------------------+----------+--------------
>+-----------+-------------+----------+-----------------+-----------
>+-------------+------------+-------------+
>2 rows in set (0.00 sec)

You have two physical tuners, but no multirec virtual tuners.  So each
tuner will be able to only record from one channel at once.  It would
be a good idea to adjust the multirec setting.  In mythtv-setup, go to
Input Connections > select a tuner > Interactions between inputs > Max
recordings and set it to say 5.  That would allow up to 5 channels to
be recorded at one time from one multiplex.  You really need at least
to set it to 2, so that when you have back-to-back recordings from the
same channel, the pre-roll period of the second recording can overlap
the post-roll period of the first recording.  Otherwise you will find
that the end of a program that is running late will be cut off, and
you will have to find the other program recorded after it to play that
bit.  And hope it has not already be watched and deleted.

The downside of setting high numbers for multirec tuners is that you
can occasionally wind up with 5 recordings happening from each tuner
at the same time.  Which would not work unless the recordings were
going to a fast SSD.  A rule of thumb I stick to is to do no more than
3 recordings at once to a single hard drive.  Otherwise all the head
movements between the files and to the system areas of the partitions
will take up too much time and data will be lost before it can be
written to disk.  For recording purposes, more smaller hard drives are
better than one huge one, however fast it is.  I actually have 7
recording drives (3-6 TBytes), plus 4 archival ones that are huge (8
TBytes) but use shingled technology and are unable to be used for
recording as they can just stop writing for up to 30 seconds while
they rewrite a shingle.  But I have 5 DVB-T2 tuners and 5 DVB-S2
tuners, so I can need that many drives at times.  You need to decide
on how much you might be wanting to record at once, versus the number
of hard drives you have to record to, and decide on what multirec
setting to use.  You can always go back and change it later if
necessary.

>> 
>> select
>> mplexid,sourceid,transportid,networkid,frequency,symbolrate,polarity,modulat
>> ion,mod_sys,sistandard,serviceversion from dtv_multiplex order by
>> sourceid,mplexid;
>
>MariaDB [mythconverg]> select 
>mplexid,sourceid,transportid,networkid,frequency,symbolrate,polarity,modulation,mod_sys,sistandard,serviceversion 
>from dtv_multiplex order by sourceid,mplexid;
>+---------+----------+-------------+-----------+-----------+------------
>+----------+------------+---------+------------+----------------+
>| mplexid | sourceid | transportid | networkid | frequency | symbolrate | 
>polarity | modulation | mod_sys | sistandard | serviceversion |
>+---------+----------+-------------+-----------+-----------+------------
>+----------+------------+---------+------------+----------------+
>|       1 |        1 |        1049 |         1 |  10714000 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|       4 |        1 |        1035 |         1 |  10993750 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|       6 |        1 |        1043 |         1 |  11111750 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|       9 |        1 |        1061 |         1 |  10891250 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      22 |        1 |        1097 |         1 |  12343500 |   30000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      25 |        1 |        1119 |         1 |  12721750 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      29 |        1 |        1002 |         1 |  11229000 |   22000000 | v        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      33 |        1 |        1051 |         1 |  10743750 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      39 |        1 |        1015 |         1 |  11420750 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      47 |        1 |        1003 |         1 |  11243750 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      48 |        1 |        1005 |         1 |  11273250 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      49 |        1 |        1006 |         1 |  11288000 |   22000000 | v        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      50 |        1 |        1007 |         1 |  11302750 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      51 |        1 |        1010 |         1 |  11347000 |   22000000 | v        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      52 |        1 |        1011 |         1 |  11361750 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      53 |        1 |        1012 |         1 |  11376500 |   22000000 | v        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      54 |        1 |        1013 |         1 |  11391250 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      55 |        1 |        1019 |         1 |  11493750 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      56 |        1 |        1020 |         1 |  11508500 |   22000000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      57 |        1 |        1021 |         1 |  11523250 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      58 |        1 |        1022 |         1 |  11538000 |   22000000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      59 |        1 |        1023 |         1 |  11552750 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      60 |        1 |        1025 |         1 |  11582250 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      61 |        1 |        1026 |         1 |  11597000 |   22000000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      62 |        1 |        1027 |         1 |  11611750 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      63 |        1 |        1028 |         1 |  11626500 |   22000000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      64 |        1 |        1031 |         1 |  11670750 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      65 |        1 |        1032 |         1 |  11685500 |   22000000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      66 |        1 |        1033 |         1 |  10964250 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      68 |        1 |        1039 |         1 |  11052750 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      69 |        1 |        1040 |         1 |  11067500 |   22000000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      71 |        1 |        1046 |         1 |  11156000 |   22000000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      72 |        1 |        1048 |         1 |  11185500 |   22000000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      73 |        1 |        1053 |         1 |  10773250 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      75 |        1 |        1055 |         1 |  10802750 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      76 |        1 |        1058 |         1 |  10847000 |   22000000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      77 |        1 |        1066 |         1 |  11739000 |   27500000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      78 |        1 |        1072 |         1 |  11856000 |   29700000 | v        
>| qpsk       | DVB-S2  | dvb        |             33 |
>|      79 |        1 |        1073 |         1 |  12109500 |   27500000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      80 |        1 |        1076 |         1 |  11934000 |   29700000 | v        
>| qpsk       | DVB-S2  | dvb        |             33 |
>|      81 |        1 |        1078 |         1 |  11973000 |   27500000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      82 |        1 |        1079 |         1 |  11953500 |   27500000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      83 |        1 |        1080 |         1 |  12012000 |   29700000 | v        
>| qpsk       | DVB-S2  | dvb        |             33 |
>|      84 |        1 |        1082 |         1 |  12051000 |   27500000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      85 |        1 |        1086 |         1 |  12129000 |   29700000 | v        
>| qpsk       | DVB-S2  | dvb        |             33 |
>|      86 |        1 |        1088 |         1 |  12168000 |   29700000 | v        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      87 |        1 |        1089 |         1 |  12187500 |   27500000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      88 |        1 |        1091 |         1 |  12226500 |   27500000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      89 |        1 |        1093 |         1 |  12265500 |   27500000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      90 |        1 |        1096 |         1 |  12324000 |   29700000 | v        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      91 |        1 |        1101 |         1 |  11836500 |   27500000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      92 |        1 |        1107 |         1 |  12544750 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      93 |        1 |        1108 |         1 |  12551500 |   22000000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      94 |        1 |        1109 |         1 |  12574250 |   22000000 | h        
>| 8psk       | DVB-S2  | dvb        |             33 |
>|      95 |        1 |        1111 |         1 |  12603750 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      96 |        1 |        1113 |         1 |  12633250 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      97 |        1 |        1115 |         1 |  12662750 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      98 |        1 |        1117 |         1 |  12692250 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|      99 |        1 |        1201 |         1 |  12421500 |   27500000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|     100 |        1 |        1105 |        53 |  12515250 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|     101 |        1 |           4 |       133 |  12031500 |   27500000 | h        
>| qpsk       | DVB-S2  | dvb        |             33 |
>|     102 |        1 |           5 |       133 |  12460500 |   27500000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|     104 |        1 |           7 |       133 |  12148500 |   27500000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|     109 |        1 |          12 |       133 |  12304500 |   27500000 | h        
>| qpsk       | DVB-S2  | dvb        |             33 |
>|     110 |        1 |          15 |       133 |  10920750 |   22000000 | h        
>| qpsk       | DVB-S   | dvb        |             33 |
>|     112 |        1 |          33 |       133 |  12480000 |   27500000 | v        
>| qpsk       | DVB-S   | dvb        |             33 |
>+---------+----------+-------------+-----------+-----------+------------
>+----------+------------+---------+------------+----------------+
>66 rows in set (0.00 sec)

The dtv_multiplex table looks fine.  However, note that all the
multiplexes are listed as being on sourceid 1, the one getting its EPG
from EIT.  Source 2 is unused.

>> select
>> chanid,channum,sourceid,callsign,name,xmltvid,tvformat,outputfilters,mplexid
>> ,serviceid,recpriority from channel order by name limit 20;
>
>MariaDB [mythconverg]> select 
>chanid,channum,sourceid,callsign,name,xmltvid,tvformat,outputfilters,mplexid 
>,serviceid,recpriority from channel order by name limit 20;    
>+--------+---------+----------+--------------------+----------+---------
>+----------+---------------+---------+-----------+-------------+
>| chanid | channum | sourceid | callsign           | name     | xmltvid | 
>tvformat | outputfilters | mplexid | serviceid | recpriority |
>+--------+---------+----------+--------------------+----------+---------
>+----------+---------------+---------+-----------+-------------+
>|  31118 | 30118   |        1 | UNKNOWN-1058-30118 |          |         |          
>|               |      76 |     30118 |           0 |
>|  31122 | 30122   |        1 | UNKNOWN-1058-30122 |          |         |          
>|               |      76 |     30122 |           0 |
>|  31123 | 30123   |        1 | UNKNOWN-1058-30123 |          |         |          
>|               |      76 |     30123 |           0 |
>|  31126 | 30126   |        1 | UNKNOWN-1058-30126 |          |         |          
>|               |      76 |     30126 |           0 |
>|  31127 | 30127   |        1 | UNKNOWN-1058-30127 |          |         |          
>|               |      76 |     30127 |           0 |
>|  31151 | 30151   |        1 | UNKNOWN-1058-30151 |          |         |          
>|               |      76 |     30151 |           0 |
>|  31154 | 30154   |        1 | UNKNOWN-1058-30154 |          |         |          
>|               |      76 |     30154 |           0 |
>|  31156 | 30156   |        1 | UNKNOWN-1058-30156 |          |         |          
>|               |      76 |     30156 |           0 |
>|  31158 | 30158   |        1 | UNKNOWN-1058-30158 |          |         |          
>|               |      76 |     30158 |           0 |
>|  31159 | 30159   |        1 | UNKNOWN-1058-30159 |          |         |          
>|               |      76 |     30159 |           0 |
>|  31179 | 30179   |        1 | UNKNOWN-1058-30179 |          |         |          
>|               |      76 |     30179 |           0 |
>|  31189 | 30189   |        1 | UNKNOWN-1058-30189 |          |         |          
>|               |      76 |     30189 |           0 |
>|  31190 | 30190   |        1 | UNKNOWN-1058-30190 |          |         |          
>|               |      76 |     30190 |           0 |
>|  31191 | 30191   |        1 | UNKNOWN-1058-30191 |          |         |          
>|               |      76 |     30191 |           0 |
>|  31193 | 30193   |        1 | UNKNOWN-1058-30193 |          |         |          
>|               |      76 |     30193 |           0 |
>|  31194 | 30194   |        1 | UNKNOWN-1058-30194 |          |         |          
>|               |      76 |     30194 |           0 |
>|  31195 | 30195   |        1 | UNKNOWN-1058-30195 |          |         |          
>|               |      76 |     30195 |           0 |
>|  31197 | 30197   |        1 | UNKNOWN-1058-30197 |          |         |          
>|               |      76 |     30197 |           0 |
>|  31203 | 30203   |        1 | .                  | .        |         |          
>|               |      65 |     30203 |           0 |
>|   1662 | 662     |        1 | 1-2-3.tv           | 1-2-3.tv |         |          
>|               |     102 |       662 |           0 |
>+--------+---------+----------+--------------------+----------+---------
>+----------+---------------+---------+-----------+-------------+
>20 rows in set (0.00 sec)

I put a limit 20 option on that query as I was sure you would have
hundreds of channels - way too many to post.  I was hoping that we
would see a bit more variety of channels in that 20, but that is not
the case, so we will need to do a couple more queries to see more
useful information:

select
chanid,channum,sourceid,callsign,name,xmltvid,tvformat,outputfilters,mplexid,serviceid,recpriority
from channel where name not like 'UNKNOWN%' order by name limit 20;

select
chanid,channum,sourceid,callsign,name,xmltvid,tvformat,outputfilters,mplexid,serviceid,recpriority
from channel where name not like 'UNKNOWN%' and sourceid=2 order by
name limit 20;

The UNKNOWN channels are probably not real channels that you can
receive from - they may be things like channels that are used to send
updates to set top boxes, or other service channels.  So that query
only really showed one real channel, 1-2-3.tv.  There is no xmltvid,
as expected, as the channel is on sourceid 1 which gets its EPG data
via EIT.  It looks like it is a real channel, so I would suggest
trying to play live TV from it, by going to the Program Guide, finding
that channel, and using the M (menu) option then selecting "Watch This
Channel".  The other settings for source 1 all look OK, so in theory
it should play.  But it would be a good idea to be running mythbackend
with the "--loglevel debug -v record" options when you try it.  And
also to have the other software that is running rtspd and may be using
the tuners shut down before starting mythbackend.

>I am also in contact with the manufacturer of my tuner. He says 9 times 10, 
>problem comes from MythTV, but it can also come from his production.
>
>So if we really don't succeed, he well change my tuner. He already changed it 
>once, the first tuner stopped working after some days.

If scanning is working, then playing TV should work also - so it is
unlikely there is another problem with the card.  And VLC is able to
play from the tuners via the other software, so that also says the
hardware is likely to be fine.


More information about the mythtv-users mailing list