yt-dlp
https://gyazo.com/3f5e44b36008e6eded91ef936f65199a
A youtube-dl fork wth additional features and fixed
FFmpeg Builds for yt-dlp
https://github.com/yt-dlp/FFmpeg-Builds%5D
インストール
以下をパスが通ったフォルダに入れる
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe
yt-dlp.exe
https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip
ffmpeg.exe
ffplay.exe
ffprobe.exe
アップデート
code:console
$ yt-dlp -U
Latest version: 2022.07.18, Current version: 2022.07.18
yt-dlp is up to date (2022.07.18)
設定
yt-dlp.exeと同じフォルダにyt-dlp.confを置く
code:yt-dlp.conf
-o "%USERPROFILE%\Videos\%(title)s.%(ext)s"
-N 3
--embed-thumbnail
--no-mtime
c--console-title
--merge-output-format webm
--recode-video mp4
-f "bvext=webm+baext=webm"
Requested format is not available. Use --list-formats for a list of available formatsと言われた場合
code:console
yt-dlp.exe 動画があるURL --list-formats
info Available formats for D0005180476_00000:
ID EXT RESOLUTION FPS │ FILESIZE TBR PROTO │ VCODEC VBR ACODEC ABR
──────────────────────────────────────────────────────────────────────────────────
hls-497 mp4 640x360 30 │ ~36.47MiB 498k m3u8 │ avc1.4d401e 498k mp4a.40.5 0k
IDに出てきたものを-fに指定すれば良い
時間指定
code:console
yt-dlp.exe URL --no-config -x --audio-format wav --download-sections *1:10:20-1:1:15:30