Last active
April 16, 2023 08:50
-
-
Save jim60105/9c96d19b7a4b1911fada1f46445bb04a to your computer and use it in GitHub Desktop.
yt-dlp quick excute batch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
set url="%1" | |
yt-dlp.exe --ignore-config --external-downloader aria2c --external-downloader-args "-j 16 --retry-wait 10 --max-tries 10" --cookies-from-browser brave --youtube-skip-dash-manifes --merge-output-format mkv --prefer-free-formats --embed-thumbnail --embed-metadata --no-part -o "%%(upload_date)s %%(title)s (%%(id)s).%%(ext)s" "%url%" | |
PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
set url="%1" | |
yt-dlp.exe --ignore-config --external-downloader aria2c --external-downloader-args "-j 16 --retry-wait 10 --max-tries 10" --cookies-from-browser brave --merge-output-format mp4 --embed-thumbnail --embed-metadata --no-part -o "%%(upload_date)s %%(title)s (%%(id)s).%%(ext)s" %url% | |
PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
set url="%1" | |
yt-dlp.exe --ignore-config --external-downloader aria2c --external-downloader-args "-j 16 --retry-wait 10 --max-tries 10" --cookies-from-browser brave --youtube-skip-dash-manifes --merge-output-format mkv --prefer-free-formats --embed-thumbnail --convert-thumbnails jpg --embed-metadata --no-part -o "%%(id)s.%%(ext)s" --exec "mkclean %%(filepath)q \"%%(upload_date)s %%(title)s (%%(id)s).%%(ext)s\" && del %%(filepath)q" "%url%" | |
PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
set url="%1" | |
yt-dlp.exe --ignore-config --external-downloader aria2c --external-downloader-args "-j 16 --retry-wait 10 --max-tries 10" --cookies-from-browser brave --youtube-skip-dash-manifes --merge-output-format mkv --prefer-free-formats --ppa "Merger+ffmpeg_o:-cues_to_front yes" --embed-thumbnail --convert-thumbnails jpg --embed-metadata --no-part -o "%%(upload_date)s %%(title)s (%%(id)s).%%(ext)s" "%url%" | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
準備
brave
改為你使用的瀏覧器 (有 Youtube 登入的瀏覧器)取得影片id
請從網址列 copy 等號後面的那一段
例: https://www.youtube.com/watch?v=HeE8BP553Aw 的id為 HeE8BP553Aw
下載影片
.\1-video-dl-mkv.bat HeE8BP553Aw
.\2-video-dl-mp4.bat HeE8BP553Aw
.\3-video-dl-mkclean.bat HeE8BP553Aw
.\4-video-dl-mkv-cues_to_front.bat HeE8BP553Aw
四個腳本的區別
下載 mkv 檔案,並經過 mkclean 處理
需要下載 mkclean 執行檔,詳請見此
需要 ffmpeg 5.1 以上版本,詳請見此