yt-dlp: [TVer] ERROR: [brightcove:new] Unable to download JSON metadata: HTTP Error 404: Not Found

Checklist

  • I’m reporting that yt-dlp is broken on a supported site
  • I’ve verified that I have updated yt-dlp to nightly or master (update instructions)
  • I’ve checked that all provided URLs are playable in a browser with the same IP and same login details
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched known issues, the FAQ, and the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I’ve read about sharing account credentials and I’m willing to share it if required

Region

Japan

Provide a description that is worded well enough to be understood

I tried to rip a TV drama that TVer streams. But the result is like these and I fail to rip them.

$ yt-dlp https://tver.jp/episodes/epkhujfaub [TVer] Creating session [TVer] Extracting URL: https://tver.jp/episodes/epkhujfaub [TVer] epkhujfaub: Downloading episode info [TVer] epkhujfaub: Downloading video info [brightcove:new] Extracting URL: http://players.brightcove.net/6191645753001/default_default/index.html?videoId=ref:F1ymguk7h_js7#...3A+["JP"]} [brightcove:new] ref:F1ymguk7h_js7: Downloading JSON metadata ERROR: [brightcove:new] Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: Not Found>)

$ yt-dlp -vU https://tver.jp/episodes/epkhujfaub [debug] Command-line config: [‘-vU’, ‘https://tver.jp/episodes/epkhujfaub’] [debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version stable@2025.02.19 from yt-dlp/yt-dlp [4985a4041] (zip) [debug] Python 3.12.3 (CPython x86_64 64bit) - Linux-6.8.0-55-generic-x86_64-with-glibc2.39 (OpenSSL 3.0.13 30 Jan 2024, glibc 2.39) [debug] exe versions: ffmpeg N-116451-ge7d3ff8dcd (fdk,setts), ffprobe N-116451-ge7d3ff8dcd [debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2023.11.17, mutagen-1.46.0, requests-2.31.0, sqlite3-3.45.1, urllib3-2.0.7, websockets-10.4 [debug] Proxy map: {} [debug] Request Handlers: urllib [debug] Loaded 1841 extractors [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest Latest version: stable@2025.02.19 from yt-dlp/yt-dlp yt-dlp is up to date (stable@2025.02.19 from yt-dlp/yt-dlp) [TVer] Creating session [TVer] Extracting URL: https://tver.jp/episodes/epkhujfaub [TVer] epkhujfaub: Downloading episode info [TVer] epkhujfaub: Downloading video info [brightcove:new] Extracting URL: http://players.brightcove.net/6191645753001/default_default/index.html?videoId=ref:F1ymguk7h_js7#__youtubedl_smuggle={“geo_countries”%3A+[“JP”]} [debug] Using fake IP 133.223.223.164 (JP) as X-Forwarded-For [debug] Loading brightcove.6191645753001_default from cache [brightcove:new] ref:F1ymguk7h_js7: Downloading JSON metadata ERROR: [brightcove:new] Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: Not Found>) File “/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py”, line 746, in extract ie_result = self._real_extract(url) ^^^^^^^^^^^^^^^^^^^^^^^ File “/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/brightcove.py”, line 908, in _real_extract json_data = self._download_json(api_url, video_id, headers=headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py”, line 1143, in download_content res = getattr(self, download_handle.name)(url_or_request, video_id, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py”, line 1101, in download_handle res = self._download_webpage_handle( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/adobepass.py”, line 1367, in _download_webpage_handle return super()._download_webpage_handle( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py”, line 966, in _download_webpage_handle urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py”, line 915, in _request_webpage raise ExtractorError(errmsg, cause=err)

File “/home/emmanuel/bin/yt-dlp/yt_dlp/networking/_urllib.py”, line 398, in _send res = opener.open(urllib_req, timeout=self._calculate_timeout(request)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/lib/python3.12/urllib/request.py”, line 521, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File “/usr/lib/python3.12/urllib/request.py”, line 630, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File “/usr/lib/python3.12/urllib/request.py”, line 559, in error return self._call_chain(*args) ^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/lib/python3.12/urllib/request.py”, line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File “/usr/lib/python3.12/urllib/request.py”, line 639, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File “/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py”, line 902, in _request_webpage return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query, extensions)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/emmanuel/bin/yt-dlp/yt_dlp/YoutubeDL.py”, line 4175, in urlopen return self._request_director.send(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/emmanuel/bin/yt-dlp/yt_dlp/networking/common.py”, line 117, in send response = handler.send(request) ^^^^^^^^^^^^^^^^^^^^^ File “/home/emmanuel/bin/yt-dlp/yt_dlp/networking/_helper.py”, line 208, in wrapper return func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/emmanuel/bin/yt-dlp/yt_dlp/networking/common.py”, line 340, in send return self._send(request) ^^^^^^^^^^^^^^^^^^^ File “/home/emmanuel/bin/yt-dlp/yt_dlp/networking/_urllib.py”, line 403, in _send raise HTTPError(UrllibResponseAdapter(e.fp), redirect_loop=‘redirect error’ in str(e)) from e yt_dlp.networking.exceptions.HTTPError: HTTP Error 404: Not Found

$ yt-dlp ‘https://tver.jp/episodes/ep6numadcw?p=0&play=auto’ [TVer] Creating session [TVer] Extracting URL: https://tver.jp/episodes/ep6numadcw?p=0&play=auto [TVer] ep6numadcw: Downloading episode info [TVer] ep6numadcw: Downloading video info [brightcove:new] Extracting URL: http://players.brightcove.net/5718741494001/default_default/index.html?videoId=ref:5cebfe09-4414-...3A+[“JP”]} [brightcove:new] ref:5cebfe09-4414-452e-843d-7278468f5632: Downloading JSON metadata [brightcove:new] ref:5cebfe09-4414-452e-843d-7278468f5632: Downloading JSON metadata ERROR: [brightcove:new] Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: Not Found>)

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

$ yt-dlp -vU https://tver.jp/episodes/epkhujfaub
[debug] Command-line config: ['-vU', 'https://tver.jp/episodes/epkhujfaub']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2025.02.19 from yt-dlp/yt-dlp [4985a4041] (zip)
[debug] Python 3.12.3 (CPython x86_64 64bit) - Linux-6.8.0-55-generic-x86_64-with-glibc2.39 (OpenSSL 3.0.13 30 Jan 2024, glibc 2.39)
[debug] exe versions: ffmpeg N-116451-ge7d3ff8dcd (fdk,setts), ffprobe N-116451-ge7d3ff8dcd
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2023.11.17, mutagen-1.46.0, requests-2.31.0, sqlite3-3.45.1, urllib3-2.0.7, websockets-10.4
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1841 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2025.02.19 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2025.02.19 from yt-dlp/yt-dlp)
[TVer] Creating session
[TVer] Extracting URL: https://tver.jp/episodes/epkhujfaub
[TVer] epkhujfaub: Downloading episode info
[TVer] epkhujfaub: Downloading video info
[brightcove:new] Extracting URL: http://players.brightcove.net/6191645753001/default_default/index.html?videoId=ref:F1ymguk7h_js7#__youtubedl_smuggle=%7B%22geo_countries%22%3A+%5B%22JP%22%5D%7D
[debug] Using fake IP 133.223.223.164 (JP) as X-Forwarded-For
[debug] Loading brightcove.6191645753001_default from cache
[brightcove:new] ref:F1ymguk7h_js7: Downloading JSON metadata
ERROR: [brightcove:new] Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: Not Found>)
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 746, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/brightcove.py", line 908, in _real_extract
    json_data = self._download_json(api_url, video_id, headers=headers)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 1143, in download_content
    res = getattr(self, download_handle.__name__)(url_or_request, video_id, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 1101, in download_handle
    res = self._download_webpage_handle(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/adobepass.py", line 1367, in _download_webpage_handle
    return super()._download_webpage_handle(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 966, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 915, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/home/emmanuel/bin/yt-dlp/yt_dlp/networking/_urllib.py", line 398, in _send
    res = opener.open(urllib_req, timeout=self._calculate_timeout(request))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 521, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 630, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 559, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 639, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 902, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query, extensions))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 4175, in urlopen
    return self._request_director.send(req)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/networking/common.py", line 117, in send
    response = handler.send(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/networking/_helper.py", line 208, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/networking/common.py", line 340, in send
    return self._send(request)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/networking/_urllib.py", line 403, in _send
    raise HTTPError(UrllibResponseAdapter(e.fp), redirect_loop='redirect error' in str(e)) from e
yt_dlp.networking.exceptions.HTTPError: HTTP Error 404: Not Found
--------
$ yt-dlp -vU https://tver.jp/episodes/ep6numadcw
[debug] Command-line config: ['-vU', 'https://tver.jp/episodes/ep6numadcw']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2025.02.19 from yt-dlp/yt-dlp [4985a4041] (zip)
[debug] Python 3.12.3 (CPython x86_64 64bit) - Linux-6.8.0-55-generic-x86_64-with-glibc2.39 (OpenSSL 3.0.13 30 Jan 2024, glibc 2.39)
[debug] exe versions: ffmpeg N-116451-ge7d3ff8dcd (fdk,setts), ffprobe N-116451-ge7d3ff8dcd
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2023.11.17, mutagen-1.46.0, requests-2.31.0, sqlite3-3.45.1, urllib3-2.0.7, websockets-10.4
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1841 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2025.02.19 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2025.02.19 from yt-dlp/yt-dlp)
[TVer] Creating session
[TVer] Extracting URL: https://tver.jp/episodes/ep6numadcw
[TVer] ep6numadcw: Downloading episode info
[TVer] ep6numadcw: Downloading video info
[brightcove:new] Extracting URL: http://players.brightcove.net/5718741494001/default_default/index.html?videoId=ref:5cebfe09-4414-452e-843d-7278468f5632#__youtubedl_smuggle=%7B%22geo_countries%22%3A+%5B%22JP%22%5D%7D
[debug] Using fake IP 133.222.126.91 (JP) as X-Forwarded-For
[debug] Loading brightcove.5718741494001_default from cache
[brightcove:new] ref:5cebfe09-4414-452e-843d-7278468f5632: Downloading JSON metadata
ERROR: [brightcove:new] Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: Not Found>)
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 746, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/brightcove.py", line 908, in _real_extract
    json_data = self._download_json(api_url, video_id, headers=headers)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 1143, in download_content
    res = getattr(self, download_handle.__name__)(url_or_request, video_id, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 1101, in download_handle
    res = self._download_webpage_handle(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/adobepass.py", line 1367, in _download_webpage_handle
    return super()._download_webpage_handle(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 966, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 915, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/home/emmanuel/bin/yt-dlp/yt_dlp/networking/_urllib.py", line 398, in _send
    res = opener.open(urllib_req, timeout=self._calculate_timeout(request))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 521, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 630, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 559, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 639, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/extractor/common.py", line 902, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query, extensions))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 4175, in urlopen
    return self._request_director.send(req)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/networking/common.py", line 117, in send
    response = handler.send(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/networking/_helper.py", line 208, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/networking/common.py", line 340, in send
    return self._send(request)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/emmanuel/bin/yt-dlp/yt_dlp/networking/_urllib.py", line 403, in _send
    raise HTTPError(UrllibResponseAdapter(e.fp), redirect_loop='redirect error' in str(e)) from e
yt_dlp.networking.exceptions.HTTPError: HTTP Error 404: Not Found

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 4
  • Comments: 34 (15 by maintainers)

Commits related to this issue

Most upvoted comments

For people who don’t want to miss this week episodes you can continue using your current yt-dlp install and simply override the tver extractor using the following method until the PR is merged and pushed.

Edit:

Please see

https://gist.github.com/arabcoders/21162f44a99ba9ad96db28bc43fc83a0

The instructions in the GitHub issue on longer valid as i have to make sweeping changes to the internal tver.py to be compatible with yt-dlp streaks baseclass implementation.

The TS of the streaks.jp is encrypted by AES-128. The token of the manifest will be returned with the token if you request the streaks API.

i working through the code base so far i am able to download 1080 ts stream without encryption even though their manifest mention a key.

I’ve found a solution and the PR #12659 should fix it

arabcoders, thank you for your hard work.

I try using your modified yt-dlp with around 4 TVer videos and found it mistakenly selects an audio format of lower quality.

TVer videos on STREAKS seem to have 4 audio formats:

$ yt-dlp -F https://tver.jp/episodes/epkhujfaub
[TVer] Creating session
[TVer] Extracting URL: https://tver.jp/episodes/epkhujfaub
[TVer] epkhujfaub: Downloading episode info
[TVer] epkhujfaub: Downloading video info
[TVer] epkhujfaub: Downloading streaks.jp streams video info
[TVer] epkhujfaub: Downloading streaks.jp m3u8 information
[info] Available formats for epkhujfaub:
ID                                                    EXT RESOLUTION FPS |   FILESIZE   TBR PROTO | VCODEC        VBR ACODEC     MORE INFO
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
hls-ts_AUDIO-0_1-pro_50e5576194254f759a8cfba8ceac43e8 mp4 audio only     |                  m3u8  | audio only        unknown    [und] pro_50e5576194254f759a8cfba8ceac43e8
hls-ts_AUDIO-0_2-pro_50e5576194254f759a8cfba8ceac43e8 mp4 audio only     |                  m3u8  | audio only        unknown    [und] pro_50e5576194254f759a8cfba8ceac43e8
hls-ts_AUDIO-1_1-pro_50e5576194254f759a8cfba8ceac43e8 mp4 audio only     |                  m3u8  | audio only        unknown    [und] pro_50e5576194254f759a8cfba8ceac43e8
hls-ts_AUDIO-1_2-pro_50e5576194254f759a8cfba8ceac43e8 mp4 audio only     |                  m3u8  | audio only        unknown    [und] pro_50e5576194254f759a8cfba8ceac43e8
hls-704-0                                             mp4 640x360     30 | ~239.41KiB  705k m3u8  | avc1.42C01E  705k video only
hls-704-1                                             mp4 640x360     30 | ~239.41KiB  705k m3u8  | avc1.42C01E  705k video only
hls-1452-0                                            mp4 960x540     30 | ~493.44KiB 1452k m3u8  | avc1.4D401F 1452k video only
hls-1452-1                                            mp4 960x540     30 | ~493.44KiB 1452k m3u8  | avc1.4D401F 1452k video only
hls-2336-0                                            mp4 1280x720    30 | ~793.80KiB 2337k m3u8  | avc1.4D401F 2337k video only
hls-2336-1                                            mp4 1280x720    30 | ~793.80KiB 2337k m3u8  | avc1.4D401F 2337k video only
hls-3404-0                                            mp4 1920x1080   30 | ~  1.13MiB 3404k m3u8  | avc1.640028 3404k video only
hls-3404-1                                            mp4 1920x1080   30 | ~  1.13MiB 3404k m3u8  | avc1.640028 3404k video only

All the bitrates of the audio formats are unknown, and maybe for that reason, the last format ...-1_2-... is selected:

$ yt-dlp https://tver.jp/episodes/epkhujfaub
[TVer] Creating session
[TVer] Extracting URL: https://tver.jp/episodes/epkhujfaub
[TVer] epkhujfaub: Downloading episode info
[TVer] epkhujfaub: Downloading video info
[TVer] epkhujfaub: Downloading streaks.jp streams video info
[TVer] epkhujfaub: Downloading streaks.jp m3u8 information
[info] epkhujfaub: Downloading 1 format(s): hls-3404-1+hls-ts_AUDIO-1_2-pro_50e5576194254f759a8cfba8ceac43e8
(snip)

But the best quality are ...-0_1-... and ...-0_2-....

I downloaded all the audio formats:

yt-dlp -f 'mergeall[vcodec=none]' --audio-multistreams -k https://tver.jp/episodes/epkhujfaub

And I found out that:

  • 0_1 and 0_2 are identical and 1_1 and 1_2 are identical.
  • The 0_N formats have a bitrate of 164 kb/s and a filesize of 55 MB.
  • The 1_N formats have a bitrate of 125 kb/s and a filesize of 42 MB.

Do you all have any ideas to solve the problem?

P.S. The bitrates of TVer videos on Brightcove also unknown, but that doesn’t cause any trouble if you just download with the default, because yt-dlp selects the best format that contains both video and audio, whose bitrate is known.

Sadly the m3u8 manifest itself lacks the information about the audio streams, Alternatively we can probably assign static value for each stream but i fear the streams may change order and screw things up.

Unless someone smarter than me comes up with a solution i am afraid i can’t see a alternative solution to this problem.

In the following episodes, an error will occur if items are missing. https://tver.jp/episodes/ep96tetkl1

ERROR: ‘list’ object has no attribute ‘items’

Indeed sorry that was oversight on my part. i have pushed fix re-download the updated file and it should work now.

We appreciate your prompt support. The significant problem with Tver is now fixed. On another note, we are encountering an error with the following command, which was working before.

yt-dlp --print title https://tver.jp/episodes/epc6q9rij5 ERROR: [TVer] epc6q9rij5: Requested format is not available. Use --list-formats for a list of available formats

Is there a possibility that this is connected to the Tver issue?

The issue with the -f, --format that you have set in your config file most likely as the command is working for me

$ yt-dlp --print title https://tver.jp/episodes/epc6q9rij5
相続探偵 第10話(最終話)「遺言書が導く未来」

Image

a few hours ago , It’s worked so well ! Now, I can’t download tver. It’s don’t change from brightcove to streaks ! Even I deleted and re-download arabcoders’s tver.py It’s keep say ModuleNotFoundError. I don’t understand

How to fix it ! Please help me ! Thank you

please refer to this comment https://github.com/yt-dlp/yt-dlp/issues/12643#issuecomment-2744686104

We can add extract-specific audio quality similar to a1b4ac2

i fear the streams may change order and screw things up

Indeed, but we can always fix it when it happens. It’s better than consistently using the worst format (at the moment).

I have fixed the order using static value as requested https://github.com/yt-dlp/yt-dlp/pull/12659/commits/2b39e34b3f7cc15ce844b132ebd02b3f6b51f739

arabcoders, thank you for your hard work.

I try using your modified yt-dlp with around 4 TVer videos and found it mistakenly selects an audio format of lower quality.

TVer videos on STREAKS seem to have 4 audio formats:

$ yt-dlp -F https://tver.jp/episodes/epkhujfaub
[TVer] Creating session
[TVer] Extracting URL: https://tver.jp/episodes/epkhujfaub
[TVer] epkhujfaub: Downloading episode info
[TVer] epkhujfaub: Downloading video info
[TVer] epkhujfaub: Downloading streaks.jp streams video info
[TVer] epkhujfaub: Downloading streaks.jp m3u8 information
[info] Available formats for epkhujfaub:
ID                                                    EXT RESOLUTION FPS |   FILESIZE   TBR PROTO | VCODEC        VBR ACODEC     MORE INFO
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
hls-ts_AUDIO-0_1-pro_50e5576194254f759a8cfba8ceac43e8 mp4 audio only     |                  m3u8  | audio only        unknown    [und] pro_50e5576194254f759a8cfba8ceac43e8
hls-ts_AUDIO-0_2-pro_50e5576194254f759a8cfba8ceac43e8 mp4 audio only     |                  m3u8  | audio only        unknown    [und] pro_50e5576194254f759a8cfba8ceac43e8
hls-ts_AUDIO-1_1-pro_50e5576194254f759a8cfba8ceac43e8 mp4 audio only     |                  m3u8  | audio only        unknown    [und] pro_50e5576194254f759a8cfba8ceac43e8
hls-ts_AUDIO-1_2-pro_50e5576194254f759a8cfba8ceac43e8 mp4 audio only     |                  m3u8  | audio only        unknown    [und] pro_50e5576194254f759a8cfba8ceac43e8
hls-704-0                                             mp4 640x360     30 | ~239.41KiB  705k m3u8  | avc1.42C01E  705k video only
hls-704-1                                             mp4 640x360     30 | ~239.41KiB  705k m3u8  | avc1.42C01E  705k video only
hls-1452-0                                            mp4 960x540     30 | ~493.44KiB 1452k m3u8  | avc1.4D401F 1452k video only
hls-1452-1                                            mp4 960x540     30 | ~493.44KiB 1452k m3u8  | avc1.4D401F 1452k video only
hls-2336-0                                            mp4 1280x720    30 | ~793.80KiB 2337k m3u8  | avc1.4D401F 2337k video only
hls-2336-1                                            mp4 1280x720    30 | ~793.80KiB 2337k m3u8  | avc1.4D401F 2337k video only
hls-3404-0                                            mp4 1920x1080   30 | ~  1.13MiB 3404k m3u8  | avc1.640028 3404k video only
hls-3404-1                                            mp4 1920x1080   30 | ~  1.13MiB 3404k m3u8  | avc1.640028 3404k video only

All the bitrates of the audio formats are unknown, and maybe for that reason, the last format ...-1_2-... is selected:

$ yt-dlp https://tver.jp/episodes/epkhujfaub
[TVer] Creating session
[TVer] Extracting URL: https://tver.jp/episodes/epkhujfaub
[TVer] epkhujfaub: Downloading episode info
[TVer] epkhujfaub: Downloading video info
[TVer] epkhujfaub: Downloading streaks.jp streams video info
[TVer] epkhujfaub: Downloading streaks.jp m3u8 information
[info] epkhujfaub: Downloading 1 format(s): hls-3404-1+hls-ts_AUDIO-1_2-pro_50e5576194254f759a8cfba8ceac43e8
(snip)

But the best quality are ...-0_1-... and ...-0_2-....

I downloaded all the audio formats:

yt-dlp -f 'mergeall[vcodec=none]' --audio-multistreams -k https://tver.jp/episodes/epkhujfaub

And I found out that:

  • 0_1 and 0_2 are identical and 1_1 and 1_2 are identical.
  • The 0_N formats have a bitrate of 164 kb/s and a filesize of 55 MB.
  • The 1_N formats have a bitrate of 125 kb/s and a filesize of 42 MB.

Do you all have any ideas to solve the problem?

P.S. The bitrates of TVer videos on Brightcove also unknown, but that doesn’t cause any trouble if you just download with the default, because yt-dlp selects the best format that contains both video and audio, whose bitrate is known.

I tried using the new extractor but I’m getting this error:

Error while importing module ‘yt_dlp_plugins.extractor.tver’ Traceback (most recent call last): File “C:\yt-dlp\yt-dlp-plugins\tver\yt_dlp_plugins\extractor\tver.py”, line 4, in from .common import InfoExtractor ModuleNotFoundError: No module named ‘yt_dlp_plugins.extractor.common’

I even tried making a common extractor folder using the same layout and common.py from the main branch and using the recommended appdata location for the plugin.

Yeah, sorry i had to make the tver extractor use relative imports like the other extractors, which means it will no longer works directly from plugins, So, do the following to get it to work

Replace

from .common import InfoExtractor
from ..utils import (

to

from yt_dlp.extractor.common import InfoExtractor
from yt_dlp.utils import (

Edit: this no longer valid please see https://gist.github.com/arabcoders/21162f44a99ba9ad96db28bc43fc83a0

Hi , I don’t expert about coding, I put yt-dlp.exe in drive d and can’t find .config\yt-dlp\plugins\tver\yt_dlp_plugins\extractor I’m already download tver.py Please teach me how to override the tver extractor.

Please help ! Thank you

You can also put it into your portable yt-dlp folder in the following location: \your-yt-dlp-folder\yt-dlp-plugins\tver\yt_dlp_plugins\extractor\tver.py

We can add extract-specific audio quality similar to https://github.com/yt-dlp/yt-dlp/commit/a1b4ac2b8ed8e6eaa56044d439f1e0d00c2ba218

i fear the streams may change order and screw things up

Indeed, but we can always fix it when it happens. It’s better than consistently using the worst format (at the moment).