---
# System prepended metadata

title: 'yt-dlp获取youtube直播地址推流到其它直播平台失败 ERROR: [youtube] dadEN6gmSAE: Sign in to confirm you’re not a bot. This helps protect our'

---

# yt-dlp获取youtube直播地址推流到其它直播平台失败 ERROR: [youtube] dadEN6gmSAE: Sign in to confirm you’re not a bot. This helps protect our community. Learn more
#### tags: `youtube` `推流` `rmtp` `cloudfalre warp` `ip` `yt-dlp`

笔者最近在youtube平台直播，想把推流地址拉下来，在国内也直播一份。可惜不方便。遂找到了一个插件，yt-dlp。https://github.com/yt-dlp/yt-dlp 。这个插件可以解析youtube直播的m3u8链接。
# 安装
Linux
```bash!
wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp
chmod +x yt-dlp
```
Windows
打开链接直接下载。
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe

# 使用

链接替换成你要获取的
```bash!
./yt-dlp -g https://www.youtube.com/watch?v=dadDNFgmSAE
```

## 报错 ERROR: [youtube] dadEN6gmSAE: Sign in to confirm you’re not a bot. This helps protect our community. Learn more

看来vps的ip不干净，这可怎么办呢。家庭代理ip挺贵的。笔者想到了一个办法，warp白嫖干净的ip。
### 安装warp
```bash!
# Add cloudflare gpg key
curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg


# Add this repo to your apt repositories
echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list


# Install
sudo apt-get update && sudo apt-get install cloudflare-warp
		
```
### 使用warp

```bash!
warp-cli registration new
warp-cli mode proxy
warp-cli connect

```
此时warp运行在socks5本机代理127.0.0.1:40000
### 测试warp

```bash!
sudo apt install proxychains4 
sudo nano /etc/proxychains4.conf
#修改最后一部分如下
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
#socks4         127.0.0.1 9050
socks5 127.0.0.1 40000
```
测试一下
```bash!
proxychains4 curl ifconfig.me
[proxychains] config file found: /etc/proxychains4.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] Strict chain  ...  127.0.0.1:40000  ...  ifconfig.me:80  ...  OK
104.28.233.73
```
可以看到ip不同。说明我们成功了。

# 解决问题
我们给软件前面加上proxychains
```
proxychains4 ./yt-dlp -g https://www.youtube.com/watch?v=dadEN6gmSAEv=dadEN6gmSAE
[proxychains] config file found: /etc/proxychains4.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] Strict chain  ...  127.0.0.1:40000  ...  www.youtube.com:443  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:40000  ...  www.youtube.com:443  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:40000  ...  www.youtube.com:443  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:40000  ...  manifest.googlevideo.com:443  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:40000  ...  manifest.googlevideo.com:443  ...  OK
https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1731803191/ei/1-M4Z6OTCa-YsfIPyc7RsA8/ip/104.28.233.73/id/dadEN6gmSAE.1/itag/96/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D137/rqh/1/hdlc/1/hls_chunk_host/rr4---sn-i3b7knld.googlevideo.com/xpc/EgVo2aDSNQ%3D%3D/playlist_duration/30/manifest_duration/30/spc/qtApAYeKKrR7fxAYLQMSFWYZkm2TB7ekKzgGhdpXW9H1iMGh3Mi4mg55KdIysgs/vprv/1/playlist_type/DVR/initcwndbps/1473750/met/1731781592,/mh/No/mm/44/mn/sn-i3b7knld/ms/lva/mv/m/mvi/4/pl/24/rms/lva,lva/dover/11/pacing/0/keepalive/yes/fexp/51299154,51312688,51326932,51331021/mt/171239/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,live,sgoap,sgovp,rqh,hdlc,xpc,playlist_duration,manifest_duration,spc,vprv,playlist_type/sig/AJfQdSswRQIgEp7uq1qZNvfa7Zk0yflVazxyhuwh4v2QPwH329e2l6UCIQDoA8BXwezWpUpYdNW0z5pLgDMeXosXfN-cp_AzXhYHWQ%3D%3D/lsparams/hls_chunk_host,initcwndbps,met,mh,mm,mn,ms,mv,mvi,pl,rms/lsig/AGluJ3MwRgIhALG3nYVxDcm_jqoZJLeBln5j0EkKjCD7MB6t5XLGiuMQAiEA3Zg9YUUDGFLw-vLdPOFnUlipXhvrqHQMv1oFsZS1gZY%3D/playlist/index.m3u8
```
成功了

# 免费社工库
下山虎社工库
https://t.me/MTTigerSGK 