yt-dlpでAbemaTVをダウンロード

yt-dlp 2022.03.08でAbemaTVが対応していたので試してみました.

普通にダウンロードすると以下のようにタイトルが「第1話」のようにサブタイトルになってしまうようです.

$ yt-dlp -f 184 https://abema.tv/video/episode/593-1_s1_p1
  :
[download] Destination: 第1話 [593-1_s1_p1].mp4
  :

これは分かりづらい.-o でタイトルを指定することも出来ますが面倒です.

$ yt-dlp -f 184 -o "阿波連さんははかれない %(title)s [%(id)s].%(ext)s" https://abema.tv/video/episode/593-1_s1_p1

単話のURLではなくタイトルのURLを指定してOUTPUT TEMPLATEでplaylist+titleを使うと良さそうです.(単話指定だとplaylistはNAになる)

$ yt-dlp -f 184 -o '%(playlist)s %(title)s [%(id)s].%(ext)s' https://abema.tv/video/title/593-1
  :
[download] Destination: 阿波連さんははかれない 第一話 近すぎじゃね? [593-1_s1_p1].mp4
環境
$ yt-dlp --version
2022.03.08.1
$ dpkg-query -W python3 ffmpeg
ffmpeg  7:4.3.3-0+rpt3+deb11u1
python3 3.9.2-3
$ lsb_release -dr
Description:    Raspbian GNU/Linux 11 (bullseye)
Release:        11
$ arch
armv7l
$ cat /proc/device-tree/model && echo
Raspberry Pi 3 Model B Rev 1.2
追記)

ERROR: base None exceeds table length 58 というエラーが出るようになった.

[download]   0.4% of ~269.75MiB at   20.63MiB/s ETA  Unknown (frag 1/278)ERROR: base None exceeds table length 58

yt-dlp 2022.06.22.1 〜 2022.06.29 で発生.yt-dlp 2022.05.18 や streamlink は問題ないので恐らく yt-dlp のbug.

One thought to “yt-dlpでAbemaTVをダウンロード”

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)