christoph-heinrich / mpv-quality-menu

A userscript for MPV that allows you to change the streamed video and audio quality (ytdl-format) on the fly.
GNU General Public License v2.0
153 stars 4 forks source link

Unable to switch quality #34

Closed stl3 closed 10 months ago

stl3 commented 10 months ago

When I try to switch to another quality, it just reloads the video but the quality is still the one I have by default. My mpv.conf profile settings:

[youtubeR]
profile-desc="ytbr"
script-opts=ytdl_hook-ytdl_path=F:\Scoop\apps\yt-dlp\current\yt-dlp
ytdl-format="(bestvideo[width<=1920][fps<=60][vcodec^=vp9]+bestaudio[acodec^=opus])[protocol=http]/299+140/137+251/best/bestvideo+bestaudio"

mpv-shot0022

mpv-shot0023

Seems stuck to 299+140. Is something wrong with the way I've done my mpv.conf settings that is causing a conflict somewhere that whenever quality-menu.lua tries to reload the vid with the new quality settings it gets ignored and keeps using the one from my profile or is it something else that I've missed? Let me know if other details are needed. mpv v0.37.0-119-g0d47e484 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects built on Dec 24 2023 00:14:21

A few months back I updated to 4.1.1 from a version that did not even have a version set in the file (could be somewhere from 2022 or before). I only just noticed that it wasn't working now :o, appreciate any help.

Update: I simplified it to use ytdl-format="bestvideo[height<=1080][fps<=60]+bestaudio/best" and all is well now

christoph-heinrich commented 10 months ago

I wasn't able to reproduce it with your original example, but if it works now then I guess that's fine :smile: