叁·分

不求甚解

用户工具

站点工具


tech-notes:bj-unicom-iptv

EMBY 上观看运营商 IPTV

在 EMBY 上观看观看运营商 IPTV。

基本情况

网络

运营商光猫后接 Openwrt路由器;

  • 宽带拨号方式:运营商光猫上 PPPoE 拨号为桥接1),由Openwrt路由器负责宽带拨号。
  • Openwrt2)路由器网路配置:开启了VLAN,VLAN ID 0分配给lan(eth0.1),ID 1分配给了wan(eth1.2)。

EMBY

配置路由器

安装软件包

opkg update
opkg install omcproxy
opkg install udpxy
opkg install luci-app-udpxy

配置网络接口和路由

在【网络-接口】中新建一个新接口「IPTV」

  • 配置「IPTV」接口的网关跃点(20)与防火墙设置(接入到wan)
  • 配置「WAN」接口的网关跃点为 10
  • 打开「LAN」接口的 IGMP 嗅探

配置参考如下:

config interface 'IPTV'         
        option proto 'dhcp'
        option metric '20'
        option ifname 'eth1.2'

config interface 'wan'                 
        ...       
        option metric '10' 
        
config interface 'lan'
        ...
        option igmp_snooping '1'

在【网络-防火墙-通信规则】中新建一个规则,允许 源为 wan 目标为 device (input) 的流量

config zone
        option name 'wan'
        ...
        option network '... IPTV'

config rule                   
        option name 'Allow-Udpxy'
        option src 'wan'                   
        list dest_ip '224.0.0.0/4'   
        option target 'ACCEPT'

配置路由规则,否则udpxy无法正常启动。可以在 计划任务中 设置,也可以在【网络-静态路由】中设置

/sbin/ip route add multicast 224.0.0.0/4 dev eth1.2 > /dev/null

配置并启动 udpxy 服务。

访问 http://[网关地址]:4022/status 验证 udpxy 是否启动成功,如下图:

以上都设置好了后,将之前的 rtp://239.3.1.241:8000 改为 http://[网关地址]:4022/rtp/239.3.1.241:8000 看看是否能用VLC播放,能播放就说明路由器配置完成。

m3u 可以在网上找现成的「IPTV播放列表」

配置 xteve

xteve docker 镜像来自 https://github.com/dnsforge-repo/xteve

xteve 容器内监听端口通过环境变量3)设置为 34444,docker port 代理映射到本地相同端口,即 34444。该端口将用于后续的 xteve 配置和 EMBY 配置。如修改,需要适应性调整。

访问 xteve 网页端 https://[xteve运行服务器地址]:34444/web/ ,依次配置 Playlist、Filter、XMLTV、Mapping 如下:

配置 EMBY

参照如下图配置 EMBY

1)
可尝试致电运营商修改
2)
ver18
3)
设置容器环境变量XTEVE_PORT
tech-notes/bj-unicom-iptv.txt · 最后更改: 2024/04/26 07:39 由 Librarian