abematv – matoken's blog https://matoken.org/blog Is there no plan B? Tue, 19 Jul 2022 19:36:43 +0000 ja hourly 1 https://wordpress.org/?v=6.9.4 https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9-32x32.jpeg abematv – matoken's blog https://matoken.org/blog 32 32 yt-dlpの一部のバージョンでAbemaTVが利用できなくなった https://matoken.org/blog/2022/07/15/abematv-is-no-longer-available-in-some-versions-of-yt-dlp/ https://matoken.org/blog/2022/07/15/abematv-is-no-longer-available-in-some-versions-of-yt-dlp/#respond Thu, 14 Jul 2022 22:09:04 +0000 http://matoken.org/blog/?p=3722
追記

yt-dlp 2022.07.18がリリースされました.このバージョンでAbemaTVを試したところ問題なく利用できました. yt-dlp -U でアップデートしましょう.


各種動画をローカルにダウンロードできるyt-dlpですが,yt-dlp 2022.03.08以降AbemaTVに対応しました.

しかし最近ダウンロードが出来ません,

以下のようにエラーとなります.

$ yt-dlp https://abema.tv/video/title/26-171
[AbemaTVTitle] 26-171: Downloading webpage
[download] Downloading playlist: リコリス・リコイル
[AbemaTVTitle] Playlist リコリス・リコイル: Downloading 2 videos of 2
[download] Downloading video 1 of 2
[AbemaTV] Authorizing
[AbemaTV] 26-171_s1_p1: Downloading webpage
[AbemaTV] 26-171_s1_p1: Checking playability
[AbemaTV] 26-171_s1_p1: Downloading m3u8 information
[info] 26-171_s1_p1: Downloading 1 format(s): 5300
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 265
[download] Destination: 第1話 Easy does it [26-171_s1_p1].mp4
[download]   0.4% of ~415.26MiB at  796.79KiB/s ETA 08:45 (frag 1/265)ERROR: base None exceeds table length 58
[download] Downloading video 2 of 2
[AbemaTV] 26-171_s1_p500: Downloading webpage
[AbemaTV] 26-171_s1_p500: Checking playability
[AbemaTV] 26-171_s1_p500: Downloading m3u8 information
[info] 26-171_s1_p500: Downloading 1 format(s): 5300
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 21
[download] Destination: PV【7_2より毎週土曜23_30〜地上波同時・独占先行放送】 [26-171_s1_p500].mp4
[download]   4.8% of ~27.57MiB at  794.86KiB/s ETA 00:33 (frag 1/21)ERROR: base None exceeds table length 58
[download] Finished downloading playlist: リコリス・リコイル

yt-dlpのバージョンは2022.06.29でアップデートを試みても最新です.

$ yt-dlp --version
2022.06.29
$ yt-dlp -U
Latest version: 2022.06.29, Current version: 2022.06.29
yt-dlp is up to date (2022.06.29)

streamlinkではダウンロードできます.

$ yt-dlp https://abema.tv/video/episode/26-171_s1_p1 360p -o "リコリス・リコイル 第1話 Easy does it.mp4"

streamlinkが問題ないってことはyt-dlpが怪しい?と古いバーションを試すとyt-dlp 2022.05.18だとうまくいきました.

$ wget https://github.com/yt-dlp/yt-dlp/releases/download/2022.05.18/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/download/2022.05.18/SHA2-512SUMS
$ LC_ALL=C sha512sum -c SHA2-512SUMS 2>/dev/null
yt-dlp: OK
yt-dlp.tar.gz: FAILED open or read
yt-dlp.exe: FAILED open or read
yt-dlp_win.zip: FAILED open or read
yt-dlp_min.exe: FAILED open or read
yt-dlp_x86.exe: FAILED open or read
yt-dlp_macos: FAILED open or read
yt-dlp_macos.zip: FAILED open or read
$ install -m 755 ./yt-dlp ~/bin/yt-dlp-2022.05.18
$ rm ./yt-dlp ./SHA2-512SUMS
$ yt-dlp-2022.05.18 https://abema.tv/video/title/26-171

ということで,yt-dlp 2022.06.22.12022.06.29l がNGのようです.
ISSUEを探すとそれらしいものが.修正済のようなので自バージョンあたりでまた動作するようになるのではと思います.

環境
$ yt-dlp --version
2022.06.29
$ yt-dlp-2022.05.18 --version
2022.05.18
$ dpkg-query -W ffmpeg
ffmpeg  7:4.3.4-0+deb11u1+rpt2
$ 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
]]>
https://matoken.org/blog/2022/07/15/abematv-is-no-longer-available-in-some-versions-of-yt-dlp/feed/ 0
yt-dlpでAbemaTVをダウンロード https://matoken.org/blog/2022/04/06/download-abematv-with-yt-dlp/ https://matoken.org/blog/2022/04/06/download-abematv-with-yt-dlp/#comments Wed, 06 Apr 2022 11:26:00 +0000 http://matoken.org/blog/?p=3578

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

[AbemaTV] Add extractors by Lesmiscore

普通にダウンロードすると以下のようにタイトルが「第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.

]]>
https://matoken.org/blog/2022/04/06/download-abematv-with-yt-dlp/feed/ 1