-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
compose.yml文件如下:
services:
rtsproxy:
image: plsy1/rtsproxy:latest
container_name: rtsproxy
ports:
- 8554:8554
restart: unless-stopped
network_mode: host # 必须使用 host 网络模式以支持 NAT 穿透
volumes:
- /volume1/docker/rtsproxy/config:/app/config # 挂载配置文件目录
- /volume1/docker/rtsproxy/logs:/app/logs # 挂载日志目录
environment:
- TZ=Asia/Shanghai # 设置时区
command:
- "--enable-nat"
- "--set-json-path"
- "/app/config/iptv.json"
- "--daemon"
json文件:
{
"replace_templates": [
{
"action": "remove",
"match": "/{number}_Uni.sdp",
"description": "删除冗余字段"
},
{
"action": "replace",
"match": "/iptv/import",
"replacement": "/iptv",
"description": "替换 /iptv/import 为 /iptv"
},
{
"action": "replace",
"match": "tvdr={number}-{number}",
"replacement": "tvdr=${(b){number}|GMT}GMT-${(e){number}|GMT}GMT",
"description": "补全回看地址"
},
{
"action": "timeshift",
"match": "tvdr=${(b){number}|GMT}GMT-${(e){number}|GMT}GMT",
"shift_hours": -8,
"description": "将时间区间前移8小时"
}
]
}
Ku9需要的回放格式:
#EXTINF:-1 tvg-name="CCTV1" group-title="央视频道" tvg-logo="https://raw.githubusercontent.com/plsy1/iptv/main/logo/CCTV1.png" catchup="default" catchup-source="rtsp://112.245.125.38:1554/iptv/Tvod/iptv/001/001/ch12122514263996485740.rsc?tvdr=${(b)yyyyMMddHHmmss|GMT}GMT-${(e)yyyyMMddHHmmss|GMT}GMT", CCTV1
rtsp://112.245.125.42:1554/iptv/import/Tvod/iptv/001/001/ch12122514263996485740.rsc
docker拉取后不能启动,是哪里参数不对么?
如果能正常运行的话m3u文件是:
#EXTINF:-1 tvg-name="CCTV1" group-title="央视频道" tvg-logo="https://raw.githubusercontent.com/plsy1/iptv/main/logo/CCTV1.png" catchup="default" catchup-source="rtsp://112.245.125.38:1554/iptv/Tvod/iptv/001/001/ch12122514263996485740.rsc?tvdr={utc:YmdHMS}GMT-{utcend:YmdHMS}GMT", CCTV1
http://192.168.1.211:8554/tv/rtsp/112.245.125.42:1554/iptv/import/Tvod/iptv/001/001/ch12122514263996485740.rsc/69958_Uni.sdp
还是有其他方法?
回放格式已经验证过了,可以回看!
Metadata
Metadata
Assignees
Labels
No labels