rtp2httpd icon indicating copy to clipboard operation
rtp2httpd copied to clipboard

播放组播大概每30多秒就断开一次

Open gexiaopeng opened this issue 1 year ago • 10 comments

版本:rtp2httpd-2.6.2-x86_64 ;buffer-pool-max-size = 163840 系统:centos8.5 播放器 potplayer ,vlc ,或者curl 播放 udp或者rtp ,码率大概8M,基本上30-40秒就断开一次,日志:

13:52:44[INFO]Multicast: Successfully joined group 13:53:19[ERROR]Multicast: No data received for 1 seconds, closing connection

gexiaopeng avatar Oct 15 '25 06:10 gexiaopeng

尝试配置 mcast-rejoin-interval (组播周期性重新加入间隔) 参数,设置为 30

stackia avatar Oct 15 '25 06:10 stackia

mcast-rejoin-interval

我设置的是 ;mcast-rejoin-interval = 120

gexiaopeng avatar Oct 15 '25 06:10 gexiaopeng

因为你是每30-40秒就组播断流,所以需要设置更小的值。记得去掉开头的分号

stackia avatar Oct 15 '25 06:10 stackia

因为你是每30-40秒就组播断流,所以需要设置更小的值。记得去掉开头的分号

开头的分号表示注释吗?

gexiaopeng avatar Oct 15 '25 06:10 gexiaopeng

是的。分号是注释,相当于没有设置

stackia avatar Oct 15 '25 06:10 stackia

是的。分号是注释,相当于没有设置

但 ;hostname = 好像有作用。

gexiaopeng avatar Oct 15 '25 07:10 gexiaopeng

尝试配置 mcast-rejoin-interval (组播周期性重新加入间隔) 参数,设置为 30

我设置为30以后,断开的时间长了,但间隔一段时间也会断:

14:56:52[INFO]New client requested URL: /udp/233.50.201.118:5140 14:56:52[INFO]Multicast: Successfully joined group 14:59:17[ERROR]Multicast: No data received for 1 seconds, closing connection 14:59:20[INFO]New client requested URL: /udp/233.50.201.118:5140 14:59:20[INFO]Multicast: Successfully joined group 15:01:49[ERROR]Multicast: No data received for 1 seconds, closing connection 15:01:52[INFO]New client requested URL: /udp/233.50.201.118:5140 15:01:52[INFO]Multicast: Successfully joined group 15:03:18[ERROR]Multicast: No data received for 1 seconds, closing connection

gexiaopeng avatar Oct 15 '25 07:10 gexiaopeng

看来需要设置为更短,比如10试试

stackia avatar Oct 15 '25 07:10 stackia

看来需要设置为更短,比如10试试

我设置为10,目前持续了10多分钟还是正常,另外请问,我没有在url后面加?fcc=参数,但监控状态显示 FCC MULTICAST ACTIVE,这个是什么意思?

Image

gexiaopeng avatar Oct 15 '25 07:10 gexiaopeng

是正常的,不管加不加 FCC,进入组播状态后现在都显示 FCC MULTICAST ACTIVE

stackia avatar Oct 15 '25 07:10 stackia