mpv-player / mpv-player/mpv

mpv errors when yt-dlp works but prints an error to stderr

Open
#11,201 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scripting:ytdl-hook
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Please check https://github.com/yt-dlp/yt-dlp/issues/6082 and the comments.
Copy of the issue's text (in case it gets removed):
When using the option "--cookies-from-browser chromium" in linux without a keyring and no secretstorage module installed, yt-dlp WORKS but prints the following to stderr:
ERROR: secretstorage not available as the secretstorage module is not installed. Please install by running python3 -m pip install secretstorage
This breaks mpv integration, if I run e.g.:
mpv https://www.youtube.com/shorts/eaRGyahg15A
mpv fails with the following line:
[ytdl_hook] ERROR: secretstorage not available as the secretstorage module is not installed. Please install by running python3 -m pip install secretstorage [ytdl_hook] youtube-dl failed: unexpected error occurred Failed to recognize file format.
Because mpv encounters-reads an error in stderr, even if yt-dlp works anyway.

mpv is using the built-in "ytdl_hook", mpv version is 0.35.0
Should this be considered a bug?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the provided mpv command and inspect the built-in ytdl_hook behavior around yt-dlp stderr output. Review yt-dlp issue 6082 and its comments for the expected interaction. Done means mpv recognizes successful yt-dlp output even when yt-dlp reports the secretstorage warning on stderr.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.