[Pending] DVB-IP scanning improvements (1 Viewer)

AlexPlas

Portal Pro
August 24, 2006
231
41
Kyiv, Ukraine
Ukraine Ukraine
Country flag
Hello

I'd like to offer patch with few improvements in DVB-IP channel scanning. First I like to explain why this patch is done.

My ISP provides IPTV service with few different sets of channels which can be ordered separately. URL to the playlist is common (http://tv.ipnet.ua/ipnet.m3u) and content of the playlist depends on ISP user’s current subscription. So, first of all I cannot prepare the playlist for submitting to MP repository because I've not subscribed to all sets of channels, and second I have to change playlist for channel scanning every time when IPS adds new channels or I become subscribed for new channels set.

Second issue is a format of playlist. It contains additional control elements like the following:
Code:
#EXTINF:0,1+1
#EXTVLCOPT:audio-track-id=770
udp://@239.23.0.5:1234/
Current implementation cannot parse #EXTVLCOPT element properly.

Third issue is number of network adapters on my TV Server. I have three network adapters in my TV Server, so for correct scanning of multicast streams I have to change every URL and add there IP address of correct network adapter.

So, my patch offers next changes:
1) Parsing of M3U files is changed. Any elements starting with # are allowed, #EXTINF and #EXTVLCOPT will be parsed properly
2) M3U file can contain URL to another M3U file. Only one URL as the first element of M3U file is allowed, and only one level of nesting is allowed. Playlist which is pointed by URL will be downloaded and parsed. So, playlist for my ISP have the following format now:
Code:
#EXTM3U
#EXTVLCOPT:http-charset=utf-8
http://tv.ipnet.ua/ipnet.m3u
3) An ability to select network adapter is added to DVB-IP scanning section. Default behavior is not changed since default value of network interface combobox is Auto which doesn't change URLs.

Here is attached patch file against last SVN

Looking forward for any suggestions

Changelog:
 

Attachments

Stepko

Retired Team Member
  • Premium Supporter
  • September 29, 2007
    186
    152
    Hamburg/Wolfsburg
    Germany Germany
    AW: DVB-IP scanning improvements

    Hi AlexPlas,

    thanks for submitting the patch. I'll have a look at it as soon as I can.
    Regarding the issue of having multiple network adapters: This can be fixed with a static route in Windows. You just need to set a static IP for the network adapter and then add a static route so that all multicast join/leave commands will be sent over this adapter. Works good on my htpc.

    Stepko
     

    AlexPlas

    Portal Pro
    August 24, 2006
    231
    41
    Kyiv, Ukraine
    Ukraine Ukraine
    Country flag
    georgius, I have tested my changes with standard IPTV filter, with Stepko's filter and with your as well :)

    Stepko, I think the ability to select network interface directly in GUI is a bit simple then routing table editing, especially for users who isn't familiar enough with TCP/IP protocol
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Slovakia Slovakia
    My provider doesn't use static IP addresses, I have to set my HTPC to set IP address through DHCP. So I can't use static routing and also hypothetical choosing from network interfaces in HTPC will don't work. I have solved this problem with dynamic change of routing table, but this isn't for users without knowledge of routing and TCP/IP.

    If you want to add some ability of choosing network interface in GUI than you'll need to remember users like me without static IP address on network interface - there have to be implemented some "protocol" how to instruct IPTV filter to use specific network interface. If I correctly remember, Stepko's version of filter uses only static IP adresses to specify network interface, my version should also work with url or static address.
     

    AlexPlas

    Portal Pro
    August 24, 2006
    231
    41
    Kyiv, Ukraine
    Ukraine Ukraine
    Country flag
    georgius, thanks for reminder, I really forget about dynamic IPs

    I see one simple solution at the first look. We can use broadcast IP address of network interface instead of unicast in the URL. As far as I know providers usually have some pool of IP addresses with some base address and network mask, so all these IP addresses have same broadcast address. On the channels scanning stage we insert in URLs broadcast address as udp://my.broadcast.address@239.23.0.5:1234/ on the channel tuning stage we just change in URL broadcast address to active IP address for network interface with same broadcast address. It gives an ability to select network adapter in GUI and sufficient flexibility to use it with dynamic IP addresses.

    Don't sure if I've explained it clear :oops:
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Slovakia Slovakia
    It takes me longer to understand, but it can work. I assume that "my.broadcast.address" is broadcast address of network interface to use. I'll test this if it works with my filter's version.
     

    AlexPlas

    Portal Pro
    August 24, 2006
    231
    41
    Kyiv, Ukraine
    Ukraine Ukraine
    Country flag
    Yes, "my.broadcast.address" is broadcast address of network interface, but I have change something in TvCardDVBIPBuiltIn class to implement it, I'll make it this evening and update patch in the first post
     

    AlexPlas

    Portal Pro
    August 24, 2006
    231
    41
    Kyiv, Ukraine
    Ukraine Ukraine
    Country flag
    Support of dynamic IP addresses added, first post changed
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Slovakia Slovakia
    Interesting idea, but I have some remarks. Routing network communication through specified network interface should be solved in general way. This problem should be solved not only for IP addresses in numeric format, but also for URLs (e.g. udp://myprovider:port, http://provider.com/channel). I think that we should not encode network interface into URL directly (or at least not into URL written in playlist, this URL should be sent to filter in unchanged form). We also should not use network interface IP address, because whole URL sent to filter will be written to database. Network interface IP address for users with DHCP will change (in worst case can change also network mask).

    Because filter is written in C++ we cannot use managed classes to exchange parameters between TV-Server Configuration, TvServer and filter :(

    So I think that we should use some kind of "protocol". I suggest to encode needed parameters for filter to URL in next way: param1=value1|param2=value2|...|paramN=valueN (if in some value have to be written pipe character, it will be doubled, e.g. needed value 'abc|123' will be written as 'abc||123'). The name of parameters should be defined somewhere in TvService source code, for begining we need url and interface. So, url in playlist "udp://@233.62.90.1:1234" and interface with name "Local Area Connection" will be encoded into this url: url=udp://@233.62.90.1:1234|interface=Local Area Connection; without specified interface: url=udp://@233.62.90.1:1234.

    What do you think about this?
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    A Genpix skywalker dvb card not scanning channels 1.19 0
    M Scan channels stopped working on Windows 10 Installation, configuration support 1
    A DVB IP Crash on Scanning - 1.20 General Support 0
    M 1.25.0 Tv Server Configuration Italian Dvb-t2 test channel preview error Television (MyTV frontend and TV-Server) 8
    R Suggestions for reliable PCIe DVB-S2 tuner MediaPortal 1 Talk 8
    Golf4 DVB-IP über Fritzbox - m3u-Senderliste Allgemeines Support- und Diskussionsforum 43
    M TV Server can't tune to some DVB-S multiplexes while other software can General 0
    C Telenet analog-to-digital switch -- manually finding and inputting DVB-C channels in Mediaportal2 General 0
    framug No color in TVGuide when XMLTV without DVB EPG MediaPortal 1 Talk 59
    T [solved] Any idea where Channel 107 (DVB-T2) BBC News HD (and others!) have gone??? Installation, configuration support 12
    framug [EPG] Some problems with DVB EPG Improvement Suggestions 49
    bta489 [solved] DVB-T2 Recordings: Sometimes no Audio after muxing with mkvmerge Tools and other software 2
    badboyxx TV card is listed as unknown in TV-server config General 4
    bribbon [Pending] Switzerland: DVB-T switch-off on 03 June 2019 Submit: EPG-Grabbers and tuningdetails 0
    bribbon [Pending] DVB-C Tuning Parameters: Switzerland.UPC Cablecom [NID 43020] v.7.xml Submit: EPG-Grabbers and tuningdetails 0
    J DVB-S2 card fails to tune? Subchannel count increasing Television (MyTV frontend and TV-Server) 3
    D Cannot get a fully populated UK Freesat EPG (DVB-S) General 14
    hanfmaster Dvb-s2 zu android ipad Einsteigerforum 0
    C DVB-C Empfänger Hauppauge Win TV dual wird in Media Portal nicht aktiviert TV / Streaming 1
    Terra [solved] MP TV Server cannot find any channels anymore, DVB viewer works Installation, configuration support 8
    Booner [Verkauf] Verkaufe Max S8 8 Tuner DVB-S2 Karte von Digital Devices neuwertig Marktplatz 2
    N [solved] How to record a series (UK Freeview dvb-t) General 10
    N What dvb-t/t2 dual or quad tuners work with media portal (in the UK)? Newcomers Forum 8
    E [solved] Vodafone Kabel dvb-c Braunschweig Tuning Liste (Stand 31.01.2019) TV / Streaming 0
    items [Verkauf] Hauppauge Dual TV Tuner USB DVB-C, DVB-C Marktplatz 0
    Similar threads

























    Top Bottom