rtp2httpd icon indicating copy to clipboard operation
rtp2httpd copied to clipboard

BUG反馈,3.3.1 OpenWrt 重启无法启动,还是拉取m3u问题

Open softtip opened this issue 1 year ago • 6 comments

root@OpenWrt:~# reboot root@OpenWrt:~# login as: root [email protected]'s password:

BusyBox v1.36.1 (2025-10-15 03:19:56 UTC) built-in shell (ash)

 _________
/        /\      _    ___ ___  ___

/ LE / \ | | | | | | / DE / \ | || _|| |) | _| /_/ LE \ |||/|| \ \ DE / \ LE \ / ------------------------------------------- \ DE \ / OpenWrt 24.10.3, r7634-aadec2c75 ________/ -------------------------------------------

root@OpenWrt:~# ps|grep rtp2 24268 root 1192 S grep rtp2 root@OpenWrt:~# logread|grep rtp2 Tue Nov 18 23:38:56 2025 daemon.err rtp2httpd[5019]: [Worker 0] Async HTTP fetch failed (exit code 6): https://xxxxx.com/yyyyyyyy.m3u Tue Nov 18 23:38:56 2025 daemon.err rtp2httpd[5019]: [Worker 0] Async external M3U fetch failed: https://xxxxx.com/yyyyyyyy.m3u, will retry in 2 seconds (retry 1/8) Tue Nov 18 23:38:57 2025 daemon.err rtp2httpd[5019]: [Worker 1] Async HTTP fetch failed (exit code 6): https://xxxxx.com/yyyyyyyy.m3u Tue Nov 18 23:38:57 2025 daemon.err rtp2httpd[5019]: [Worker 1] Async external M3U fetch failed: https://xxxxx.com/yyyyyyyy.m3u, will retry in 2 seconds (retry 1/8) Tue Nov 18 23:39:03 2025 daemon.err rtp2httpd[5019]: [Worker 2] Async HTTP fetch failed (exit code 28): https://xxxxx.com/yyyyyyyy.m3u Tue Nov 18 23:39:03 2025 daemon.err rtp2httpd[5019]: [Worker 2] Async external M3U fetch failed: https://xxxxx.com/yyyyyyyy.m3u, will retry in 2 seconds (retry 1/8) Tue Nov 18 23:39:05 2025 daemon.err rtp2httpd[5019]: [Worker 4] Async HTTP fetch failed (exit code 28): https://xxxxx.com/yyyyyyyy.m3u Tue Nov 18 23:39:05 2025 daemon.err rtp2httpd[5019]: [Worker 4] Async external M3U fetch failed: https://xxxxx.com/yyyyyyyy.m3u, will retry in 2 seconds (retry 1/8) Tue Nov 18 23:39:07 2025 daemon.err rtp2httpd[5019]: [Worker 2] Async HTTP fetch failed (exit code 56): https://xxxxx.com/yyyyyyyy.m3u Tue Nov 18 23:39:07 2025 daemon.err rtp2httpd[5019]: [Worker 2] Async external M3U fetch failed: https://xxxxx.com/yyyyyyyy.m3u, will retry in 4 seconds (retry 2/8) Tue Nov 18 23:39:07 2025 daemon.err rtp2httpd[5019]: [Worker 5] Async HTTP fetch failed (exit code 28): https://xxxxx.com/yyyyyyyy.m3u Tue Nov 18 23:39:07 2025 daemon.err rtp2httpd[5019]: [Worker 5] Async external M3U fetch failed: https://xxxxx.com/yyyyyyyy.m3u, will retry in 2 seconds (retry 1/8) Tue Nov 18 23:39:12 2025 daemon.notice procd: /etc/rc.d/S95done: rtp2httpd: unrecognized option: d Tue Nov 18 23:39:12 2025 daemon.notice procd: /etc/rc.d/S95done: rtp2httpd - Multicast RTP to Unicast HTTP stream convertor Tue Nov 18 23:39:12 2025 daemon.notice procd: /etc/rc.d/S95done: Usage: rtp2httpd [options] Tue Nov 18 23:39:12 2025 daemon.notice procd: /etc/rc.d/S95done: default /etc/rtp2httpd.conf root@OpenWrt:~# rtp2httpd --help rtp2httpd - Multicast RTP to Unicast HTTP stream convertor

Version 3.3.1 Copyright 2008-2025 Ondrej Caletka [email protected]

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Usage: rtp2httpd [options]

Options: -h --help Show this help -v --verbose Increase verbosity (0=FATAL, 1=ERROR, 2=WARN, 3=INFO, 4=DEBUG) -q --quiet Report only fatal errors -U --noudpxy Disable UDPxy compatibility -m --maxclients Serve max n requests simultaneously (default 5) -w --workers Number of worker processes with SO_REUSEPORT (default 1) -b --buffer-pool-max-size Maximum number of buffers in zero-copy pool (default 16384) -l --listen [addr:]port Address/port to bind (default ANY:5140) -c --config Read this file for configuration, instead of the default one -C --noconfig Do not read the default config -P --fcc-listen-port-range <start[-end]> Restrict FCC UDP listen sockets to specific ports -H --hostname Hostname to check in the Host: HTTP header (default none) -X --xff Enable X-Forwarded-For header recognize (default: off) -T --r2h-token Authentication token for HTTP requests (default none) -i --upstream-interface Default interface for all upstream traffic (lowest priority) -f --upstream-interface-fcc Interface for FCC unicast traffic (overrides -i) -t --upstream-interface-rtsp Interface for RTSP unicast traffic (overrides -i) -r --upstream-interface-multicast Interface for multicast traffic (overrides -i) -R --mcast-rejoin-interval Periodic multicast rejoin interval (0=disabled, default 0) -F --ffmpeg-path Path to ffmpeg executable (default: ffmpeg) -A --ffmpeg-args Additional ffmpeg arguments (default: -hwaccel none) -S --video-snapshot Enable video snapshot feature (default: off) -s --status-page-path HTTP path for status UI (default: /status) -p --player-page-path HTTP path for player UI (default: /player) -M --external-m3u External M3U playlist URL (file://, http://, https://) -I --external-m3u-update-interval Auto-update interval (default: 7200 = 2h, 0=disabled) -Z --zerocopy-on-send Enable zero-copy send with MSG_ZEROCOPY for better performance (default: off) default /etc/rtp2httpd.conf root@OpenWrt:~#

softtip avatar Nov 18 '25 15:11 softtip

新情况:rtp2httpd会自动结束进程,openwrt开机手动启动rtp2httpd,1天后发现rtp2httpd不能用,不知道什么时候结束的,日志里面没有相关信息

softtip avatar Nov 20 '25 12:11 softtip

me too 设备是arm 最近几个版本都是这样。

wzy80119-cell avatar Nov 20 '25 15:11 wzy80119-cell

我是X86 的openwrt

softtip avatar Nov 21 '25 03:11 softtip

开机启动后进程终止感觉还是获取外部网络地址的m3u时,PPPOE拨号没完成,没网络导致(3.3.2一样的)

root@OpenWrt:~# logread|grep rtp Thu Nov 20 20:25:53 2025 daemon.err rtp2httpd[5040]: [Worker 0] Async HTTP fetch failed (exit code 6): https://xxxxxxxx.com/yyyyy.m3u Thu Nov 20 20:25:53 2025 daemon.err rtp2httpd[5040]: [Worker 0] Async external M3U fetch failed: https://xxxxxxxx.com/yyyyy.m3u, will retry in 2 seconds (retry 1/8) Thu Nov 20 20:25:53 2025 daemon.err rtp2httpd[5040]: [Worker 1] Async HTTP fetch failed (exit code 6): https://xxxxxxxx.com/yyyyy.m3u Thu Nov 20 20:25:53 2025 daemon.err rtp2httpd[5040]: [Worker 1] Async external M3U fetch failed: https://xxxxxxxx.com/yyyyy.m3u, will retry in 2 seconds (retry 1/8) Thu Nov 20 20:25:54 2025 daemon.err rtp2httpd[5040]: [Worker 2] Async HTTP fetch failed (exit code 6): https://xxxxxxxx.com/yyyyy.m3u Thu Nov 20 20:25:54 2025 daemon.err rtp2httpd[5040]: [Worker 2] Async external M3U fetch failed: https://xxxxxxxx.com/yyyyy.m3u, will retry in 2 seconds (retry 1/8) Thu Nov 20 20:25:55 2025 daemon.err rtp2httpd[5040]: [Worker 3] Async HTTP fetch failed (exit code 6): https://xxxxxxxx.com/yyyyy.m3u Thu Nov 20 20:25:55 2025 daemon.err rtp2httpd[5040]: [Worker 3] Async external M3U fetch failed: https://xxxxxxxx.com/yyyyy.m3u, will retry in 2 seconds (retry 1/8) Thu Nov 20 20:26:23 2025 daemon.notice procd: /etc/rc.d/S95done: rtp2httpd: unrecognized option: d Thu Nov 20 20:26:23 2025 daemon.notice procd: /etc/rc.d/S95done: rtp2httpd - Multicast RTP to Unicast HTTP stream convertor Thu Nov 20 20:26:23 2025 daemon.notice procd: /etc/rc.d/S95done: Usage: rtp2httpd [options] Thu Nov 20 20:26:23 2025 daemon.notice procd: /etc/rc.d/S95done: default /etc/rtp2httpd.conf

至于运行后,1-2天内中途进程自动关闭,暂时没找到原因,猜测也可能是中途PPPOE重拨导致,暂无法确定

softtip avatar Nov 21 '25 03:11 softtip

v3.4.0 修复了下 openwrt 自动重启 选项无效问题,现在退出后应该能自动重启。

至于为什么开机启动时进程会退出,目前不确定原因,我这边也无法复现

stackia avatar Nov 21 '25 10:11 stackia

请尝试一下 https://github.com/stackia/rtp2httpd/releases/tag/v3.5.0-beta.0 是否对进程崩溃问题有改善

这个版本整体重构了进程的生命周期管理。在我自己测试中,应该是能实现长时间稳定运行,随开机启动也不会崩溃。

stackia avatar Nov 26 '25 08:11 stackia