# Youtube 影音下載器 ###### tags: `youtube-dl`,`youtube downloader` [TOC] ### Installation: ##### yt-dlp - [下載位置-Github](https://github.com/yt-dlp/yt-dlp/releases) 往下滑到 **Asset**  - 點擊 `yt-dlp.exe` 下載  - 將下載好的`.exe`檔放入你最最最喜歡的位置 (建議放入`C:/`) ##### ffmpeg - [下載位置-ffmpeg官網(?](https://www.gyan.dev/ffmpeg/builds/) 往下滑到 **Release Build**  選擇`essential` , `full` 版本下載  - 下載完後將壓縮檔放在與`yt-dlp.exe`相同路徑的資料夾架並解壓縮  ##### Update Environment Variables - 打開系統設定 > 選擇`系統 System`  - 選擇`關於 About`  - 選擇`進階設定 Advanced system settings`:  - 選擇`環境變數 Environment Variables`  - 選擇下方視窗`System Variables`中的`Path` > 點選`編輯 Edit` - 選擇`New` > 將解壓縮後的資料夾路徑貼上 - 選擇`OK` 將所有的視窗關閉 ### CMD(2024 ver.) - 改變當前位置 ```shell= cd <path> ``` - 無腦下載音質、影像品質最佳的影片檔 ```shell= yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" "https://www.youtube.com/watch?v=h_P1C94LhTE" ``` - 轉成mp3(? ```shell= ffmpeg -i "in.mp4" "out.mp3" ``` ### CMD(2022 ver.) - 改變當前位置 ```shell= cd <path> ``` - 檢查該連結可供下載的格式 要下載的影片連結 `https://www.youtube.com/watch?v=h_P1C94LhTE` ```shell= yt-dlp -F https://www.youtube.com/watch?v=h_P1C94LhTE ``` > Output: > >  - 開始下載檔案 選擇要下載的檔案格式 `e.g: 720P => 22` ```shell= yt-dlp -f 22 https://www.youtube.com/watch?v=h_P1C94LhTE ``` >Output: > >  > 下載完成 ! >  > 檔案就出現在原資料夾囉~ > 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up