
youtube-dl cookies 在 コバにゃんチャンネル Youtube 的最讚貼文

Search
Google 有更新過youtube 帳號的取用安全性,只能用下面的Cookie 方式登入。 使用Cookie 登入. Youtube-dl 可以使用Netscape 格式的cookie 檔案,讓伺服器 ... ... <看更多>
還是accounts.google.com呢? 我在Cookie Quick Manager 裡只有看到accounts.google.com acounts.google.com是空白的是正常的嗎? ... <看更多>
#1. youtube-dl 登入並下載影片 - 筆記ZONE
Google 有更新過youtube 帳號的取用安全性,只能用下面的Cookie 方式登入。 使用Cookie 登入. Youtube-dl 可以使用Netscape 格式的cookie 檔案,讓伺服器 ...
#2. [筆記]如何使用youtube-dl 下載YouTube 會員限定的影片
還是accounts.google.com呢? 我在Cookie Quick Manager 裡只有看到accounts.google.com acounts.google.com是空白的是正常的嗎?
#3. How to use youtube-dl --cookies - Ask Different
Just try a Get cookies.txt chrome extension, open the youtube then export the cookies using the plugin. If you want do it manual in Chrome. F12 ...
#4. How do you get cookies to work? · Issue #30665 · ytdl-org ...
How do I pass cookies to youtube-dl? Use the --cookies option, for example --cookies /path/to/cookies/file.txt. How do you get cookies to work
Cookies. Cookies are used to appear authenticated towards some websites. This is the only way at the moment to access logged in parts of youtube, ...
#6. [cli] youtube-dl - Youtube 影片下載工具
Youtube 私人影片 · 下載Chrome Extension Get cookies.txt 後 · 使用有權限觀看影片的帳號登入Youtube,並使用該Chrome Extension 把Cookie 抓下來 ...
#7. YT-DLP with Cookies - YouTube
For my notes. Using yt-dlp for a site you login to using browser cookie sessions. ... PSA: Stop Using youtube dl (use yt-dlp Instead).
如果你想使用Cookie下载YouTube视频,可以使用以下方法:. 在下载前使用Cookie访问YouTube,并在浏览器中复制Cookie。 使用以下命令下载YouTube视频:.
#9. youtube-dl syntax help to pass cookies
Hello I am having trouble understanding how to use this command. youtube-dl --cookies cookies.txt -o \
#10. Can't seem to set up cookies
Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", ...
#11. 【密技】Youtube-dl — 傳說中的辣個工具 - 創作大廳
前言- youtube-dl 沒錯傳說中的辣個工具想用但卻不知道該怎麼用? ... 先建立兩個檔案(yt-dlp.conf和cookies.txt)在家目錄(應該都會用Linux…吧)
#12. How to switch Youtube-dl cookies files?
I found out that youtube-dl rewriting my cookies file after first request. The difference between this 2 cookies files in session_id cookie. So, ...
#13. [發問] youtube dl cookie問題請教- 討論區
各位好,想請教有用youtube dl的朋友關於cookie的問題, youtube dl除了下載youtube以外,還能下載許多影音平台上的影片,
#14. yt-dlp 实用小技巧:使用cookies-from-browser 参数下载需要 ...
yt-dlp 是一款非常著名的开源、在线视频下载工具,命令行方式,目前开发状态很活跃。它源自更加著名的youtube-dl。今天介绍2 个小技巧,可以更方便的 ...
#15. youtube-dl 下載YouTube 私人影片
youtube -dl \. --format bestvideo+bestaudio \. -o '%(title)s-%(id)s.%(ext)s' \. --cookies=cookiejar.txt \. --limit-rate 2M \.
#16. YouTube-DL: How to extract cookies from Opera for age ...
Still I have seen an extension named cookies.txt for dumping cookies into text file (for YouTube-dl) which will work on Firefox 52 ESR. XP and ...
#17. Using youtube-dl with cookies.txt file errors - python
I've logged in to foodnetwork, saved my cookies.txt file, but get these errors when I run youtube-dl "https://watch.foodnetwork.com/tv-shows/ ...
#18. youtube-dl cookies的問題包括PTT、Dcard、Mobile01
youtube -dl cookies的問題包括PTT、Dcard、Mobile01,我們都能挖掘各種有用的問答集和懶人包. 書中字有黃金屋 問題的答案無所不包論文書籍站 youtube-dl cookies.
#19. Youtrube-dl的替代方案- yt-dlp - iT 邦幫忙
在一開始yt-dl被下架時出現的fork方案,現在部分功能比yt-dl還完善 ... Cookies from browser: Cookies can be automatically extracted from all major web browsers ...
#20. cookies.txt – Get this Extension for Firefox (en-US)
Download cookies.txt for Firefox. Exports all cookies to a Netscape HTTP Cookie File, as used by curl, wget, and youtube-dl, among others.
#21. [README.md] Clarify how to export cookies from browser for ...
-812,7 +812,11 @@ Either prepend `http://www.youtube.com/watch?v=` or separate the ID from the opt. ### How do I pass cookies to youtube-dl?
#22. get the extension, export the cookies.txt file to a folder, then ...
on: YouTube-dl can no longer download age-restricted v... As someone else mentioned in the comments, the "get cookies.txt" [0] extension ...
#23. YOUTUBE-DL(1) - download videos from ...
--cookies FILE: File to read cookies from and dump cookie jar in. --cache-dir DIR: Location in the filesystem where youtube-dl can store some downloaded ...
#24. yt-dlp
Note: yt-dlp is a fork of youtube-dl that was created after the parent ... To import cookies add the --cookies-from-browser <browser>.
#25. youtube-dl 使用记录
youtube -dl 是一个命令行程序,适用于从YouTube.com 等更多网站上下载视频 ... aria2c --load-cookies cookies.txt [url] # 4) youtube-dl --cookies ...
#26. Authenticated access on Youtube
Now press OK button in cookie editor to apply these modifications. Support in youtube-dl. For some videos youtube-dl may be able to bypass authorization. So you ...
#27. Chiang Louis/youtube-dl
youtube -dl - download videos from youtube.com or other video platforms ... dump cookie jar in --cache-dir DIR Location in the filesystem where youtube-dl ...
#28. Fedora 38 : youtube-dl (2023-1f11546a48)
At the file download stage, all cookies are passed by yt-dlp to the file downloader as a `Cookie` header, thereby losing their scope.
#29. yt-dlp
A youtube-dl fork with additional features and patches. ... 255kbps audio is extracted (if available) from YouTube Music when premium cookies are given ...
#30. Image Layer Details - nbr23/youtube-dl-server:yt-dlp
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing ...
#31. youtube-dl - download videos from ...
youtube -dl is a command-line program to download videos from YouTube.com and a ... cookie jar in --cache-dir DIR Location in the filesystem where youtube-dl ...
#32. 使用youtube-dl和yt-dlp下载视频! - 王bourne
使用cookies. 对于部分视频, 需要登录才能下载到1080p画质. 比较简单的做法是在浏览器登录视频网站, 然后 ...
#33. How to download private videos from YouTube with youtube-dl
It may no longer be necessary to add cookies from multiple domains, YouTube.com should be the only domain cookies are needed from. As an ...
#34. Using UTF-8 for cookie.txt - Python discussion
But cookie text files may contain comments that are not required to be ASCII. I googled and found this issue at youtube-dl.
#35. Mac yt-dlp安裝及使用
yt-dlp是從youtube-dl fork出來的repo, 增加了許多功能特別是我會使用想要下載youtube premium才能使用的youtube music 需要使用cookies yt-dlp可以 ...
#36. Cookies by lfj.io
It's compatible with netscape cookie file format, therefore cookies.txt files from wget, curl, youtube-dl, ... can also imported. 4.
#37. Create an Account
Summary: [abrt] youtube-dl: _really_load(): cookiejar.py:2063:_really_load:http.cookie... Keywords: Status: CLOSED EOL.
#38. yt-dlp,轻松下载各平台视频,缓存视频又一途径- 雨月空间站
yt-dlp is a youtube-dl fork based on the now inactive youtube-dlc. ... 并且,还可以打开浏览器下载,轻松解决Cookies问题,真的是“捷径”哦。
#39. youtube-dl
youtube -dl is a free and open source download manager for video and audio from YouTube and over 1,000 other video hosting websites. It is released under the ...
#40. 使用you-get和yt-dlp开源组件下载及播放视频
使用mpv内置的youtube-dl播放在线视频方案:mpv 默认集成了youtube-dl的在线视频解析 ... You-get在Windows系统下的安装+会员视频下载的cookie配置_cwj1412的博客-CSDN ...
#41. How To bypass YouTube age restrictions with youtube-dl
txt" extension, exporting cookies, and using the youtube-dl command with the --cookies option, you can download age-restricted videos. However, ...
#42. Download videos from youtube - help.
First of all, I use a python script called "youtube-dl" (more info at: "Youtube-dl ... When I pass the cookies and the url together to curl, ...
#43. deblan/youtube-dl - Gitnet
... read cookies from and dump cookie jar in --cache-dir DIR Location in the filesystem where youtube-dl can store some downloaded information permanently.
#44. [閒聊] 用yt-dlp下載影片的小心得&入門教學- 看板Vtuber
執行yt-dlp.exe,影片網址就能安心下載詳細步驟: 1. ... --cookies-from-browser 抓瀏覽器cookies,直接用指令抓,不用像舊文還要找瀏覽器擴充套件, ...
#45. Information Exposure in youtube_dl | CVE-2023-35934
Snyk ID SNYK-PYTHON-YOUTUBEDL-5759278; published 7 Jul 2023 ... yt-dlp or the external downloaders that yt-dlp employs may leak cookies on HTTP redirects to ...
#46. Cookies (do YouTube) no youtube-dl - Geral
Galera, alguém que usa o youtube-dl (e consegue utilizar os cookies do YouTube para logar nele - para conseguir baixar vídeos para maiores ...
#47. Netscape cookies.txt - Just Solve the File Format Problem
The browser market moved on, but the cookies.txt file format remains in use by fundamental and popular tools such as curl, wget, and youtube-dl, ...
#48. How to Install Youtube-dl on Debian 9 Linux Operating System
Youtube -dl is the most important and useful open-source command-line tool for Linux system to download videos from websites like Youtube, Dailymotion, ...
#49. 一觉醒来Get Cookies.txt也成恶意软件了- PC数码- Stage1st
... Android 13上的S1Next-鹅版v2.5.4. 就提取cookies youtube-dl曾经推荐过用这个 yt-dlp能直接从浏览器提cookies之后就用不着了,现在成了恶意软件 ...
#50. [閒聊] 如何使用youtube-dl下載會限影片- 看板Vtuber
因為懶的設定環境變數,採取將所有必備檔案curl.exe、cookie.txt、cookiejar、youtube-dl.exe、ffmpeg.exe 都放在同個資料夾下進行操作。 開始!
#51. 清除快取和Cookie - 電腦- YouTube說明
Cookie 是您造訪的網站所建立的檔案。這些檔案透過儲存瀏覽資料,為您提供更便利的線上體驗。 · 快取會記住網頁的部分內容(例如圖片),讓系統在您下次造訪相同網站時能更快 ...
#52. DragonFly On-Line Manual Pages : youtube-dl(1)
youtube -dl is a small command-line program to download videos from ... and dump cookie jar in --cache-dir DIR Location in the filesystem where youtube-dl ...
#53. [Résolu] youtube-dl: est-ce que youtube nous met des cookies ...
Bonjour, J'utilise youtube-dl pour ne pas avoir à installer Flash ni à aller sur Youtube trop souvent. J'ai lu toute la documentation et ...
#54. rusty_ytdl — Rust video library // Lib.rs
A Rust library for Youtube video searcher and downloader | Rust/Cargo package. ... Blocking and asynchronous API; Proxy, IPv6, and cookie support on request ...
#55. 使用you-get和yt-dlp开源组件下载及播放视频
使用mpv内置的youtube-dl播放在线视频方案:mpv 默认集成了youtube-dl的在线 ... You-get在Windows系统下的安装+会员视频下载的cookie配置_cwj1412的 ...
#56. youtube-dl failed: not found or not enough permissions FIX
and privacy respecting video playing. yt-dlp is installed in /usr/bin to fix above error. Go to /home/your_user_name/.config/mpv/mpv.conf
#57. ytdl / youtube-dl · GitLab
youtube -dl - download videos from youtube.com or other video platforms ... service suggests you and after that pass cookies to youtube-dl.
#58. davidak/youtube-dl
Some services (sometimes only for a subset of videos) do not restrict the video URL by IP address, cookie, or user-agent, but these are the exception rather ...
#59. 用youtube-dl下载YouTube有年龄限制的视频 - 静下来
今天看见一个不错的视频,因为可能是有大量比基尼的原因,视频有了年龄限制,就不能直接下载了。 所以需要登录账号获取cookies来下载。
#60. Youtube_dl : ERROR : YouTube说。无法提取视频数据
youtube -dl --update (self-update); pip install -U youtube-dl (via python); brew upgrade youtube-dl ... youtube-dl -n --cookies ~/Downloads/cookies.txt ...
#61. yt-dlp you-get 下载B 站视频,现在只有480p 了?
之前下油管的频道会员视频的时候有带cookie 下载的方法,不知道b 站可不可以用类似的方法来 ... youtube-dl --cookies=newcookiefile.txt [video-url]
#62. YoutubeDl in youtube_dl - Rust
A builder to create a `youtube-dl` command to execute. ... Struct youtube_dl::YoutubeDl ... Specify a file with cookies in Netscape cookie format.
#63. youtube-dl.1(gz) - Void Linux manpages
youtube -dl is a command-line program to download videos from YouTube.com and a few more ... --cookies FILE: File to read cookies from and dump cookie jar in.
#64. PCStation: 電腦1週 Issue 1023 - 第 7 頁 - Google 圖書結果
Cookies etc. ... 然後可「一鍵卸載」該應用在海外地區大受歡迎,僅兩週時間下載量超過 100 萬次,其後更在美國 Google Play Store 排行榜登頂,在印度市場排行第二。
#65. Youtube DL 用户指引 - Moha Online
点击这里下载.exe 文件复制到C:\Windows 目录下。 常用命令. 模拟登录. 对于需要登录才能下载的视频,浏览器登录网站后导出cookies.txt ...
#66. How to download private Facebook videos
I found a method involving youtube-dl and browser cookies that seems to work well without triggering security problems on Facebook's side.
#67. Kuo's 3C 筆記: 用Python 模組youtube-dl 下載Youtube 直播 ...
這一陣子因為有下載Youtube上公共電視台直播的需求, ... cookiefile: File name where cookies should be read from and dumped to.
#68. youtube-dl Alternatives - Downloader
youtube -dl - download videos from youtube.com or other video platforms ... service suggests you and after that pass cookies to youtube-dl.
#69. youtube-dl 2021.06.06 - freshcode.club
youtube -dl is a small command-line tool to download videos. ... for zhihu.com. youtube controversial videos when authenticated with cookies. ccma timestamp ...
#70. Youtube m3u8 link. Take your video id and make a GET ...
Put the same link in youtube-dl and it will not only grab the vid but also shows a valid link ... Code: youtube-dl --hls-prefer-native --cookies cookies. ...
#71. ~xdefrag/youtube-dl - sourcehut git - SR.HT
youtube -dl - download videos from youtube.com or other video platforms ... dump cookie jar in --cache-dir DIR Location in the filesystem where youtube-dl ...
#72. Download Udemy course with youtube-dl
You first need to login into Udemy and export all your cookies. On Firefox you can use this extension: ...
#73. Youtube DL Video Player | 视频 - Unity Asset Store
此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies 的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie ...
#74. MPlayer youtube script - MultimediaWiki
For example, YouTube CDN servers require special token and cookie which ... youtube-dl is a small console program written in Python for ...
#75. 下载youtube视频之youtube-dl
4、Export cookie(谷歌浏览器插件,导出cookie). 5、ffmpeg 合成下载后的视频和音频. 2、正文. youtube-dl可以直接在命令行下使用,但是为什么我 ...
#76. Tag: YouTube-DL - Brian - carnell.com
Cookies icon. Then I clicked on the “Export” button to download my YouTube cookies as a text file. This created a youtube.com_cookies.txt file ...
#77. youtube-dl — Debian unstable
youtube -dl - download videos from youtube.com or other video platforms ... service suggests you and after that pass cookies to youtube-dl.
#78. Jak korzystać z youtube-dl --cookies - Apple
Jak użyć opcji --cookies w youtube-dl , aby pobrać film z YouTube?Czy ktoś może podać sprawdzony przykład, jak uzyskać odpowiednie pliki cookie dla YouTube ...
#79. youtube-dl 大杂烩合集- 天行常
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o ... on the “Export” button to download my YouTube cookies as a text file.
#80. 【youtube-dl】cookieを使ってログインする - NOARTS
コマンドはyoutube-dlをフォーク名に置き換えるだけでそのまま使えます。 ... cookies.txtというエクステンションをブラウザに追加します。
#81. youtube私人影片下載方式
後來我發現「Youtube-dl」的程式可以免費的下載私人影片,基本介紹可以看 ... 並使用該Chrome Extension 產生的Cookie 檔貼在Youtube-dl 裡面才行。
#82. keywords:yt-dlp
yt -dlp - Python+ Javascript Youtube Audio Video Scrapper And Downloader Client ... Node.js version of `--cookies-from-browser` from yt-dlp.
#83. Chrome 版廣告攔截程式- 立即下載並安裝 ...
在Chrome 瀏覽器中阻擋彈出視窗、自動播放影片廣告以及Facebook、YouTube 與您最愛網站上的廣告。 AdBlock 獲得超過22 萬5 千個五星評價(且 ... 下載Chrome 版AdBlock.
#84. [Resuelta] macos | Cómo utilizar youtube-dl --cookies
Cómo puedo utilizar el --cookies opción de youtube-dl para descargar un vídeo de Youtube? ¿Puede alguien proporcionar un ejemplo apple ...
#85. Google Analytics Opt-out Browser Add-on Download Page
Google Analytics Opt-out Browser Add-on. To provide website visitors the ability to prevent their data from being used by Google Analytics, ...
#86. How to Download YouTube Videos in Linux Command Line?
The videos can be downloaded from the online source through the Linux terminal using the youtube - dl tool. youtube - dl is a Python-based small ...
#87. Aloha Sun TFN Disposable | 7000 Puffs
Here's how I make it: Pulse the cookies in the food processor until finely ... Advertise Developers Terms Privacy Policy & Safety How YouTube works Test new ...
#88. Deemix github download. Use python. Since September 2nd ...
This is the last update of deemix, a Deezer downloader library and application. Download and Convert YouTube, SoundCloud & Spotify in MP3 with full tags ...
#89. Bookmark games github. It enables ...
Cookie Clicker Script Extender Easiest way is to create the bookmarklet on PC ... hacks unblocked-websites bookmarklets youtube-unblocker favelet unblock ...
#90. Slap battles hacks mobile download. Get the #1 Most efficient ...
OK, I Understand We use cookies for various purposes including analytics. ... netHow To Download an Executor/Exploit: https://youtube.
#91. The simplest way to download online videos to your Android
Download the latest version of TubeMate YouTube Downloader for Android. The simplest way to download online videos to your Android. TubeMate YouTube...
#92. Downie - YouTube Video Downloader for macOS
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
#93. Google blocked udemy. Harness the power ...
Clear your browser's cookies and cache and restart it before trying again. ... Mac, Linux) udemy downloader desktop application that helps you to download ...
#94. Free udemy course download reddit. This tutorial video will ...
NavedAli. com. however, i tried yt-dlp with zero success on udemy. ... Downloader Extension like Video DownloaderHelper: this only works for some Udemy ...
#95. Use Tag Manager with a Content Security Policy
createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;var n=d.querySelector('[nonce]');
#96. DL Logan Hall Diversified Game, Preparing for Responsibility
Defensive Lineman Logan Hall spoke to the media following Wednesday's practice. DL Hall discussed becoming more comfortable within the ...
#97. Philippines completes South China Sea resupply mission ...
YouTube · Twitter · Facebook · RSS · Janes. Capabilities. Threat intelligence · Defence Industry Intelligence · Country Intelligence ...
#98. Hoho hub script no key. OK, I Understand Copy . add auto G
We use cookies for various purposes including analytics. ... to Get Blox Fruits Hoho Hub Key (2023) | Blox Fruits Hoho Hub Script Key Tutorial - YouTube.
#99. O'Neill on His Recovery: It Was A Lot of Fun Playing Real ...
youtube Vikings on YouTube ... Cookies and similar technologies are used for a variety of purposes such as enhancing site navigation, analyzing site usage, ...
youtube-dl cookies 在 [閒聊] 用yt-dlp下載影片的小心得&入門教學- 看板Vtuber 的推薦與評價
前言:
2021年可可會長畢業的時候,為了保存會限曾在板上爬過文,先謝謝當初發
#1WtIiBFG (Vtuber), #1XJnGX2A (C_Chat), #1UVBfuky (EZsoft)的大大,
以及巴哈的mashumeow大。(其實還有一大堆,但是過太久記不得了XD)
發這篇文的目的,主要是這些參考文章離現在有點久了,也剛好最近有空,
就寫個簡易入門的教學兼心得。
註:我沒在用twitch,因此這篇是針對youtube平台寫的。
懶人包:
1.下載yt-dlp
2.下載ffmpeg
(2.5)下載別人做好的batch file並修改參數/檔案路徑
3.執行yt-dlp.exe,影片網址就能安心下載
詳細步驟:
1.先建立一個資料夾X,用來放yt-dlp、ffmpeg、做好的.bat檔。
2.到github的yt-dlp頁面下載最新版本的exe檔案
https://github.com/yt-dlp/yt-dlp/releases
隨便介紹幾個我有用到的參數:
-F 列出所有格式。
-f或--format 指定格式,範例 -f 137+140, -f "wv*+wa/w",沒改就是預設("bv*+ba/b"
)
所以除非改了config,不然-f best是不會用到,甚至不用輸入-f。
-o或--output 設定輸出模板,能設定輸出路徑+檔名樣式,預設沒調整的話,檔名是
%(title)s [%(id)s].%(ext)s,輸出路徑是放yt-dlp.exe的資料夾,我自己是用
-o "檔案路徑\%(upload_date)s_%(title)s [%(id)s].%(ext)s",
這樣會在最前方加上時間比較好排序。
-i 無視下載過程出現的錯誤。
--ignore-config 不取用config,巴哈那篇有提config.txt設置,設置config的優點是下
次執行.exe能少輸些指令,但其實沒必要,建好batch file後連手動輸cmd跟指令都不用
,貼上網址就行了,還能依不同用途設多個bat檔,比全域config更加靈活。
PS.就算沒建config.txt還是會有預設config,所以要打這指令。
--cookies-from-browser 抓瀏覽器cookies,直接用指令抓,不用像舊文還要找瀏覽器擴
充套件,省略載cookies.txt的步驟。使用時機:會限or播放列表。
--embed-metadata 下載metadata到檔案中,常見的metadata就標題、參與演出者、註解
、年份等等。
--embed-thumbnail 載入封面圖到檔案。
上面兩個embed的參數,都不建議輸出mkv
metadata在mkv格式會有些東西跑掉,ex:
thumbnail部份,我試的時候發現,輸出要是mp4格式才會成功,
webm+webm/webm+m4a/mp4+webm會是mkv,封面圖會載入失敗,這時候就會用到下個參數。
--merge-output-format 指定輸出格式。用法:參數後+空格+格式(mp4/mkv等)
參數真的很多,我只懂一點點而已,想了解更詳細請到github上面去看,像-o跟-f這種常
用的參數有範例,應該能更好理解。
https://github.com/yt-dlp/yt-dlp
3.下載最新版本的ffmpeg
進入ffmpeg的網站
https://ffmpeg.org/download.html
底下有兩個連結,我自己是用上面打勾的這個,會連到該作者架設的網站,然後到下方
release
下載essential_build就可以,這用途應該不需要full多的東西。
另一個會連到github頁面,但東西有點亂我不知道該下載的檔案藏在哪,就不多加贅述,
想了解的可以自己點進去試。
下載完後解壓縮,應該會叫做ffmpeg-版本-essentials_builds,再打開裡面的bin資料
夾,把ffmpeg抓來丟到X裡面,其他的ffprobe和ffplay不會用到。
1~3步驟做完就能用了,到X上方的路徑框打cmd後,鍵入yt-dlp+指令碼+網址即可
範例
yt-dlp -F https://youtu.be/0-AZJj1ODbY
(查看能下載的格式)
yt-dlp --embed-metadata -embed-thumbnail --merge-output-format mp4
-o "檔案路徑\%(upload_date)s_%(title)s [%(id)s].%(ext)s"
https://youtu.be/0-AZJj1ODbY
這樣就把影片+metadata+封面圖載下來了,很簡單吧。
要下載會限,加個--cookies-from-browser chrome就行了,chrome的位置可以換成你喜
歡的瀏覽器。
如果想省略每次開cmd/PowerShell再打一長串指令的動作,那就到第4步
4.利用batch file省略繁雜步驟
爬到的文章是用cmd或是PowerShell來執行yt-dlp.exe,之前在備份可可會限時也是用上
述
方式(那時候用的還是youtube-dl…被yt降速載超久= =)
後來換電腦剛好想到有batch file的方式可以用,我是不會寫啦,但我有查到別人寫好的
https://github.com/edinsuta/yt-dlp-batch
像yt-dlp_Update.bat這檔案,實際執行到.exe檔的只有yt-dlp -U一行指令而已,但滑鼠
點兩下就會直接執行,不用再輸入任何東西,很方便吧;
yt-dlp_Basic.bat則是先把你輸入的網址設成URL這個變數,到底下yt-dlp … "%URL%"的
時候會自己跑前面的參數,同時調用URL,實際要做的只有點開貼上網址而已。
yt-dlp_Advanced.bat 這個有空建議好好欣賞。*但要小心網址輸入播放列表會把所有影
片
都抓成同一種格式(按個137+140每一部都是137+140了) *
製作方式
打開電腦的notepad,把人家寫好的字全部複製貼上,修改前方參數(參照步驟3範例,記
得
改在yt-dlp那行就好,然後原本的%要變成%%),把檔案存成.txt(要跟yt-dlp等程式一起
存
在資料夾X內),關掉notepad再用重新命名的方式把.txt改成.bat,要修改參數時對著檔
案
點右鍵編輯就行了。
做完後在桌面建立捷徑(不是把檔案剪下貼上到桌面),如果不想用捷徑就在最上面
SET /P的前或後加一行cd /d 檔案路徑就行了。之後要用就點開即可
我自己在用的是這樣(只擷參數部分)
yt-dlp -i --ignore-config --embed-thumbnail
--parse-metadata "description:(?s)(?P<meta_comment>.+)"
--parse-metadata "release_year:(?s)(?P<meta_date>.+)" --embed-metadata
--merge-output-format mp4
-o "檔案路徑\%%(upload_date)s_%%(title)s [%%(id)s].%%(ext)s" "%URL%"
大部分參數前面都介紹過,多了個--parse-metadata,這參數是加入特定的metadata,
操作方式比較複雜,我自己都不太懂就不細講,但我可以解釋為甚麼用
"description:(?s)(?P<meta_comment>.+)"跟"release_year:(?s)(?P<meta_date>.+)",
如果只是--embed-metadata,檔案內容的註解欄會是影片網址,年份還跑出43829,19235之
類的怪數字(如下圖),但-o後方的%%(ext)s已經把影片網址記錄下來了,
所以用"description:…"改成影片的概要欄、"release_year:…"把怪數字弄掉。
沒輸入的會是這樣,有加的話會變成概要欄/空白。
這部份真的很複雜,我已經把這兩個部分試好了(以前抓的影片這兩塊都沒抓到QQ),
建議直接抄,其他部分別亂動,想知道更多的可以到github看,
底下還有提供範例(有範例還是很難懂就是了)。
https://github.com/yt-dlp/yt-dlp#modifying-metadata
我自己是分4個batch file(Basic,Basic+get cookies,Advanced,Update),
平常單純載影片+封面圖點個basic就好,要載一串or會限就+get cookies的版本,
Advanced是想抓特定檔案格式才會用到,幾乎不會用到。
分好幾個batch file的好處是,可以依情況調整參數,不用每次都執行所有的參數,
能加快執行速度。當然也可以把指令都寫在一起,
每次執行就把-U, --get-cookies等等都跑一次,這就看個人習慣了。
這只是我個人對yt-dlp的小小心得,再更難的部份我也不懂了QQ
若有問題或內容寫錯的部分,請推文告訴我,感謝收看。
PS.沒意外的話,最近會有下篇寫類似yt-dlp的紀錄yt直播軟體(yt-dlp遇到直播好像容易
出錯?)。還有就是聊天室部分,也能透過指令備份,但檔案會蠻大的,而且載下來的會是
.json格式,沒辦法直接開啟,所以我個人不太建議,而且同時播放影片+聊天室的軟體也
不好找,我目前是有看到一個網頁啦,如果很多推文想知道,我會考慮放在下篇一起寫。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.25.53.117 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Vtuber/M.1682508953.A.E5E.html
※ 編輯: otosaka (114.25.53.117 臺灣), 04/27/2023 10:38:47
可能是之前資料夾內太多同名檔案才出錯..?
感謝告知,內文已修正。
※ 編輯: otosaka (114.25.53.117 臺灣), 04/28/2023 16:17:10
... <看更多>