Skip to content

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

@jouven

Description

@jouven

Please check yt-dlp/yt-dlp#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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions