跳到主要内容

群晖搭建容器 TPTV 和 ITV 都无法播放问题已解决/话题已结束讨论

  • 新帖
  • 热门
  • 精选

群晖搭建容器 TPTV 和 ITV 都无法播放 问题已解决/话题已结束讨论

q273432882 2y ago in 技术 · 0 views

pixman和pix-nginx都跑起来了了 使用ip端口可以订阅M3U文件 就是无法播放

docker用户自定义脚本

docker run -d --name=pixman -p 5051:5000 -e http_proxy=http://192.168.31.1:7890 -e https_proxy=http://192.168.31.1:7890 pixman/pixman

docker run -d --name=pixman-nginx -p 8008:8000 -p 9090:9000 -v /volume2/docker/pixman/nginx:/etc/nginx/conf.d --restart=always nginx

配置文件

1.docker-compose.yml

services:
  pixman:
    image: pixman/pixman:latest
    restart: always
    container_name: pixman
    environment:
      - http_proxy=http://192.168.31.1:7890
      - https_proxy=http://192.168.31.1:7890
      - MYTVSUPER_TOKEN=TOKEN
    ports:
      - 5051:5000
  pixman-nginx:
    image: nginx:latest
    restart: always
    container_name: pixman-nginx
    ports:
      - 8008:8000
      - 9090:9000
    volumes:
       - ./nginx:/etc/nginx/conf.d

2.itv.conf

server {
    # 需要映射 9000 端口
    listen 9090 default_server;

    location ~ ^/(?<cdn>ystenlive|bestlive|wasulive|fifalive|hnbblive)(?<path>.*) {
        resolver 233.5.5.5; # 可以更改为其他 dns 服务或者你自己的路由器

        set $target_url http://pixman.io.$cdn.dnsany.com$path$is_args$args;
        set $cdn_host cache.ott.$cdn.itv.cmvideo.cn;

        proxy_pass $target_url;
        proxy_set_header Host $cdn_host;
    }
}

3.tptv.conf

server {
    listen 8001 default_server;
    location / {
        set $ua 'okhttp/3';
        if ($arg_ua) {
            set $ua $arg_ua;
        }
        proxy_pass http://tptv1.mobaibox.com;
        proxy_set_header Host tptv1.mobaibox.com;
        proxy_set_header User-Agent $ua;
        proxy_connect_timeout 3;
    }
}

server {
    listen 8002 default_server;
    location / {
        set $ua 'okhttp/3';
        if ($arg_ua) {
            set $ua $arg_ua;
        }
        proxy_pass http://tptv2.mobaibox.com;
        proxy_set_header Host tptv2.mobaibox.com;
        proxy_set_header User-Agent $ua;
        proxy_connect_timeout 3;
    }
}

upstream cdn_server {
    server 127.0.0.1:8001 weight=1 max_fails=1 fail_timeout=60s;

    # tptv2.mobaibox.com 貌似被关闭,暂时注释掉
    # server 127.0.0.1:8002 weight=1 max_fails=1 fail_timeout=60s;
}

server {
    listen 8008 default_server;

    location / {
        proxy_next_upstream error timeout http_502 http_503 http_504;
        proxy_pass http://cdn_server;
    }
}

麻烦大佬看下哪里的问题。

  • 引用文章
在群晖 Synology 上运行 pixman 及 nginx 无需 IPV6,三网通看移动 iTV 直播源
coding #1 2024年06月22日

不需要这么麻烦了,直接运行命令 docker run -d --name=pixman -p 5051:5000 -e http_proxy=http://192.168.31.1:7890 -e https_proxy=http://192.168.31.1:7890 pixman/pixman,然后订阅 /tptv_proxy.m3u 和 /itv_proxy.m3u 就行。注意把之前的镜像和容器都删除

回复此楼 修改
coding #2 2024年06月22日

简单来说这次更新

/tptv.m3u 适合可修改 UA 的播放器 /tptv_proxy.m3u 不能修改 UA 就用这个,pixman 代理流量

/itv.m3u 适合可以用代理软件映射域名或者修改 Hosts 文件的设备 /itv_proxy.m3u pixman 代理流量,不需要任何干预

itv 和 tptv 之前的 cdn 参数被移除,也不需要 nginx。

itv映射域名的方法:https://pixman.io/topics/37

回复此楼 修改
coding #3 2024年07月05日

https://pixman.io/topics/14

回复此楼 修改
q273432882 关闭了讨论。 2024年07月07日
收到新回复,点击立即加载
需要 登录 后方可回复, 如果你还没有账号请 注册新账号
小楠
@q273432882
统计信息
会员
1,786
话题
259
回帖
2,955
活跃会员 查看排行
Devin
Koguan
nt01xp
jmk92
859876741
kewycjy
cnvc
kkk00011
0xyyyy
wayne630
zf7222749
zmy123
Unlovely
bos5201314
scjxx
once
wykds
LeoXD
a15ban
gally

A digital lifestyle community co-maintained by Pixer

本网站服务器由 提供,CDN 由 提供,基于 Homeland 构建,采用 Docker 部署。