[mythtv-users] Issue with multiple IVTV tuners

Stephen Worthington stephen_agent at jsw.gen.nz
Thu Jan 25 04:56:14 UTC 2018


On Wed, 24 Jan 2018 21:39:07 -0500, you wrote:

>
>
>On Thu, 2018-01-25 at 01:06 +0000, Mark Perkins wrote:
>> 
>> On 25/01/18 04:15, James B. Huber 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.
>> 
>> But did you make unique chanid's? You can't reuse the chanid with 
>> multiple urls (well, as I understand it). I don't think the group 
>> matters much.
>> 
>> > 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.
>> 
>> This sounds a bit like you have still got duplicated chanid.
>> 
>> >
>> > 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 ?
>> >
>> I have 13 IPTV tuners on my production backend over two separate m3u 
>> files and 15 IPTV tuners on a test backend over three m3u files (30+ 
>> channels) so multiple IPTV tuners and multiple m3u files can work. But 
>> all my chanid are unique.
>
>Well I certainly have duplicated Chanid's, and as I understand it, I
>have to.
>
>When the listings are grabbed the .xmltv file looks like this with
>respect to the channels:
>        <channel id="I6.12828">
>		<display-name>WRBW</display-name>
>		<display-name>6 WRBW</display-name>
>		<display-name>6</display-name>
>	</channel>
>	<channel id="I7.11448">
>		<display-name>WFTV</display-name>
>		<display-name>7 WFTV</display-name>
>		<display-name>7</display-name>
>	</channel>
>ETC, ETC. The first part of the "channel id" ip to the period is the
>channel number, the second part (after the period) is XMLID.
>
>This looks like below in the .m3u file:
>#EXTINF:1,6 - WRBW
>#EXTMYTHTV:xmltvid=12828
>http://199.33.251.43:80/main
>#EXTINF:1,7 - WFTV
>#EXTMYTHTV:xmltvid=11448
>http://199.33.251.43:80/main
>
>
>So, when new listings are grabbed, the database is updated based on the
>XMLID so I can't mess with it. (which is really the channel id in the
>DB)
>
>I must be being slow...

With normal IPTV, what you need is to have one source for the tuners
and use the same .m3u file for each tuner on that sourceid.  You can
have as many IPTV tuners for the same source as you like, so if you
want to record from 5 channels at once you would set up 5 tuners. Each
of the URLs needs to differentiate the channel - no two URLs in the
.m3u file should be the same.  Here is an except from mine:

#EXTINF:0,4089 - BBC World
#EXTMYTHTV:xmltvid=bbc-world.sky.co.nz
#EXTVLCOPT:program=1026
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,1099,1009,1109

#EXTINF:0,4083 - Face TV
#EXTMYTHTV:xmltvid=face-tv.sky.co.nz
#EXTVLCOPT:program=1187
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,320,1010,1110

#EXTINF:0,4027 - TVSN Shopping
#EXTMYTHTV:xmltvid=tvsn.sky.co.nz
#EXTVLCOPT:program=1210
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,321,1011,1111

#EXTINF:0,4005 - the BOX
#EXTMYTHTV:xmltvid=thebox.sky.co.nz
#EXTVLCOPT:program=1001
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

It is possible that MythTV is getting confused by only having one URL
per tuner and having those same two URLs on all channels.  One fix for
that would be to use two sources, one per tuner.  That would mean that
the EPG data would need to be stored twice in the database, but it
should work.


More information about the mythtv-users mailing list