rtp2httpd icon indicating copy to clipboard operation
rtp2httpd copied to clipboard

最新版回看参数占位符不自动替换为节目表时间

Open Primovist opened this issue 9 months ago • 11 comments

log信息为:

22:02:28 INFO [Worker 0] New client 192.168.1.3:57853 requested URL: /http/202.111.57.7:6410/00000002/01000000000000000000000209123271/index.m3u8?Playtype=1&Playseek=$%7Butc:yyyyMMddHHmmss%7D- (method: GET)

Primovist avatar Feb 20 '26 14:02 Primovist

什么客户端,这应该是客户端问题吧

stackia avatar Feb 20 '26 14:02 stackia

什么客户端,这应该是客户端问题吧

节目表是在配置文件内的,播放器是程序自带的/player。

Primovist avatar Feb 20 '26 14:02 Primovist

网页播放器目前还不支持这种 HLS 源

stackia avatar Feb 20 '26 14:02 stackia

网页播放器目前还不支持这种 HLS 源

http://a.c.b.d:8089/d/d/f/lookback/cctv-1/20251226060000/20251226070000/1.m3u8,这类也算是HLS源吧,怪不得我播不出来。

ninggu2008 avatar Feb 20 '26 15:02 ninggu2008

网页播放器目前还不支持这种 HLS 源

好的。谢谢

Primovist avatar Feb 20 '26 20:02 Primovist

使用外部播放器,似乎也没有被正确替换,是哪里姿势不对么? 10:36:47 INFO [Worker 0] New client 192.168.50.4:62403 requested URL: /%E5%A4%AE%E8%A7%86/CCTV1/catchup?playseek=1771844400-1771846200 (method: GET) 10:36:47 INFO [Worker 0] Service matched: 央视/CCTV1/catchup 10:36:47 ERROR [Worker 0] Configured RTP service has no URL 10:36:47 DEBUG [Worker 0] HTTP Proxy: Parsed URL - host=222.68.211.94, port=8006, path=/SHDXFH_live/00000001000000050000000000111128/index.m3u8?AuthInfo=xxx&playseek={(b)timestamp}-{(e)timestamp} 10:36:47 DEBUG [Worker 0] HTTP Proxy: Connection to 222.68.211.94:8006 in progress (async) 10:36:47 DEBUG [Worker 0] HTTP Proxy: Socket registered with epoll for connection 10:36:47 DEBUG [Worker 0] HTTP Proxy: Async connection initiated 10:36:47 INFO [Worker 0] HTTP Proxy: Connected to 222.68.211.94:8006 10:36:47 DEBUG [Worker 0] HTTP Proxy: Built request headers (377 bytes, body 0 bytes) for 222.68.211.94:8006/SHDXFH_live/00000001000000050000000000111128/index.m3u8?AuthInfo=xxx&playseek={(b)timestamp}-{(e)timestamp}

lsx2k9 avatar Feb 24 '26 02:02 lsx2k9

参数替换属于播放器的工作,你用外部播放器那和rtp2httpd就没什么关系了

stackia avatar Feb 24 '26 05:02 stackia

这么说吧,3.9版起会改写catchup-source地址。 原始m3u中回看地址是:#EXTINF:-1 tvg-id="102" tvg-name="CCTV-1" group-title="央视" catchup="default" catchup-days="7" catchup-source="http://222.68.211.94:8006/SHDXFH_live/00000001000000050000000000111128/index.m3u8?AuthInfo=xxx&playseek={(b)timestamp}-{(e)timestamp}",CCTV1 经rtp2httpd改写生成的新playlist.m3u中地址为:#EXTINF:-1 tvg-id="102" tvg-name="CCTV-1" group-title="央视" catchup="default" catchup-days="7" catchup-source="http://ip:5140/%E5%A4%AE%E8%A7%86/CCTV1/catchup?playseek={(b)timestamp}-{(e)timestamp}",CCTV1

播放器在访问该转换后的回看地址"http://ip:5140/%E5%A4%AE%E8%A7%86/CCTV1/catchup?playseek={(b)timestamp}-{(e)timestamp}"时,进行了正确的参数替换,如日志中显示【10:36:47 INFO [Worker 0] New client 192.168.50.4:62403 requested URL: /%E5%A4%AE%E8%A7%86/CCTV1/catchup?playseek=1771844400-1771846200 (method: GET)】 但rtp2httpd实际访问的地址似乎不对【10:36:47 DEBUG [Worker 0] HTTP Proxy: Parsed URL - host=222.68.211.94, port=8006, path=/SHDXFH_live/00000001000000050000000000111128/index.m3u8?AuthInfo=xxx&playseek={(b)timestamp}-{(e)timestamp}】

还是说我对该功能的理解有误,原始的m3u该怎么写才是对的?

lsx2k9 avatar Feb 24 '26 06:02 lsx2k9

或者在生成playlist.m3u就不要完全改写catchup-source了,只替换http://的部分为http://ip:5140/http/...,后面原样保留。 这样是没问题的。

lsx2k9 avatar Feb 24 '26 06:02 lsx2k9

https://github.com/stackia/rtp2httpd/releases/tag/v3.10.1 尝试 v3.10.1,应该修复了。网页播放器也支持 HLS 了

stackia avatar Feb 24 '26 11:02 stackia

https://github.com/stackia/rtp2httpd/releases/tag/v3.10.1 尝试 v3.10.1,应该修复了。网页播放器也支持 HLS 了

感谢!

Primovist avatar Feb 24 '26 13:02 Primovist