Option --focus-on-open was removed: Replaced by --focus-on Error parsing option…
- User
Option --focus-on-open was removed: Replaced by --focus-on Error parsing option no-focus-on-open (option not found) /home/[user]/.config/mpv/mpv.conf:22: setting option no-focus-on-open='' failed. Error parsing option cache-default (option not found) /home/[user]/.config/mpv/mpv.conf:94: setting option cache-default='500000' failed. Error parsing option cache-backbuffer (option not found) /home/[user]/.config/mpv/mpv.conf:95: setting option cache-backbuffer='500000' failed. [protocol_hook] [protocol_hook] false [protocol_hook] [protocol_hook] /home/[user]/.config/mpv [protocol_hook] /home/[user]/.config/mpv [protocol_hook] /home/[user]/.config/mpv [protocol_hook] { ["cwd"] = ,["ipcMode"] = false,["proxy"] = ,["nogeometry"] = true,["stream_quality"] = best,} Resuming playback. This behavior can be disabled with --no-resume-playback. [auto_profiles] Applying auto profile: stream-no-ytdl [protocol_hook] not a mpv url: 1. Introduction.mp4 client removed during hook handling Can not open external file 1. Introduction.srt. Can not open external file 1. Introduction.srt. ● Video --vid=1 (h264 1280x720 30 fps) [default] ● Audio --aid=1 (aac 2ch 48000 Hz 128 kbps) [default] Using hardware decoding (nvdec). AO: [pipewire] 48000Hz stereo 2ch floatp VO: [gpu-next] 1280x720 cuda[nv12] Saving state. AV: 00:01:10 / 00:06:44 (17%) A-V: 0.000 [auto_profiles] Restoring profile: stream-no-ytdl Exiting... (Quit) warning: queue 0x77635c282010 destroyed while proxies still attached: wl_registry#71 still attached wl_registry#48 still attached fix any erros
Assistant
Based on the error messages, I'll help fix the deprecated and invalid options in the mpv.conf file. Here are the necessary changes:
- Replace the deprecated
no-focus-on-openwithfocus-on-open=no - Remove the invalid cache options and replace them with the current syntax
- Clean up the file structure
Here are the changes:
mpv.conf
python<<<<<<< #Cach su dung: Xoa # o doan #abc=xyz o dau dong de kich hoat nhung doan config mau include="~~/profiles.conf" sid=1 sub-auto=fuzzy sub-file-path=subtitles vo=gpu hwdec=no ########### # General # ########### # Custom config #Bat len neu muon giam giong PiP cua trinh duyet, geometry=x50% nen chuyen thanh geometry=x25% --ontop --no-border #Bat len neu muon tiep tuc xem video o thoi diem tat MPV save-position-on-quick=yes osd-on-seek=no osd-font-size=24 #osd-duration=100 keep-open=yes force-window=immediate focus-on-open=no #geometry=x50% #PiP giua man hinh geometry=25%x25%-10-10 #PiP goc duoi ben phai load-unsafe-playlists=yes user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0' force-seekable=yes hr-seek=yes hr-seek-framedrop=yes #screenshot-directory=~~/screens- Replace the deprecated