IPTV mpts scan is storing same url for all channels

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
luc5588
Junior
Posts: 39
Joined: Sat Dec 19, 2015 11:13 am
Reunion

IPTV mpts scan is storing same url for all channels

Post by luc5588 »

Using: 29.0+fixes.20170827.48a2cfa-0ubuntu0mythbuntu2

Since my slave machine next to my satellite cables is starting to fail, I thought I would try setting up IPTV from my master to a tvheadend talking to my satellite. This would allow me to replace the failing machine with a small box (such as Pi). I'd probably lose being able to record multiple channels on the same mux, but that's not a major issue.

The IPTV scan works fine, logging shows it using the correct URLs, and it detects and inserts channels. However he URL stored in iptv_channel is the same for all the channels rather than the one used for the individual channel scan. This means most channels are then not tunable. I think it always uses the URL for the first station alphabetically in the scan.

Code: Select all

delete from iptv_channel;
delete from channel where sourceid=3;  -- my new source

m3u:
#EXTM3U
#EXTINF:-1,1087 - I HD
http://192.168.1.99:9981/stream/channelid/1605499487?profile=pass
#EXTINF:-1,1076 - Food
http://192.168.1.99:9981/stream/channelid/1474570394?profile=pass
#EXTINF:-1,1002 - 5
http://192.168.1.99:9981/stream/channelid/1793334538?profile=pass                                                                
etc

After the scan:

select count(*) from iptv_channel;                              
+----------+                                                                                                                                                                      
|      171 |                                                                                                                                                                      
+----------+     

select distinct url from iptv_channel;                                                                                                                                            
| http://192.168.1.99:9981/stream/channelid/1793334538?profile=pass |                                                            

i.e, only one URL is used for all 171 channels.

The reason I'm using a mpts scan rather than a simple m3u import is because I want the service id in my channels since my satellite has a number of regional channels that all have the same channel name and mostly have the same programmes but occasionally have different programmes, so I need the serviceid to assign the correct SchedulesDirect xmltvid.

Tvheadend settings: I've tried several: but currently have "rewrite service id 0 (disabled)", and all these disabled: rewrite pmt, pat, sdt, eit. This then streams the channel with correct service id and also mentions other channels on the mux (according to ffprobe). The reason I'm using tvheadend is because it runs on small boxes and in the future could also talk to a replacement sat>ip box.

Is there an easier way to do this?

Anyone have any ideas?
Post Reply