Television Program Resources - Testing China Unicom Mobile IPTV Multicast to Unicast Solution

Television Concept Image

The broadband operator IPTV multicast to unicast, sharing the operator’s set-top box, provides the most stable and rapid local IPTV solution.

Purpose

Many elderly individuals enjoy watching television (at least compared to the mobile screen, it slows down vision degradation, which is the same for everyone). The broadband operator’s IPTV multicast to unicast can achieve local set-top box IPTV program sharing, providing the most stable and rapid IPTV-based local television viewing solution.

This solution is highly favorable for situations where:

  • You want to discard the operator’s ad-filled set-top box.
  • You want the operator’s set-top box’s IPTV data to be transmitted to a local LAN-connected computer, smartphone, or your own set-top box or if the broadband operator has not provided an IPTV set-top box but there is IPTV multicast data available on the fourth LAN port of the broadband modem.
  • You find the IPTV sources online are slow, yet the TV channels you want to watch are available within your local IPTV TV channels. For such channels, it’s best to watch them using multicast (or multicast to unicast).

How to Use

First, it is important to ensure that your broadband and other required prerequisites are in place or can be fulfilled quickly. For detailed steps, see the original article section “Preparation“. Assuming these prerequisites are met or can be met quickly, let’s proceed with the discussion.

  1. Install the corresponding player on the client:

    • For Android boxes or TVs, iptv pro is recommended
    • For PCs, VLC and MPC BE are recommended
    • For Mac and iOS, VLC is recommended
  2. To access the playback program, load the m3u list from the GitHub project. (Please note: these addresses can only be used within the local area network, even in the simplest scenario, a separate Ethernet cable is required to be plugged into the Lan4 port of the broadband modem.)

    1. Unicom’s multicast list address (e.g., Beijing Unicom):

      1. https://bjiptv.gq/IPTV-Unicom-Multicast.m3u

        1. This assumes the broadband modem’s Lan4 port is broadcasting separate multicast data.
      2. https://bjiptv.gq/IPTV-Unicom.m3u

        (For local use)

        1. This assumes the udpxy proxy for multicast has been set up on the router (with the IP set to: 192.168.123.1) and the port configured as: 23234; if not, please modify the router’s IP and port information according to your own situation.
    2. Mobile’s multicast list address (e.g., Beijing Mobile):

      1. https://bjiptv.gq/IPTV-Mobile-Multicast.m3u

        1. This assumes the broadband modem’s Lan4 port is broadcasting separate multicast data.
      2. https://bjiptv.gq/IPTV-Mobile.m3u

        (For local use)

        1. This assumes the udpxy proxy for multicast has been set up on the router (with the IP set to: 192.168.123.1) and the port configured as: 23234; if not, please modify the router’s IP and port information according to your own situation.
    3. Multicast addresses for other regions:

      1. Method one: Multicast address scanning. After scanning, the obtained addresses represent the multicast address list information, which can be edited into m3u format for client playback.
      2. Method two: Packet capturing
        1. For instance, using tcpdump on openwrt.
        2. Connect and capture with a packet capturing tool on the computer side.

Related Content

If you are interested in related television programs/movie resources, the following content may be helpful to you:

Method of Implementation

In the vast majority of cases, I often find the need to individually connect a separate Ethernet cable from the Lan4 port to the router (if the networking conditions do not permit, an additional ‘small’ router can be positioned alongside the broadband modem and connected using an Ethernet cable; subsequently, the set-top box or television can be connected to this ‘small’ router for streaming the IPTV resources provided by the service provider).

The ideal scenario involves the TV or TV box being connected to the router responsible for udpxy’s multicast forwarding, and this router should also have internet access. Such a setup realizes a more comprehensive m3u program list, not limited to only viewing local TV programs provided by the service provider, but also encompasses the ability to merge and view IPTV program sources from the international internet, encompassing IPTV channels from various countries and regions.

As depicted in the diagram above, running two Ethernet cables from the broadband modem to the router (which can be equipped with a customized system) represents the optimal solution.

  1. Once all necessary prerequisites have been met and the two cables have been properly pulled and connected (a common scenario), the following steps should be taken:
    1. Identify the IPTV port on the broadband modem. Depending on the modem, there are two scenarios: dual cables and single cable setups.
  2. Configuration of the router (openwrt, Padavan, Merlin):
    1. Set up a virtual IPTV interface and firewall:
      1. For the cable responsible for transmitting the IPTV multicast data, create a new interface named “tv” with DHCP client protocol. Under LAN settings, remove the newly created interface from the physical settings (i.e., eth3) and enable IGMP snooping. Depending on individual circumstances, consider disabling the firewall on OpenWrt (remove the default configuration).
      2. Address format: rtp://239.3.1.159:8000
    2. Configure the multicast to unicast udpxy:
      1. Enable the specified port and associate it with the previously created virtual IPTV interface.
      2. Address format: http://192.168.123.1:23234/rtp/239.3.1.159:8000
  3. Edit the m3u media address source file:
    1. If intentionally set to a local address, the m3u file provided above can be directly downloaded and used.
    2. Some clients use the txt file format (e.g., DIYP), with the principles/format being largely similar.
  4. Client playback:
    1. Depending on the device platform or system, select a client to play the file saved in the above steps.

Acknowledgements

Best Beijing Unicom and Beijing Mobile IPTV Channel List. https://bjiptv.gq/

Channel list providing EPG, updated daily in sync with EPG

Challenging Path of Implementation

Given the diverse multicast strategies employed by various regions and different ISP providers, combined with the individualized nature of household networking setups, a thorough grasp of the principles outlined above is essential to prevent losing one’s way. Blindly following a tutorial often leads to becoming ensnared in problematic dead-ends.

Personal Network Configuration

  1. Through testing, it has been confirmed that the ONU’s Lan3 and Lan4 ports support multicast data.

    Testing Method: Due to the absence of a PC or device with network ports, I employed another router (installed with the hanwckf-port version of Padavan, or OpenWrt, referred to as the test router).

    I configured the test router’s Lan IP address to 192.168.1.2 to avoid conflicting with the ONU’s 192.168.1.1, while still sharing the 192.168.1 network segment. Subsequently, I initiated television streaming on the set-top box (a necessary process at times, as some service providers embed data exchanges and heartbeat packets within the set-top box, potentially leading to a cessation of multicast data reception due to prolonged authorization inactivity). Following this, I employed scanning tools (or packet capturing) to explore the local ISP’s multicast network segments. Although imperfect, the existing tool iptvsearch.py managed to reveal several multicast addresses and ports. While its efficiency was relatively low, it outperformed multicast-scanner.py

  2. Two cables were connected from the ONU to the router to expand signal coverage across different rooms. One cable was directed into the software router to enable internet connection, while the other (carrying Lan3 or Lan4 multicast data) was fed into a secondary router (configured as an access point) responsible for converting multicast to unicast via udpxy.

  3. Conversion to a UDPrxy address and testing for unicast

    Of crucial importance to the intermediary role of the router:

    • Setting the router’s Lan port to IP 192.168.1.2
    • Avoiding conflicts with the ONU’s 192.168.1.1
    • Avoiding the use of the router’s Wan port

Discoveries:

  1. Platform registration is a prerequisite for multicast address use (i.e., it requires occasional set-top box activation and heartbeat signals to maintain data exchange).
  2. The ‘answers’ multicast playlist, including the latest version from this February, is outdated, resulting in the inability to play high-definition channels (it is presumed that addresses or ports have been altered). Thus, individual capture appears necessary.
  3. After setting up udprxy correctly, the journey of packet capturing continues with available gcc and linux solutions. These tests remain viable for standard definition with impressive speed:
    • rtp://239.3.1.1:8000
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
It is preferable to adopt a command-based approach for a more insightful and comprehensive documentation, averting unnecessary complexities. For detailed information, refer to the document at: [iptv.md](https://github.com/wuwentao/bj-unicom-iptv/blob/master/iptv.md)

If resolution remains elusive, considering flashing the K2P with Merlin firmware seems to offer a straightforward IPTV solution. Target: [http://192.168.1.2:8012/rtp/239.3.1.1:8000](http://192.168.1.2:8012/rtp/239.3.1.1:8000)

Unable to succeed; contemplating an alternative approach: K2P Merlin firmware. Failing to locate the Merlin firmware; however, the Padavan also offers an IPTV option, which seems to be the most suitable choice currently.

Installing Hiboy's readily available 192.168.123.1 (admin: admin) Padavan firmware proved successful for IPTV testing, leveraging an expandable UPnP proxy (xUPNPd) with a web port at 8888. Successful click-through on the UI allows VLC playback.

Manually testing via: [http://192.168.1.2:8888/rtp/239.3.1.1:8000](http://192.168.1.2:8888/rtp/239.3.1.1:8000) was unsuccessful, suggesting that xUPNPd is limited to connecting with rtp only.

Activation of udpxy -p 8012 was successful: [http://192.168.1.2:8012/status](http://192.168.1.2:8012/status), pinpointing the objective as: [http://192.168.1.2:8012/rtp/239.3.1.1:8000](http://192.168.1.2:8012/rtp/239.3.1.1:8000). A reevaluation is in order; it should be udp: [http://192.168.1.2:8012/udp/239.3.1.1:8000](http://192.168.1.2:8012/udp/239.3.1.1:8000). The version discrepancy with my Padavan's udpxy version: udpxy v. 1.0 (Build 25) standard - [Thu Jan 1 00:27:29 2015].

Backend errors surfaced:
- set_multicast: setsockopt MCAST option: ADD: No such device
- 00:32:36.828673 CST c(32731) Sent HTTP response code=[500], reason=[Service error] to socket=[8]
- HTTP/1.1 500 Service error

Attempt to upgrade udpxy to the latest version in hopes for fortune. Hiboy's Padavan firmware appears rather neglectful:
1. The udpxy has remained so outdated
2. A discordance between the UI and application of settings - failure to launch udpxy on UI :(

Suggesting a transition to Padavan firmware:
- Option #2 or manual upgrade of udpxy, controlled via commands (similar approach)
- Option #1: Leveraging firmware - K2P nano hanwckf-5.0_Latest2020

Openwrt Lede Multicast Network Setup Android TV Software IPTV
This video, specific to certain scenarios, must be regarded as a loose reference for the general process and key knowledge points, although revisiting it increasingly confounds.

Previewing Live TV on Emby

Open for testing
Username: user Password: user

Other Client Players

  • For Android TVs and mobile phones: Use DIYP Video or Youwo.
  • For PC computers: Blackbird player is recommended.
  • For iPad: Cloud Stream IPTV Player
  • For Mac: VLC