Topic: SVP4 auto disable by folder feature request
**Feature Request / Workaround Needed: Auto-disable SVP based on file directory**
Hi everyone,
I'm a lazy person by nature — I believe in automating as much as possible so I never have to think about it. And hey, it's the lazy ones who push the world forward!
I have a fairly specific workflow issue that I haven't been able to solve cleanly, and I'm hoping someone here has a solution or can point me in the right direction.
**My workflow:**
I download video files into a `Download` folder, where I work on syncing subtitles and adjusting the timeline. Once a file is properly subtitled and timed, I move it to a `SUBED` folder for regular viewing.
**The problems I'm running into:**
1. **SVP is unnecessary during subtitle work.** When I'm in the Download folder aligning subtitles, frame interpolation just gets in the way. I don't need SVP active there at all — only in the SUBED folder where I actually watch finished files.
2. **SVP causes stuttering during file moves between the two folders.** When I'm cutting and pasting files between Download and SUBED, SVP tries to process the video while the disk is busy with the file transfer. Since disk I/O for the move takes priority, playback stalls completely and I have to wait for the file transfer to finish before the next file plays properly.
Because of these two issues, I constantly find myself manually toggling "Pause SVP" from the tray menu, which I'd rather not do every single time.
**What I'd like:** A way for SVP to automatically disable itself when playing files outside a specified directory (e.g. anything not under `H:\SUBED`), and re-enable when playing from within that directory. Ideally this would work seamlessly without any manual intervention.
**What I've already tried:**
I attempted to implement this via an mpv Lua script using `observe_property("vf", ...)` to detect when SVP injects its VapourSynth filter and immediately remove it. The detection works correctly, but the approach feels fragile and hacky. I also tried calling the SVP HTTP API (`localhost:9901/rpc?func=setEnabled`), but couldn't get reliable results during active playback.
Is there a proper supported way to achieve directory-based SVP toggling? Any help appreciated.