[mythtv-users] Issue with multiple IVTV tuners

Stephen Worthington stephen_agent at jsw.gen.nz
Wed Jan 24 23:36:18 UTC 2018


On Wed, 24 Jan 2018 12:45:26 -0500, you wrote:

>
>
>On Wed, 2018-01-24 at 01:15 +0000, Mark Perkins wrote:
>> On 24 January 2018 8:56:03 am "James B. Huber" <jbhuber at judahnet.net> wrote:
>> 
>> > On Tue, 2018-01-23 at 21:39 +0000, Mark Perkins wrote:
>> >> On 24 January 2018 7:11:04 am "James B. Huber" <jbhuber at judahnet.net> wrote:
>> >>
>> >> >
>> >> > Before I include the backend log snippit, Here is the first 5 lines of
>> >> > the seperate config files (m3u files) that are used for each of the IPTV
>> >> > (IE: FreeBOX) encoders:
>> >> >
>> >> > FBE200-1.m3u
>> >> > #EXTM3U
>> >> > #EXTINF:0,1245 - ELREYHD
>> >> > #EXTMYTHTV:xmltvid=I84175
>> >> > http://199.33.251.43:80/main
>> >> >
>> >> > and
>> >> > FBE200-2.m3u
>> >> > #EXTM3U
>> >> > #EXTINF:1,1245 - ELREYHD
>> >> > #EXTMYTHTV:xmltvid=I84175
>> >> > http://199.33.251.44:80/main
>> >> >
>> >>
>> >> Looks like you have repeated the #EXTINF lines.
>> >>
>> >>
>So I have uniqued the recording groups in the EXTINF, no help.
>
>Here is what I have found. in the mythconverg, the iptv_channel table,
>the URL column, contains the URL of whatever .m3u file loaded last. It
>would appear that myth is paying no attention to the fact there are 2
>capture cards with unique cardid's defined.
>
>Switched away from zap2it, if that makes anyone happy, but that is not
>the issue.
>
>Are we saying that myth can really only handle a single iptv tuner ?
>
>Anyone ????

I run MythTV with 5 IPTV tuners - they talk to a local SAT>IP server
(minisatip).  It uses all 5 tuners when necessary.  They use the same
.m3u file (from my local web server).  I have manually customised the
displayname values for each tuner so I can tell them apart more
readily:

MariaDB [mythconverg]> select
cardid,parentid,videodevice,cardtype,defaultinput,inputname,displayname,sourceid,startchan
from capturecard order by sourceid,videodevice,cardid;
+--------+----------+-------------------------------------------+----------+--------------+-----------+---------------------------+----------+-----------+
| cardid | parentid | videodevice                               | cardtype | defaultinput | inputname | displayname               | sourceid | startchan |
+--------+----------+-------------------------------------------+----------+--------------+-----------+---------------------------+----------+-----------+
|      1 |        0 | /dev/dvb/adapter0/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 1.1 (1)             |        1 | 1         |
|      2 |        1 | /dev/dvb/adapter0/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 1.2 (2)             |        1 | 1         |
|      3 |        1 | /dev/dvb/adapter0/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 1.3 (3)             |        1 | 1         |
|      4 |        1 | /dev/dvb/adapter0/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 1.4 (4)             |        1 | 1         |
|      5 |        1 | /dev/dvb/adapter0/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 1.5 (5)             |        1 | 1         |
|      6 |        0 | /dev/dvb/adapter1/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 2.1 (6)             |        1 | 3         |
|      7 |        6 | /dev/dvb/adapter1/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 2.2 (7)             |        1 | 12        |
|      8 |        6 | /dev/dvb/adapter1/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 2.3 (8)             |        1 | 12        |
|      9 |        6 | /dev/dvb/adapter1/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 2.4 (9)             |        1 | 12        |
|     10 |        6 | /dev/dvb/adapter1/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 2.5 (10)            |        1 | 12        |
|     11 |        0 | /dev/dvb/adapter2/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 3.1 (11)            |        1 | 12        |
|     12 |       11 | /dev/dvb/adapter2/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 3.2 (12)            |        1 | 1         |
|     13 |       11 | /dev/dvb/adapter2/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 3.3 (13)            |        1 | 3         |
|     14 |       11 | /dev/dvb/adapter2/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 3.4 (14)            |        1 | 3         |
|     15 |       11 | /dev/dvb/adapter2/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 3.5 (15)            |        1 | 3         |
|     16 |        0 | /dev/dvb/adapter3/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 4.1 (16)            |        1 | 5         |
|     17 |       16 | /dev/dvb/adapter3/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 4.2 (17)            |        1 | 5         |
|     18 |       16 | /dev/dvb/adapter3/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 4.3 (18)            |        1 | 1         |
|     19 |       16 | /dev/dvb/adapter3/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 4.4 (19)            |        1 | 5         |
|     20 |       16 | /dev/dvb/adapter3/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 4.5 (20)            |        1 | 5         |
|     21 |        0 | /dev/dvb/adapter4/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 5.1 (21)            |        1 | 5         |
|     22 |       21 | /dev/dvb/adapter4/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 5.2 (22)            |        1 | 5         |
|     23 |       21 | /dev/dvb/adapter4/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 5.3 (23)            |        1 | 5         |
|     24 |       21 | /dev/dvb/adapter4/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 5.4 (24)            |        1 | 5         |
|     25 |       21 | /dev/dvb/adapter4/frontend0               | DVB      | DVBInput     | DVBInput  | DVB-T 5.5 (25)            |        1 | 5         |
|     27 |        0 | /dev/dvb/adapter5/frontend0               | DVB      | DVBInput     | DVBInput  | QBox2 sasc-ng.1 (27)      |        4 | 4089      |
|     28 |       27 | /dev/dvb/adapter5/frontend0               | DVB      | DVBInput     | DVBInput  | QBox2 sasc-ng.2 (28)      |        4 | 4089      |
|     29 |       27 | /dev/dvb/adapter5/frontend0               | DVB      | DVBInput     | DVBInput  | QBox2 sasc-ng.3 (29)      |        4 | 4089      |
|     30 |       27 | /dev/dvb/adapter5/frontend0               | DVB      | DVBInput     | DVBInput  | QBox2 sasc-ng.4 (30)      |        4 | 4089      |
|     31 |       27 | /dev/dvb/adapter5/frontend0               | DVB      | DVBInput     | DVBInput  | QBox2 sasc-ng.5 (31)      |        4 | 4089      |
|     32 |        0 | /dev/dvb/adapter6/frontend0               | DVB      | DVBInput     | DVBInput  | TeVii S470 sasc-ng.1 (32) |        4 | 4070      |
|     33 |       32 | /dev/dvb/adapter6/frontend0               | DVB      | DVBInput     | DVBInput  | TeVii S470 sasc-ng.2 (33) |        4 | 4074      |
|     34 |       32 | /dev/dvb/adapter6/frontend0               | DVB      | DVBInput     | DVBInput  | TeVii S470 sasc-ng.3 (34) |        4 | 4074      |
|     35 |       32 | /dev/dvb/adapter6/frontend0               | DVB      | DVBInput     | DVBInput  | TeVii S470 sasc-ng.4 (35) |        4 | 4074      |
|     36 |       32 | /dev/dvb/adapter6/frontend0               | DVB      | DVBInput     | DVBInput  | TeVii S470 sasc-ng.5 (36) |        4 | 4074      |
|     90 |        0 | http://satip.jsw.gen.nz:8080/playlist.m3u | FREEBOX  | Television   | MPEG2TS   | SAT>IP 1.1 (90)           |        6 | 4089      |
|     91 |       90 | http://satip.jsw.gen.nz:8080/playlist.m3u | FREEBOX  | Television   | MPEG2TS   | SAT>IP 1.2 (91)           |        6 | 4074      |
|     92 |        0 | http://satip.jsw.gen.nz:8080/playlist.m3u | FREEBOX  | Television   | MPEG2TS   | SAT>IP 2.1 (92)           |        6 | 4005      |
|     93 |       92 | http://satip.jsw.gen.nz:8080/playlist.m3u | FREEBOX  | Television   | MPEG2TS   | SAT>IP 2.2 (93)           |        6 | 4005      |
|     94 |        0 | http://satip.jsw.gen.nz:8080/playlist.m3u | FREEBOX  | Television   | MPEG2TS   | SAT>IP 3.1 (94)           |        6 | 4017      |
|     95 |       94 | http://satip.jsw.gen.nz:8080/playlist.m3u | FREEBOX  | Television   | MPEG2TS   | SAT>IP 3.2 (95)           |        6 | 4005      |
|     96 |        0 | http://satip.jsw.gen.nz:8080/playlist.m3u | FREEBOX  | Television   | MPEG2TS   | SAT>IP 4.1 (96)           |        6 | 4007      |
|     97 |       96 | http://satip.jsw.gen.nz:8080/playlist.m3u | FREEBOX  | Television   | MPEG2TS   | SAT>IP 4.2 (97)           |        6 | 4089      |
|     98 |        0 | http://satip.jsw.gen.nz:8080/playlist.m3u | FREEBOX  | Television   | MPEG2TS   | SAT>IP 5.1 (98)           |        6 | 4011      |
|     99 |       98 | http://satip.jsw.gen.nz:8080/playlist.m3u | FREEBOX  | Television   | MPEG2TS   | SAT>IP 5.2 (99)           |        6 | 4005      |
+--------+----------+-------------------------------------------+----------+--------------+-----------+---------------------------+----------+-----------+
45 rows in set (0.00 sec)

MythTV creates two tuner entries in the capturecard table for each
IPTV tuner, so it can do a limited form of multirec on them where it
will overlap recordings that are happening back to back from the same
channel using the same "tuner" (ie the same URL and IP connection).

Here are samples of my channel table entries and iptv_channel table
entries for the IPTV tuners:

MariaDB [mythconverg]> select
chanid,channum,name,callsign,mplexid,serviceid from channel where
sourceid=6 order by channum+0 limit 10;
+--------+---------+-----------------+----------+---------+-----------+
| chanid | channum | name            | callsign | mplexid | serviceid |
+--------+---------+-----------------+----------+---------+-----------+
|  10000 | 4000    | Preview 0       | PREVIEW0 |    NULL |      1000 |
|  10004 | 4004    | PRIME HD        | PRIME    |    NULL |      1211 |
|  10005 | 4005    | the BOX         | THEBOX   |    NULL |      1001 |
|  10006 | 4006    | Vibe            | VIBE     |    NULL |      1041 |
|  10007 | 4007    | UKTV            | UKTV     |    NULL |      1003 |
|  10008 | 4008    | JONES!          | JONES    |    NULL |      1190 |
|  11009 | 4009    | SKY BOX SETS HD | Box Sets |    NULL |      1251 |
|  10010 | 4010    | SoHo            | SoHo     |    NULL |      1179 |
|  10011 | 4011    | Comedy Central  | COMEDY   |    NULL |      1042 |
|  10014 | 4014    | E!              | E!       |    NULL |      1021 |
+--------+---------+-----------------+----------+---------+-----------+
10 rows in set (0.00 sec)

MariaDB [mythconverg]> select * from iptv_channel order by chanid
limit 10;
+--------+--------+------------------------------------------------------------------------------------------------------------------------------------------+------+---------+
| iptvid | chanid | url                                                                                                                                      | type | bitrate |
+--------+--------+------------------------------------------------------------------------------------------------------------------------------------------+------+---------+
|     74 |  10000 | rtsp://satip.jsw.gen.nz:554/?src=1&freq=12519&msys=dvbs&plts=off&fec=34&pol=h&ro=0.35&sr=22500&mtype=qpsk&pids=0,1069,1006,1106,8186     | data |       0 |
|     75 |  10004 | rtsp://satip.jsw.gen.nz:554/?src=1&freq=12295&msys=dvbs2&plts=off&fec=23&pol=h&ro=0.35&sr=22500&mtype=8psk&pids=0,307,1007,1107,1907     | data |       0 |
|     76 |  10005 | rtsp://satip.jsw.gen.nz:554/?src=1&freq=12608&msys=dvbs&plts=off&fec=34&pol=h&ro=0.35&sr=22500&mtype=qpsk&pids=0,1019,1001,1101          | data |       0 |
|     77 |  10006 | rtsp://satip.jsw.gen.nz:554/?src=1&freq=12581&msys=dvbs&plts=off&fec=34&pol=h&ro=0.35&sr=22500&mtype=qpsk&pids=0,304,1004,1104,8184      | data |       0 |
|     78 |  10007 | rtsp://satip.jsw.gen.nz:554/?src=1&freq=12644&msys=dvbs&plts=off&fec=34&pol=h&ro=0.35&sr=22500&mtype=qpsk&pids=0,303,1003,1103,8185,1903 | data |       0 |
|     79 |  10008 | rtsp://satip.jsw.gen.nz:554/?src=1&freq=12608&msys=dvbs&plts=off&fec=34&pol=h&ro=0.35&sr=22500&mtype=qpsk&pids=0,303,1003,1103,8183      | data |       0 |
|     81 |  10010 | rtsp://satip.jsw.gen.nz:554/?src=1&freq=12581&msys=dvbs&plts=off&fec=34&pol=h&ro=0.35&sr=22500&mtype=qpsk&pids=0,308,1008,1108           | data |       0 |
|     82 |  10011 | rtsp://satip.jsw.gen.nz:554/?src=1&freq=12707&msys=dvbs&plts=off&fec=34&pol=h&ro=0.35&sr=22500&mtype=qpsk&pids=0,304,1004,1104           | data |       0 |
|     83 |  10014 | rtsp://satip.jsw.gen.nz:554/?src=1&freq=12608&msys=dvbs&plts=off&fec=34&pol=h&ro=0.35&sr=22500&mtype=qpsk&pids=0,1079,1007,1107          | data |       0 |
|     84 |  10015 | rtsp://satip.jsw.gen.nz:554/?src=1&freq=12707&msys=dvbs&plts=off&fec=34&pol=h&ro=0.35&sr=22500&mtype=qpsk&pids=0,1039,1003,1103,1903     | data |       0 |
+--------+--------+------------------------------------------------------------------------------------------------------------------------------------------+------+---------+
10 rows in set (0.00 sec)

In case anyone is wondering, tuners 5 & 6 (sourceid 4) no longer exist
(there is no /dev/dvb/adapter5 or /dev/dvb/adapter6).  So when the
channum gets looked up, and a matching tuner is searched for, any
matches to the old tuners are discarded as mythbackend knows they do
not work from its testing at startup.  So only the IPTV tuners
(sourceid=6) get used for those channels.  One day I will get around
to properly deleting the remnants of sourceid 4.


More information about the mythtv-users mailing list