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

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.
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
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.)
Unicom’s multicast list address (e.g., Beijing Unicom):
https://bjiptv.gq/IPTV-Unicom-Multicast.m3u
- This assumes the broadband modem’s Lan4 port is broadcasting separate multicast data.
https://bjiptv.gq/IPTV-Unicom.m3u
(For local use)
- 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.
Mobile’s multicast list address (e.g., Beijing Mobile):
https://bjiptv.gq/IPTV-Mobile-Multicast.m3u
- This assumes the broadband modem’s Lan4 port is broadcasting separate multicast data.
https://bjiptv.gq/IPTV-Mobile.m3u
(For local use)
- 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.
Multicast addresses for other regions:
- 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.
- Method two: Packet capturing
- For instance, using tcpdump on openwrt.
- 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.
- 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:
- Identify the IPTV port on the broadband modem. Depending on the modem, there are two scenarios: dual cables and single cable setups.
- Configuration of the router (openwrt, Padavan, Merlin):
- Set up a virtual IPTV interface and firewall:
- 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).
- Address format: rtp://239.3.1.159:8000
- Configure the multicast to unicast udpxy:
- Enable the specified port and associate it with the previously created virtual IPTV interface.
- Address format: http://192.168.123.1:23234/rtp/239.3.1.159:8000
- Set up a virtual IPTV interface and firewall:
- Edit the m3u media address source file:
- If intentionally set to a local address, the m3u file provided above can be directly downloaded and used.
- Some clients use the txt file format (e.g., DIYP), with the principles/format being largely similar.
- Client playback:
- 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
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
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.
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:
- 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).
- 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.
- 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 | 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) |
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