rtp2httpd icon indicating copy to clipboard operation
rtp2httpd copied to clipboard

3.20-3.21会莫名退出。

Open yulinsoft opened this issue 1 year ago • 8 comments

这两个版本会莫名退出,不知道是什么原因,用3.19时没发现这个问题。 系统日志如下: Tue Nov 11 15:02:54 2025 authpriv.notice dropbear[4374]: Password auth succeeded for 'root' from 192.168.6.10:1936 Tue Nov 11 16:35:22 2025 authpriv.info dropbear[4374]: Exit (root) from <192.168.6.10:1936>: Exited normally Tue Nov 11 19:04:51 2025 kern.info kernel: [ 5237.914311] do_page_fault(): sending SIGSEGV to rtp2httpd for invalid read access from 77b369c4 Tue Nov 11 19:04:51 2025 kern.info kernel: [ 5237.931759] epc = 00402d15 in rtp2httpd[400000+45000] Tue Nov 11 19:04:51 2025 kern.info kernel: [ 5237.941892] ra = 0040d6cf in rtp2httpd[400000+45000] Tue Nov 11 19:04:53 2025 daemon.err rtp2httpd[4638]: sh: write error: Broken pipe Wed Nov 12 02:30:10 2025 daemon.info avahi-daemon[1891]: Registering new address record for fe80::5636:9bff:fe1d:6439 on br-lan.*.

系统如下: [ 0.000000] Linux version 5.15.167 ([email protected]) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r28061-399f9a1db3) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Fri Sep 27 07:23:35 2024 [ 0.000000] Board has DDR2 [ 0.000000] Analog PMU set to hw control [ 0.000000] Digital PMU set to hw control [ 0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6 [ 0.000000] printk: bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc) [ 0.000000] MIPS: machine is Youku YK-L1 [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480 [ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2 [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 0.000000] Writing ErrCtl register=0000b600 [ 0.000000] Readback ErrCtl register=0000b600 [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 120408K/131072K available (5963K kernel code, 614K rwdata, 1272K rodata, 1232K init, 225K bss, 10664K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS: 256 [ 0.000000] CPU Clock: 580MHz [ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns [ 0.000000] systick: enable autosleep mode [ 0.000000] systick: running - mult: 214748, shift: 32 [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns [ 0.000002] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns [ 0.015583] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)

yulinsoft avatar Nov 12 '25 03:11 yulinsoft

可以贴一下 rtp2httpd 的配置吗?

3.2.0 是有已知的问题,在更新m3u时会崩溃,在3.2.1做了修复

stackia avatar Nov 12 '25 03:11 stackia

可以贴一下 rtp2httpd 的配置吗?

3.2.0 是有已知的问题,在更新m3u时会崩溃,在3.2.1做了修复

我这里3.2.1确实也挂了,表现和3.2.0不一样,这回进程还在,kill不掉,kill -9干掉的,不太确定是rtp2httpd的问题,因为我在折腾路由,负载很大。

Tue Nov 11 11:13:23 2025 kern.info kernel: [479085.445119] traps: rtp2httpd[2036] general protection fault ip:435518 sp:7ffe34640678 error:0 in rtp2httpd[35518,401000+40000]

主机名 OpenWrt 型号 VMware, Inc. VMware7,1 架构 Intel(R) Core(TM) i3-7100U CPU @ 2.40GHz x 1C 4T (2400.000MHz) 目标平台 x86/64 固件版本 OpenWrt 24.10.4 r28959-29397011cc / LuCI openwrt-24.10 branch 25.292.66247~75e41cb 内核版本 6.12.57 本地时间 2025-11-12 12:05:17 运行时间 6d 13h 56m 42s 平均负载 0.04, 0.28, 0.63 CPU 使用率 0%

我目前升级到最新beta了,继续观察。

yyysuo avatar Nov 12 '25 04:11 yyysuo

‘’‘ #RTP2HTTPD Config file

All blank lines and lines starting with # or ; are ignored

[global] #GLOBAL OPTIONS #These options can be overrided by command-line switches

#VERBOSITY: 0-quiet 1-error 2-warn 3-info 4-debug (default 1) verbosity = 1

#maximum paralell clients (default 5) maxclients = 5

UDPxy URL compatibility (default yes)

;udpxy = yes

Worker processes (default 1)

workers = 1

Hostname to check in the Host: HTTP header (default none)

#hostname = http://mydomain:5140

Authentication token for HTTP requests (default none)

When set, all HTTP requests must include r2h-token query parameter with matching value

r2h-token = 30174

Status page path (default: /status)

;status-page-path = /status

Player page path (default: /player)

;player-page-path = /player

Interface configuration for upstream media streams

Default interface for all upstream traffic (lowest priority, used when specific interface not set)

upstream-interface = eth0.2

Specific interfaces (override upstream-interface when set)

Interface for multicast (RTP/UDP) traffic

upstream-interface-multicast = eth0.2

Interface for FCC unicast traffic

upstream-interface-fcc = eth0.2

Interface for RTSP unicast traffic

;upstream-interface-rtsp = iptv

Priority: upstream-interface-{multicast,fcc,rtsp} > upstream-interface > routing table

External M3U Configuration

Fetch M3U playlist from a URL (file://, http://, https:// supported)

Note: HTTP/HTTPS fetching requires 'curl' command to be installed

external-m3u = http://192.168.10.1/hniptv.m3u

or use a local file

external-m3u = file:///www/r2h.m3u

external-m3u = file:///www/河南电信组播.m3u

External M3U update interval in seconds (default 86400 = 24 hours)

Set to 0 to disable automatic updates, or a positive value for custom interval

;external-m3u-update-interval = 86400

Multicast rejoin interval in seconds (default 0, disabled)

Set to a positive value (e.g., 150) to periodically rejoin multicast groups

This is a compatibility workaround for networks with:

- IGMP snooping switches that timeout without proper IGMP Query from router

- Misconfigured network equipment that drops multicast membership

Recommended value: 120-180 seconds (less than typical switch timeout of 260s)

Only enable if you experience multicast stream interruptions

;mcast-rejoin-interval = 0

Local UDP port range for FCC client sockets (format: start-end, default random ports)

;fcc-listen-port-range = 40000-40100

Maximum number of buffers in buffer pool (default 16384)

Each buffer is 1536 bytes, so 16384 buffers = 24MB memory

Increase this value to improve throughput for multi-client concurrency

buffer-pool-max-size = 24576

Enable zero-copy send with MSG_ZEROCOPY (default: no)

Set to 1, yes, true, or on to enable zero-copy for better performance

Zero-copy requires kernel 4.14+ with MSG_ZEROCOPY support

On supported devices, enabling this can improve throughput and reduce CPU usage

Not recommended when running behind reverse proxies like Nginx/Caddy/Lucky

zerocopy-on-send = yes

Enable video snapshot feature (default: no)

Set to 1, yes, true, or on to enable; otherwise 0 (disabled)

When enabled, allows clients to request video snapshots with snapshot=1 query parameter

;video-snapshot = no

FFmpeg executable path (default: ffmpeg, which uses system PATH)

Specify full path if ffmpeg is not in PATH or you want to use a specific version

;ffmpeg-path = /usr/bin/ffmpeg

Additional FFmpeg arguments (default: -hwaccel none)

These arguments are passed to ffmpeg when generating snapshots

Common options: -hwaccel none, -hwaccel auto, -hwaccel vaapi, -hwaccel qsv

;ffmpeg-args = -hwaccel none

[bind] #List of address and ports to bind to, eg. ;mybox.example.net 5140 ;mybox2.example.net 8000 ;2001::1 http-alt 192.168.6.3 5140 #Note that binding to port number < 1024 will #require root privelegies and therefore is #not recommended. (Dropping privilegies is #not implemeted at this moment)

#below is default - all addresses, port 5140 #* 5140

[services]

Instead of using external-m3u, you can also write M3U content directly below, starting with #EXTM3U header

Example:

;#EXTM3U x-tvg-url="https://example.com/epg.xml.gz" ;#EXTINF:-1 tvg-name="CCTV1" tvg-logo="https://example.com/logo/CCTV1.png" group-title="央视" catchup="default" catchup-source="rtsp://10.0.0.50:554/catchup?playseek={utc:YmdHMS}-{utcend:YmdHMS}",CCTV-1 ;rtp://239.253.64.120:5140 ;#EXTINF:-1 tvg-name="CCTV2" group-title="央视",CCTV-2 ;rtp://239.253.64.121:5140 ;#EXTINF:-1,广东卫视 ;rtp://239.194.10.15:1234 ’‘’

yulinsoft avatar Nov 12 '25 06:11 yulinsoft

起作用的列表是这个 external-m3u = file:///www/r2h.m3u

yulinsoft avatar Nov 12 '25 07:11 yulinsoft

这是另一台7621的路由器,也出现了日志,但是没死,还可以正常看。 Tue Nov 11 23:00:46 2025 kern.info kernel: [1056849.037059] do_page_fault(): sending SIGSEGV to rtp2httpd for invalid read access from 77ad6c74 Tue Nov 11 23:00:46 2025 kern.info kernel: [1056849.046026] epc = 00402d15 in rtp2httpd[400000+45000] Tue Nov 11 23:00:46 2025 kern.info kernel: [1056849.051337] ra = 0040d6cf in rtp2httpd[400000+45000] Tue Nov 11 23:00:47 2025 daemon.err rtp2httpd[687]: sh: write error: Broken pipe Wed Nov 12 03:00:51 2025 kern.info kernel: [1071253.684317] do_page_fault(): sending SIGSEGV to rtp2httpd for invalid read access from 77afbc74 Wed Nov 12 03:00:51 2025 kern.info kernel: [1071253.693284] epc = 00402d15 in rtp2httpd[400000+45000] Wed Nov 12 03:00:51 2025 kern.info kernel: [1071253.698586] ra = 0040d6cf in rtp2httpd[400000+45000] Wed Nov 12 03:00:52 2025 daemon.err rtp2httpd[7236]: sh: write error: Broken pipe Wed Nov 12 07:00:56 2025 kern.info kernel: [1085658.406769] do_page_fault(): sending SIGSEGV to rtp2httpd for invalid read access from 77b46c74 Wed Nov 12 07:00:56 2025 kern.info kernel: [1085658.415672] epc = 00402d15 in rtp2httpd[400000+45000] Wed Nov 12 07:00:56 2025 kern.info kernel: [1085658.421013] ra = 0040d6cf in rtp2httpd[400000+45000] Wed Nov 12 07:00:57 2025 daemon.err rtp2httpd[13925]: sh: write error: Broken pipe Wed Nov 12 11:01:01 2025 kern.info kernel: [1100063.072393] do_page_fault(): sending SIGSEGV to rtp2httpd for invalid read access from 77afcc74 Wed Nov 12 11:01:01 2025 kern.info kernel: [1100063.081352] epc = 00402d15 in rtp2httpd[400000+45000] Wed Nov 12 11:01:01 2025 kern.info kernel: [1100063.086608] ra = 0040d6cf in rtp2httpd[400000+45000] Wed Nov 12 11:01:02 2025 daemon.err rtp2httpd[20239]: sh: write error: Broken pipe Wed Nov 12 15:01:07 2025 kern.info kernel: [1114467.820185] do_page_fault(): sending SIGSEGV to rtp2httpd for invalid read access from 77b8dc74 Wed Nov 12 15:01:07 2025 kern.info kernel: [1114467.829145] epc = 00402d15 in rtp2httpd[400000+45000] Wed Nov 12 15:01:07 2025 kern.info kernel: [1114467.834418] ra = 0040d6cf in rtp2httpd[400000+45000] Wed Nov 12 15:01:08 2025 daemon.err rtp2httpd[26772]: sh: write error: Broken pipe

yulinsoft avatar Nov 12 '25 07:11 yulinsoft

3.2.2这个版本还是有问题,组播转单播不会生效,和之前的问题一样过一段时间自动失效,无法播放。

wzy80119-cell avatar Nov 12 '25 09:11 wzy80119-cell

@wzy80119-cell 你这个问题并没有收到其他人反馈,需要检查一下是不是自己网络、软件环境问题。周期性组播重加入选项尝试设置到30秒。

stackia avatar Nov 12 '25 09:11 stackia

v3.3.0 应该修复了,可以试试看

stackia avatar Nov 12 '25 17:11 stackia