From 96cdde1dd2593d5857a1f6e3d55a4f761f01dfc3 Mon Sep 17 00:00:00 2001 From: magicianlib Date: Thu, 25 Apr 2024 11:32:35 +0800 Subject: [PATCH] =?UTF-8?q?Update=20yt-dlp=20=E5=B7=A5=E5=85=B7=E5=B8=B8?= =?UTF-8?q?=E7=94=A8=E6=96=B9=E5=BC=8F.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...345\270\270\347\224\250\346\226\271\345\274\217.md" | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git "a/yt-dlp \345\267\245\345\205\267\345\270\270\347\224\250\346\226\271\345\274\217.md" "b/yt-dlp \345\267\245\345\205\267\345\270\270\347\224\250\346\226\271\345\274\217.md" index 4e08c6e..40e1db9 100644 --- "a/yt-dlp \345\267\245\345\205\267\345\270\270\347\224\250\346\226\271\345\274\217.md" +++ "b/yt-dlp \345\267\245\345\205\267\345\270\270\347\224\250\346\226\271\345\274\217.md" @@ -546,7 +546,11 @@ WebM标准的网络视频更加偏向于开源并且是基于HTML5标准的。 ## youtbe ```bash -yt-dlp -f "bestvideo+bestaudio" --write-auto-sub --convert-subs=ass --sub-lang "zh-Hans,en" --embed-sub --write-thumbnail --convert-thumbnail png --embed-thumbnail https://www.youtube.com/watch?v={视频Id} +yt-dlp -c \ +-f bestvideo+bestaudio \ +--write-thumbnail --convert-thumbnail png --embed-thumbnail \ +--write-auto-sub --convert-subs=ass --sub-lang "zh-Hans,en" --embed-sub \ +视频链接 ``` ## bilibili @@ -554,11 +558,11 @@ yt-dlp -f "bestvideo+bestaudio" --write-auto-sub --convert-subs=ass --sub-lang " 下载前先确定重组文件名是否 ok: ```bash -yt-dlp --skip-download --get-filename -o "P%(playlist_index)02d|%(title)s.%(ext)s" 视频链接 +yt-dlp --print "P%(playlist_index)02d|%(title)s.%(ext)s" 视频链接 ``` 执行下载: ```bash -yt-dlp --cookies cookies_svip.txt --embed-thumbnail -f bestvideo+bestaudio -o "P%(playlist_index)02d|%(title)s.%(ext)s" 视频链接 +yt-dlp --cookies cookies_svip.txt -c --embed-thumbnail -f bestvideo+bestaudio -o "P%(playlist_index)02d|%(title)s.%(ext)s" 视频链接 ```