<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/ DTD/wml_1.1.xml">

<wml>
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card title="抖音, 斗鱼, B站，虎牙，油管直播代理（支持Docker）">
<p>
作者:<a href="index.php?action=showuser&amp;userid=1&amp;hash=">admin</a><br />时间:2023-04-16 09:58<br />分类:<a href="index.php?action=list&amp;cid=3&amp;hash=">电脑技术</a><br />内容:
抖音, 斗鱼, B站，虎牙，油管直播代理（支持Docker）


Github：https://github.com/youshandefeiyang/IPTV/tree/main/Golang

安装教程   程序下载  Dockerhub

一、推荐使用Docker一键运行，并配置watchtower监听Docker镜像更新，直接一劳永逸：

1、使用Docker一键配置allinone



XML/HTML代码


    docker run -d --restart unless-stopped --privileged=true -p 35455:35455 --name allinone youshandefeiyang/allinone






2、一键配置watchtower每天凌晨两点自动监听allinone镜像更新，同步GitHub仓库：



XML/HTML代码


    docker run -d --name watchtower --restart unless-stopped -v /var/run/docker.sock:/var/run/docker.sock -e TZ=Asia/Shanghai containrrr/watchtower -c  --schedule &quot;0 0 2 * * *&quot;






详细使用教程请参考我的GitHub README

https://github.com/youshandefeiyang/IPTV/tree/main/Golang

二、直接运行：

首先去action中下载对应平台二进制执行文件，然后解压并直接执行



XML/HTML代码


    chmod 777 allinone &amp;&amp; ./allinone






建议搭配进程守护工具进行使用，windows直接双击运行！

三、详细使用方法

抖音：

1，抖音手机客户端进入直播间后，点击右下角三个点，点击分享，点击复制链接，然后运行并访问：



XML/HTML代码


    http://你的IP:35455/douyin?url=https://v.douyin.com/xxxxxx(&amp;quality=xxxx)






其中&amp;quality参数默认origin原画，可以省略，也可以手动指定：uhd、origin、hd、sd、ld

2，抖音电脑端需要打开抖音网页版复制(live.douyin.com/)xxxxxx，只需要复制后面的xxxxx即可：



XML/HTML代码


    http://你的IP:35455/douyin/xxxxx 






斗鱼：

1，可选m3u8和flv两种流媒体传输方式【(www.douyu.com/)xxxxxx 或 (www.douyu.com/xx/xx?rid=)xxxxxx，默认m3u8兼容性好】：



XML/HTML代码


    http://你的IP:35455/douyu/xxxxx






2，选择flv时可选择不同cdn（需要加stream和cdn参数，不加参数默认hls和akm-tct.douyucdn.cn）



XML/HTML代码


    http://你的IP:35455/douyu/xxxxx(?stream=flv&amp;cdn=hw-tct)






BiliBili(live.bilibili.com/)xxxxxx：

1，平台platform参数选择（默认web，如果有问题，可以切换h5平台）：

&quot;web&quot;   =&gt; &quot;桌面端&quot;

&quot;h5&quot;    =&gt; &quot;h5端&quot;

2，线路line参数选择（默认线路二，如果卡顿/看不了，请切换线路一或者三，一般直播间只会提供两条线路，所以建议线路一/二之间切换）：

&quot;first&quot;  =&gt; &quot;线路一&quot;

&quot;second&quot; =&gt; &quot;线路二&quot;

&quot;third&quot;  =&gt; &quot;线路三&quot;

3，画质quality参数选择（默认原画，可以看什么画质去直播间看看，能选什么画质就能加什么参数，参数错误一定不能播放）：

&quot;30000&quot; =&gt; &quot;杜比&quot;

&quot;20000&quot; =&gt; &quot;4K&quot;

&quot;10000&quot; =&gt; &quot;原画&quot;

&quot;400&quot;   =&gt; &quot;蓝光&quot;

&quot;250&quot;   =&gt; &quot;超清&quot;

&quot;150&quot;   =&gt; &quot;高清&quot;

&quot;80&quot;    =&gt; &quot;流畅&quot;

4，最后的代理链接示例：



XML/HTML代码


    http://你的IP:35455/bilibili/xxxxxx(?platform=h5&amp;line=first&amp;quality=10000)






虎牙(huya.com/)xxxxxx：



XML/HTML代码


    http://你的IP:35455/huya/xxxxx






YouTube:



XML/HTML代码


    https://www.youtube.com/watch?v=cK4LemjoFd0






Rid: cK4LemjoFd0



XML/HTML代码


    http://你的IP:35455/youtube/cK4LemjoFd0(?quality=1080/720...)




后续会支持更多平台，可以关注作者Github主页。

获取斗鱼&amp;虎牙&amp;哔哩哔哩&amp;抖音&amp;快手等 58 个直播平台的真实流媒体地址(直播源)和弹幕，直播源可在 PotPlayer、flv.js 等播放器中播放

GitHub：https://github.com/wbt5/real-url

获取源代码：



XML/HTML代码


    git clone https://github.com/wbt5/real-url.git




安装与使用：


XML/HTML代码


    #安装python3

    apt-get -y install python3 python3-pip

    #安装依赖

    cd real-url

    python3 install -r requirements.txt

    #例如抖音直播间地址获取

    python3 douyin.py




按照提示输入抖音直播间地址，地址可以用手机分享链接到电脑，粘贴进去，然后就得到了一个flv一个m3u8的真实地址，导入播放器或者做成列表就可以方便的观看了。

图形化的直播解析器：https://github.com/alley-rs/lsar


allinone_format-对allinone进行聚合 &amp; 重新分组（新）

Github：https://github.com/FanchangWang/allinone_format

功能简介：

本项目是对 youshandefeiyang/allinone /tv.m3u、/tptv.m3u、/migu.m3u 进行聚合 &amp; 重新分组。

使用前请先安装此项目 youshandefeiyang/allinone ，或者对接别人的或者其他设备上的allinone项目地址。

运行方式：



Docker 运行方式



XML/HTML代码


    # 将 /path/to/config/ 改为你的配置文件存放目录

    docker run -d --restart=unless-stopped --pull=always -v /path/to/config/:/app/config/ -p 35456:35456 --name allinone_format yuexuangu/allinone_format:latest

     

    # openwrt 等系统可能需要 --net=host 网络的，请使用以下命令：

    docker run -d --restart=unless-stopped --pull=always --net=host -v /path/to/config/:/app/config/ -p 35456:35456 --name allinone_format yuexuangu/allinone_format:latest




docker-compose



XML/HTML代码


    version: '3'

    services:

      allinone_format:

        image: yuexuangu/allinone_format:latest

        container_name: allinone_format

        restart: unless-stopped

        pull_policy: always

        network_mode: host # openwrt 等系统可能需要此参数

        volumes:

          - /path/to/config/:/app/config/ # 请将 /path/to/config/ 改为你的配置文件存放目录




源码运行方式



XML/HTML代码


    # 前端

    cd frontend &amp;&amp; npm install &amp;&amp; npm run dev

    # 后端

    cd server &amp;&amp; php -S 0.0.0.0:35456 index.php




使用教程

部署后访问配置页面：http://内网IP:35456/

配置 allinone tv.m3u 订阅源。（如果是同 ip 下，会自动探测 http://内网IP:35455/tv.m3u ）

复制订阅源链接（三种 m3u 格式, 三种 txt 格式）（可以在浏览器打开查看输出是否正常）

在直播软件配置刚才复制的 m3u/txt 订阅源

EPG：https://epg.112114.xyz/

以上项目可以让allinone项目的地址输出成各种常见app的支持格式，直接使用，比较方便，信号源还是网络源，如果想稳定省心，用运营商组播源最好。




</p><p>
<a href="index.php?action=login&amp;hash=">立即登陆发表评论</a><br />
</p>
<p><a href="index.php?action=list&amp;hash=">返回日志列表</a><br /><a href="index.php?action=index&amp;hash=">返回主页</a></p>
</card>
</wml>
