rtp2httpd icon indicating copy to clipboard operation
rtp2httpd copied to clipboard

Huawei FCC timeout on Shaoxing Telecom IPTV (real STB works, rtp2httpd falls back to multicast)

Open pageqs115 opened this issue 8 months ago • 6 comments

Environment

  • ISP/Region: China Telecom IPTV, Shaoxing, Zhejiang, China
  • Router OS: iStoreOS / OpenWrt
  • IPTV interface: eth1.43
  • rtp2httpd version: 3.10.1
  • Installation: upgraded from OpenWrt/iStoreOS package to latest release

What works

  • Multicast to HTTP works normally
  • All IPTV channels can be watched in LAN through rtp2httpd
  • Only FCC fast channel switching does not work

FCC test URL

  • http://192.168.100.1:4022/rtp/233.50.201.156:5140?fcc=115.233.42.69:8027&fcc-type=huawei&r2h-ifname-fcc=eth1.43

Configuration

  • upstream-interface-multicast = eth1.43
  • upstream-interface-fcc = eth1.43

rtp2httpd log

  • FCC: Using Huawei FCC protocol
  • FCC: Server response timeout (80 ms), falling back to multicast
  • Multicast: Successfully joined group

Important evidence from real STB capture

  • The FCC server address is confirmed from the IPTV portal/channel metadata:
    • ChannelFCCIP = 115.233.42.69
    • ChannelFCCPort = 8027
  • The real STB does send FCC request packets to 115.233.42.69:8027
  • These packets are UDP binary packets, not RTSP
  • The FCC server does respond to the real STB
  • In the capture, the server returns a unicast stream endpoint, for example:
    • 115.233.42.110:3600

What I already tried

  • Correct IPTV interface binding
  • fcc-type=huawei
  • Explicit r2h-ifname-fcc=eth1.43
  • Upgrading rtp2httpd from 3.7.0 to 3.10.1

Conclusion

  • The FCC server is reachable and working in this region
  • rtp2httpd enters Huawei FCC mode correctly
  • But the FCC request generated by rtp2httpd seems not compatible with this Shaoxing Telecom implementation / STB variant
  • It looks like the real STB request contains some fields that rtp2httpd does not reproduce correctly

If needed, I can provide

  • Sanitized packet hex of the real FCC request/response
  • Sanitized channel metadata showing ChannelFCCIP / ChannelFCCPort
  • Full rtp2httpd logs for the failed FCC attempt
  • I can help test patched builds if needed.

pageqs115 avatar Mar 07 '26 18:03 pageqs115

Does eth1.43 get a valid IP address from upstream DHCP?

stackia avatar Mar 07 '26 18:03 stackia

Yes.

eth1.43 gets a valid IPv4 address from upstream DHCP. Current address on that interface is 10.107.54.12/20.

Multicast also works normally through this interface, so IPTV upstream connectivity is present.

I am also attaching a screenshot of the interface status page showing the DHCP-assigned IPv4 address on eth1.43.

Image

pageqs115 avatar Mar 07 '26 18:03 pageqs115

could you try setting static route rules for FCC IPs following https://github.com/stackia/rtp2httpd/issues/234#issuecomment-3699206045

stackia avatar Mar 07 '26 18:03 stackia

经过大佬的指导,已经成功开启fcc,非常感谢

pageqs115 avatar Mar 08 '26 06:03 pageqs115

Image

pageqs115 avatar Mar 08 '26 06:03 pageqs115

标题:江苏电信烽火平台:真实机顶盒 FCC 成功,但 rtp2httpd 3.17.0 Telecom/FiberHome 模式超时

你好,补充一个与本 Issue 类似、但来自江苏电信烽火平台的 FCC 兼容性案例。

环境:

  • OpenWrt 路由器,IPTV VLAN 已验证正常
  • rtp2httpd 3.17.0
  • 组播转 HTTP 正常,客户端可稳定播放
  • FCC 地址来自机顶盒真实抓包,端口为 15970
  • 已配置 upstream_interface_fcc
  • 已配置 fcc_listen_port_range
  • IPTV DHCP 临时地址、到 FCC 控制端的专用路由、防火墙本机 UDP 放行均已验证

现象:

  • rtp2httpd 使用默认 telecom / Telecom-ZTE-FiberHome FCC 模式时,日志为: FCC: Server response timeout (80 ms), falling back to multicast
  • 去掉 FCC 参数后,同一组播频道正常播放。
  • 真实烽火机顶盒在相同频道切台时可正常快速起播。

真实机顶盒抓包的脱敏结论:

  1. 每次切台均发送 76 字节复合 RTCP 控制请求。
  2. 请求中包含私有 FMT16 段。
  3. FCC 控制端每次都会返回 32 字节 FMT16 回复。
  4. 每次回复后约 1 秒内均出现大量单播突发媒体包,证明本地运营商 FCC 服务本身可用。
  5. 共验证 4 次切台,均为“请求 -> FMT16 回复 -> 单播突发媒体”。

因此推测:本地烽火平台使用的 FMT16 私有请求/会话字段,与 rtp2httpd 当前 Telecom/FiberHome 实现发送的通用 FCC 请求不兼容。

请问项目是否已经有 FMT16 或江苏电信烽火平台的兼容实现/开发分支?如需要,我可以继续提供脱敏后的:

  • 请求与回复长度、报文类型及字段差异;
  • 一次完整请求到单播突发的时间关系;
  • rtp2httpd 的 debug 日志;
  • 不含 MAC、账号、鉴权、IP 地址与节目 URL 的抓包摘要。

感谢!

wudizyl avatar Sep 12 '26 08:09 wudizyl