fyq
314 天前
嗨,这需求还要花钱??
不就是 Youtube 上的 4K 视频嘛。
你这需求,用 yt-dlp 加上 cookie 参数就行了。
随手给你找个示例:
yt-dlp <amp-youtube data-videoid="njX2bu-_Vw4" layout="responsive" width="480" height="270"></amp-youtube> --cookies-from-browser firefox
--------
PS D:\> yt-dlp <amp-youtube data-videoid="njX2bu-_Vw4" layout="responsive" width="480" height="270"></amp-youtube> --cookies-from-browser firefox
Extracting cookies from firefox
Extracted 3012 cookies from firefox
[youtube] Extracting URL: <amp-youtube data-videoid="njX2bu-_Vw4" layout="responsive" width="480" height="270"></amp-youtube>[youtube] njX2bu-_Vw4: Downloading webpage
[youtube] njX2bu-_Vw4: Downloading ios player API JSON
[youtube] njX2bu-_Vw4: Downloading android player API JSON
[youtube] njX2bu-_Vw4: Downloading player 5e928255
[youtube] njX2bu-_Vw4: Downloading m3u8 information
[info] njX2bu-_Vw4: Downloading 1 format(s): 337+258
[download] Destination: 2020 LG OLED l The Black 4K HDR 60fps [njX2bu-_Vw4].f337.webm
[download] 100% of 415.36MiB in 00:00:30 at 13.64MiB/s
[download] Destination: 2020 LG OLED l The Black 4K HDR 60fps [njX2bu-_Vw4].f258.m4a
[download] 100% of 5.85MiB in 00:00:00 at 20.21MiB/s
[Merger] Merging formats into "2020 LG OLED l The Black 4K HDR 60fps [njX2bu-_Vw4].mkv"
Deleting original file 2020 LG OLED l The Black 4K HDR 60fps [njX2bu-_Vw4].f337.webm (pass -k to keep)
Deleting original file 2020 LG OLED l The Black 4K HDR 60fps [njX2bu-_Vw4].f258.m4a (pass -k to keep)
PS D:\>