rtp2httpd icon indicating copy to clipboard operation
rtp2httpd copied to clipboard

2.7.1版本组播播放一会发现会重启

Open sln162 opened this issue 1 year ago • 6 comments

更新到2.7.1之后我想测试下组播稳定性,发现播放个十几分钟或者几十分钟不等的时候,出现了服务重启的现象,期初以为是巧合,直到遇到了3次

1、下面日志是其中一次,这不是一开始的日志,是重启后的,之前的没有了,可以看到运行时间是新的。 2、有个特征,自动在我的播放链接加了playseek,我没有看回看啊,我的手机一直在播放湖南台的组播,难道是播放器加的? 3、内存并没有异常,网络也没发现异常,我在打游戏,手机在播放,中断的时候看到手机转圈了1-4秒。 4、别人是会断,我这好像是重启,日志从头开始。后续测试就又正常了,目前测试一个多小时了没出现问题了。

难道是之前的,长时间打开后台会遇到的访问不了的情况的延续,遇到那种情况自动重启了?

02:45:53
INFO
Status tracking initialized
02:45:53
INFO
Listening on 0.0.0.0 port 5140
02:45:53
INFO
Listening on :: port 5140
02:45:53
INFO
Server initialization complete, ready to accept connections
02:45:54
INFO
New client requested URL: /udp/239.253.244.82:8000?fcc=124.132.240.66:15970&playseek=20251018023000-20251018030000
02:45:55
WARN
FCC: Server response timeout (1 seconds), falling back to multicast
02:45:55
INFO
Multicast: Successfully joined group
02:45:56
INFO
New client requested URL: /udp/239.253.244.82:8000?fcc=124.132.240.66:15970&playseek=20251018023000-20251018030000
02:45:57
WARN
FCC: Server response timeout (1 seconds), falling back to multicast
02:45:57
INFO
Multicast: Successfully joined group
02:50:01
INFO
New client requested URL: /
02:50:01
INFO
New client requested URL: /sse

sln162 avatar Oct 17 '25 19:10 sln162

今早我也做了9小时两路4k播放测试,在我这里挺稳定的😂但我软路由配置比较好 (n305+16g),有时候测不出问题

如果是 docker 运行的话,用 docker logs 应该能查到重启前的日志

stackia avatar Oct 18 '25 04:10 stackia

今早我也做了9小时两路4k播放测试,在我这里挺稳定的😂但我软路由配置比较好 (n305+16g),有时候测不出问题

如果是 docker 运行的话,用 docker logs 应该能查到重启前的日志

营运商送的盒子放4K一点都不卡,抓包的看4K很卡。。感觉做不到盒子播放的体验,不知道硬件问题还是网络问题。。

Ainndy avatar Oct 18 '25 08:10 Ainndy

@stackia 遇到了异常重启的日志,下面是重启后的,和docker logs的日志

00:49:20
INFO
Status tracking initialized
00:49:20
INFO
Listening on 0.0.0.0 port 5140
00:49:20
INFO
Listening on :: port 5140
00:49:20
INFO
Server initialization complete, ready to accept connections
00:49:20
INFO
New client requested URL: /sse
00:49:20
INFO
New client requested URL: /udp/239.253.244.88:8000?fcc=124.132.240.66:15970
00:49:22
WARN
FCC: Server response timeout (1 seconds), falling back to multicast
00:49:22
INFO
Multicast: Successfully joined group
00:49:22
INFO
New client requested URL: /udp/239.253.244.88:8000?fcc=124.132.240.66:15970
00:49:24
WARN
FCC: Server response timeout (1 seconds), falling back to multicast
00:49:24
INFO
Multicast: Successfully joined group
FCC: Unicast stream started successfully
New client requested URL: /udp/239.253.244.78:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.229:5970 (redirect #1)
New client requested URL: /udp/239.253.244.90:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.229:5976 (redirect #1)
FCC: Server response timeout (1 seconds), falling back to multicast
Multicast: Successfully joined group
New client requested URL: /udp/239.253.244.82:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.230:5974 (redirect #1)
FCC: Unicast stream started successfully
FCC: Unicast stream timeout (1 seconds), falling back to multicast
Multicast: Successfully joined group
New client requested URL: /udp/239.253.244.82:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.230:5972 (redirect #1)
FCC: Unicast stream started successfully
FCC: Unicast stream timeout (1 seconds), falling back to multicast
Multicast: Successfully joined group
New client requested URL: /udp/239.253.244.82:8000?fcc=124.132.240.66:15970
FCC: Server response timeout (1 seconds), falling back to multicast
Multicast: join failed: No such device
Cannot join mcast group
Status tracking initialized
Listening on 0.0.0.0 port 5140
Listening on :: port 5140
Server initialization complete, ready to accept connections
New client requested URL: /sse
New client requested URL: /udp/239.253.244.82:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.229:5972 (redirect #1)
FCC: Unicast stream started successfully
New client requested URL: /udp/239.253.244.82:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.229:5970 (redirect #1)
FCC: Unicast stream started successfully
New client requested URL: /udp/239.253.244.84:8000?fcc=124.132.240.66:15970
FCC: Server response timeout (1 seconds), falling back to multicast
Multicast: Successfully joined group
New client requested URL: /udp/239.253.244.83:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.229:5974 (redirect #1)
New client requested URL: /udp/239.253.244.86:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.230:5976 (redirect #1)
FCC: Unicast stream started successfully
New client requested URL: /udp/239.253.244.83:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.230:5976 (redirect #1)
FCC: Unicast stream timeout (1 seconds), falling back to multicast
Multicast: Successfully joined group
New client requested URL: /udp/239.253.244.86:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.230:5972 (redirect #1)
FCC: Unicast stream started successfully
New client requested URL: /udp/239.253.244.85:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.230:5970 (redirect #1)
FCC: Unicast stream timeout (1 seconds), falling back to multicast
Multicast: Successfully joined group
New client requested URL: /udp/239.253.244.78:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.230:5970 (redirect #1)
FCC: Unicast stream timeout (1 seconds), falling back to multicast
Multicast: Successfully joined group
New client requested URL: /udp/239.253.244.90:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.229:5970 (redirect #1)
FCC: Server response timeout (1 seconds), falling back to multicast
Multicast: Successfully joined group
New client requested URL: /udp/239.253.244.91:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.229:5974 (redirect #1)
FCC: Unicast stream started successfully
New client requested URL: /udp/239.253.244.105:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.229:5974 (redirect #1)
FCC: Unicast stream timeout (1 seconds), falling back to multicast
Multicast: Successfully joined group
New client requested URL: /udp/239.253.244.87:8000?fcc=124.132.240.66:15970
FCC: Server requests redirection to new server 60.211.165.229:5976 (redirect #1)
FCC: Unicast stream started successfully
FCC: Unable to send termination packet (cleanup): No such device
New client requested URL: /udp/239.253.244.88:8000?fcc=124.132.240.66:15970
Failed to bind to upstream interface eth0.2069: No such device
FCC: Server response timeout (1 seconds), falling back to multicast
Multicast: join failed: No such device
Cannot join mcast group
Status tracking initialized
Listening on 0.0.0.0 port 5140
Listening on :: port 5140
Server initialization complete, ready to accept connections
New client requested URL: /sse
New client requested URL: /udp/239.253.244.88:8000?fcc=124.132.240.66:15970
FCC: Server response timeout (1 seconds), falling back to multicast
Multicast: Successfully joined group
New client requested URL: /udp/239.253.244.88:8000?fcc=124.132.240.66:15970
FCC: Server response timeout (1 seconds), falling back to multicast
Multicast: Successfully joined group
/data # 

已是2.7.2版本

sln162 avatar Oct 18 '25 17:10 sln162

Failed to bind to upstream interface eth0.2069: No such device
FCC: Server response timeout (1 seconds), falling back to multicast
Multicast: join failed: No such device

说明 iptv 接口 down 了,可能的原因:网线松动、接触不良、网卡驱动崩溃等等。

我怀疑你 fcc 时好用时不好用,很可能就是这个原因,首先检查下网线质量,排除一下网线、接口松动原因。

因为是单线复用,有可能你网卡对 vlan 支持不佳导致不稳定。要是路由器有空闲接口,可以不要单线复用,而是从光猫 ITV 口拉一根线到空接口作为 IPTV 接口


目前 rtp2httpd 在遇到上面这个情况会直接崩溃,我可以改善一下让它不崩

stackia avatar Oct 18 '25 17:10 stackia

我怀疑你 fcc 时好用时不好用,很可能就是这个原因,首先检查下网线质量,排除一下网线、接口松动原因。

fcc跟这个没关系,这个不频繁遇到,fcc那是随时测随时发现问题啊,频率太高了。 我发现跟我打游戏有关系,可能负载高导致,白天不打游戏好像没事。网线没啥问题。

因为是单线复用,有可能你网卡对 vlan 支持不佳导致不稳定。要是路由器有空闲接口,可以不要单线复用,而是从光猫 ITV 口拉一根线到空接口作为 IPTV 接口

嗯,有时间我试试不单线复用的效果,但我估计只会解决down的问题,fcc可能没戏...

目前 rtp2httpd 在遇到上面这个情况会直接崩溃,我可以改善一下让它不崩

嗯,我还以为是自我恢复机制,可以优化下,辛苦了

sln162 avatar Oct 18 '25 17:10 sln162

@stackia 我知道咋回事了,我之前写的脚本,凌晨发现ping不通网关就重启下iptv接口,是我的脚本触发导致的(我优化下波动情况的处理),可以关闭问题了,我的原因,抱歉。

sln162 avatar Oct 18 '25 18:10 sln162