Skip to content

mpv:// protocol still doesn't work with encoded URI fragment, sometimes #16342

@CrendKing

Description

@CrendKing

mpv Information

mpv v0.40.0-112-gb3070d125 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on May 13 2025 00:25:49
libplacebo version: v7.350.0 (v7.349.0-66-g72fb3c6-dirty)
FFmpeg version: N-119465-g9980a0b9b
FFmpeg library versions:
   libavcodec      62.3.101
   libavdevice     62.0.100
   libavfilter     11.0.100
   libavformat     62.0.102
   libavutil       60.2.100
   libswresample   6.0.100
   libswscale      9.0.100

Other Information

- Windows version: 10.0.26100.4061
- GPU model, driver and version: NVIDIA GTX 2070 Super
- Source of mpv: https://github.com/shinchiro/mpv-winbuild-cmake/releases
- Latest known working version: Not sure
- Issue started after the following happened: Ever since I started to use mpv://

Reproduction Steps

Even with the encoded URI, I still only managed to make the mpv:// protocol work with Twitch VOD URLs, with the help of --script-opts=ytdl_hook-use_manifests=yes. Other sources such as Youtube doesn't work at all. Seems to be incompatibility with yt-dlp?

  1. mpv.exe --no-config "mpv://https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRJ16miAsnZw" => The protocol is either unsupported, or was disabled at compile-time.
  2. mpv.exe --no-config --script-opts=ytdl_hook-use_manifests=yes "mpv://https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRJ16miAsnZw" => Same error
  3. mpv.exe --no-config "mpv://https%3A%2F%2Fwww.twitch.tv%2Fvideos%2F2457215331" => Same error
  4. mpv.exe --no-config --script-opts=ytdl_hook-use_manifests=yes "mpv://https%3A%2F%2Fwww.twitch.tv%2Fvideos%2F2457215331" => Works!

Expected Behavior

All 4 should work.

Actual Behavior

Only 1 works.

Log File

1 (Youtube without opt).log
2 (Youtube with opt).log
3 (Twitch without opt).log
4 (Twitch with opt).log

Sample Files

No response

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions