ytdl_hook proxy works with yt-dlp, but mpv --stream-lavf-o http-proxy is not applied
os:win
### mpv Information
```bash
mpv v0.41.0-697-g13a3e3ad0 Copyright © 2000-2026 mpv/MPlayer/mplayer2 projects
built on May 29 2026 12:21:22
libplacebo version: v7.365.0 (v7.360.0-60-gb915882-dirty)
FFmpeg version: N-124675-g468a743af
FFmpeg library versions:
libavcodec 62.34.102
libavdevice 62.4.100
libavfilter 11.17.100
libavformat 62.18.100
libavutil 60.31.100
libswresample 6.4.100
libswscale 9.7.100
```
### Other Information
```text
- Windows version:
- GPU model, driver and version:
- Source of mpv:
- Latest known working version:
- Issue started after the following happened:
```
### Reproduction Steps
mpv --no-config --log-file=E:\mpv.log --ytdl-raw-options=proxy=http://127.0.0.1:7890 https://www.youtube.com/watch?v=qzlofvI4e7w
### Expected Behavior
mpv --no-config --log-file=E:\mpv.log --ytdl-raw-options=proxy=http://127.0.0.1:7890 https://www.youtube.com/watch?v=qzlofvI4e7w
### Actual Behavior
Expected behavior: mpv should have the stream-lavf-o proxy automatically set by ytdl_hook. However, for some reason, even when --stream-lavf-o=http-proxy=http://127.0.0.1:7890 is specified, it has no effect.
### Log File
[mpv.log](https://github.com/user-attachments/files/28416438/mpv.log)
### Sample Files
_No response_
### I carefully read all instruction and confirm that I did the following:
- [x] I tested and confirmed that the issue exists with the [latest release version](https://github.com/mpv-player/mpv/releases/latest) or newer.
- [x] I provided all required information including system and mpv version.
- [x] 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`.
- [x] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- [x] I attached the full, untruncated log file.
- [x] I attached the backtrace in the case of a crash.
0 条评论