question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[TwitCastingLive] An extractor error has occurred. (caused by KeyError('llfmp4'))

See original GitHub issue

Checklist

Region

No response

Description

Since about a week ago I’m unable to watch live streams of one particular streamer. It worked before but no longer works. Other several streamers that I have tried at random off the front page seem to work just fine.

Streamlink is having the same issue https://github.com/streamlink/streamlink/issues/4281

Looks the JSON response for this streamer’s live stream is missing llfmp4 (what yt-dlp uses) and fmp4 (what streamlink uses) keys.

Verbose log

$ yt-dlp -Uv -o test.ts https://twitcasting.tv/054109
[debug] Command-line config: ['-Uv', '-o', 'test.ts', 'https://twitcasting.tv/054109']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2021.12.27 [6223f67a8]
[debug] Python version 3.9.2 (CPython 64bit) - Linux-5.10.0-8-amd64-x86_64-with-glibc2.31
[debug] exe versions: ffmpeg 4.3.2-0, ffprobe 4.3.2-0, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2021.12.27, Current version: 2021.12.27
yt-dlp is up to date (2021.12.27)
[debug] [TwitCastingLive] Extracting URL: https://twitcasting.tv/054109
[TwitCastingLive] Downloading live video of user 054109. Pass "https://twitcasting.tv/054109/show" to download the history
[TwitCastingLive] 054109: Downloading webpage
[debug] [TwitCasting] Extracting URL: https://twitcasting.tv/054109/movie/716611113
[TwitCasting] 716611113: Downloading webpage
[TwitCasting] 716611113: Downloading live info
ERROR: 716611113: An extractor error has occurred. (caused by KeyError('llfmp4')); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see  https://github.com/yt-dlp/yt-dlp  on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File ".pyenv/lib/python3.9/site-packages/yt_dlp/extractor/common.py", line 599, in extract
    ie_result = self._real_extract(url)
  File ".pyenv/lib/python3.9/site-packages/yt_dlp/extractor/twitcasting.py", line 104, in _real_extract
    for mode, ws_url in stream_server_data['llfmp4']['streams'].items():
KeyError: 'llfmp4'
Traceback (most recent call last):
  File ".pyenv/lib/python3.9/site-packages/yt_dlp/extractor/common.py", line 599, in extract
    ie_result = self._real_extract(url)
  File ".pyenv/lib/python3.9/site-packages/yt_dlp/extractor/twitcasting.py", line 104, in _real_extract
    for mode, ws_url in stream_server_data['llfmp4']['streams'].items():
KeyError: 'llfmp4'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".pyenv/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line 1353, in wrapper
    return func(self, *args, **kwargs)
  File ".pyenv/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line 1423, in __extract_info
    ie_result = ie.extract(url)
  File ".pyenv/lib/python3.9/site-packages/yt_dlp/extractor/common.py", line 629, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e, video_id=self.get_temp_id(url))
yt_dlp.utils.ExtractorError: 716611113: An extractor error has occurred. (caused by KeyError('llfmp4')); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see  https://github.com/yt-dlp/yt-dlp  on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
Lesmiscorecommented, Jan 10, 2022

I guess you can use cookies. (use --cookies-from-browser BROWSER or --cookies FILE) If it won’t work, you have to open new issues.

0reactions
nurupocommented, Jan 11, 2022

Works with cookies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

youtube_dl.utils.ExtractorError: An extractor error has occurred ...
ERROR: An extractor error has occurred. (caused by KeyError('media',)); please report this issue on https://yt-dl.org/bug .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found