pixman 最新版 (v1.3.6) 针对 iTV 和 TPTV 分别有三种解决办法:
江苏移动的验证比较简单,部分 ip 段和 UA 被拉黑
/tptv.m3u,如果不能播放,尝试修改播放器的 UA (User-Agent)/tptv_proxy.m3u,pixman 将会代理请求,任何播放器都支持;中国移动 iTV 的源在电信联通网络下不返回服务器 ip,解决办法也很简单,自己写入一个可用 ip 到 hosts 文件就行,但考虑到有些用户不知道怎么修改或者设备不支持修改,有三种办法:
/itv.m3u 就行,修改 Hosts 或者用代理软件映射别名可以参考 https://pixman.io/topics/37
/itv_proxy.m3u,pixman 会代理请求,三网通用在任意目录新建一个 pixman.conf,假设路径为 /opt/pixman/pixman.conf
server {
listen 8000 default_server;
resolver 223.5.5.5;
location ~ ^/tptv/(?<path>.*) {
set $ua 'okhttp/3';
if ($arg_ua) {
set $ua $arg_ua;
}
set $target_url http://tptvo.mobaibox.com/$path$is_args$args;
proxy_pass $target_url;
proxy_set_header User-Agent $ua;
}
location ~ ^/(?<cdn>ystenlive|bestlive|wasulive|fifalive|hnbblive)(?<path>.*) {
set $target_url http://pixman.io.$cdn.dnsany.com$path$is_args$args;
proxy_pass $target_url;
proxy_set_header Host cache.ott.$cdn.itv.cmvideo.cn;
}
location / {
return 200 'ok';
}
}
然后使用 docker run -d --name=pixman-nginx -p 8000:8000 -v /opt/pixman/pixman.conf:/etc/nginx/conf.d/pixman.conf --restart=always nginx 启动 Nginx
订阅地址分别为:
/tptv_proxy.m3u?server=ip:8000/itv_proxy.m3u?server=ip:8000如果更喜欢使用 Docker Compose 的话,可以使用下面的文件
在这个例子中,docker-compose.yaml 和 pixman.conf 文件都在 /opt/pixman 下,根据你自己的调整
docker-compose.yaml
services:
pixman:
image: pixman/pixman
restart: always
container_name: pixman
environment:
- http_proxy=http://192.168.50.50:7890
- https_proxy=http://192.168.50.50:7890
- MYTVSUPER_TOKEN=YOUR_TOKEN
ports:
- 5000:5000
pixman-nginx:
image: nginx:latest
restart: always
container_name: pixman-nginx
ports:
- 8000:8000
volumes:
- /opt/pixman/pixman.conf:/etc/nginx/conf.d/pixman.conf
謝謝板主回覆 我在國外用tptv.m3u 和 itv.m3u 改了host 或是nginx都不能用 看來只能用 itv_proxy.m3u 和 tptv_proxy.m3u 了 ~如板主說的一樣 都會斷流 緩衝 再播放 ~還是謝謝板主無私的努力~
itv.m3u 改host可以看 nginx或者itv_proxy.m3u 就是看不了,tptv也一样,不知道家里网络哪里有问题还是设置不对
docker 日志

你的代理开启了验证,可以关闭验证或者修改为
environment:
- http_proxy=http://user:[email protected]:7890
- https_proxy=http://user:[email protected]:7890
user 和 pass 换成你的用户名和密码
{"error":"Failed to get play url"} {"error":"Failed to get account info"} 求救,都报错了,获取不到播放链接或者账号信息
[2024-07-31 03:39:26,189] ERROR in app: Request failed: 403 Client Error: Forbidden for url: http://tptv1.mobaibox.com/alcdnbacksourceflag_223.110.243.215:80/PLTV/4/224/3221228581/1.m3u8?accountinfo=duwSH44qpXvdg6S060ChU%2Fsd30H9RDaSAWq0EZEJyD%2Btlb5%2BXH6K0KFMKL7Hg8sJcbU8ait5Q9G8LOlUwMc4et3gXVYHQQqDY8OYv%2BMj1aeM8oDgJOuprRXID4nSLtNiFgCcgHZcoIABWGUx4GF9bqeo84KrB1TAVruJzkRIWcU%3D%3A20240731031445%2C-1%2C112.25.7.222%2C20240731031445%2CG_CCTV-1-AVS-4K264%2C1769258695288_14%3AFE%3ACE%3A48%3A83%3A61%2C-1%2C0%2C1%2C%2C%2C2%2C%2C%2C%2C2%2C%2C10000100000000060000000017817382_0%2CEND&GuardEncType=2&servicetype=1&unionUrl=gitv%2Flive1%2FG_CCTV-1-AVS-4K264%2FG_CCTV-1-AVS-4K264&icpid=88888888&from=5&popid=5&hms_devid=83&prioritypopid=5, retrying... [2024-07-31 03:39:26,189] ERROR in app: Request failed after retrying
{ "error": "Failed to get response" }
使用itv_proxy.m3u 获取的地址,使用频道连接打开提示,请问是什么问题呢? tptv_proxy.m3u是正常使用
pixman-nginx-1 | 10.1.0.2 - - [04/Aug/2024:10:11:28 +0000] "GET /wasulive/000000001000/6000000001000022313/6000000001000022313_1500000_20240804_180000_59.ts?channel-id=wasusyt&Contentid=6000000001000022313&livemode=1&stbId=3&version=1.0&owaccmark=6000000001000022313&owchid=wasusyt&owsid=9737461722766219786&AuthInfo=EWQsWs67N73tbxTvFapMNjcABjwASPmu1AUYW6yMj6zi80w1g7mnj7NmKIArDPe7zdwnvSXndfRAnjWFAe22hg%3D%3D HTTP/1.1" 499 0 "-" "'okhttp/3'" "-"
499报错如何处理电信线路