Open ahaoboy opened 1 month ago
I don't remember toggle
had ever allowed to handle multi shaders.
change-list toggle
is documented to toggle a single item but vf toggle
is documented to accept several filters, so it is unclear if this was supposed to work.
It does seem to accept only one path, and even using an absolute path gives an error, so is there an alternative?
mp.command('change-list glsl-shaders toggle "C:/app/mpv-test/portable_config/shaders/Anime4K_Clamp_Highlights.glsl;C:/app/mpv-test/portable_config/shaders/Anime4K_Restore_CNN_VL.glsl"')
[file] Cannot open file 'C:/app/mpv-test/portable_config/shaders/Anime4K_Clamp_Highlights.glsl;C:/app/mpv-test/portable_config/shaders/Anime4K_Restore_CNN_VL.glsl': Invalid argument
Failed to open C:/app/mpv-test/portable_config/shaders/Anime4K_Clamp_Highlights.glsl;C:/app/mpv-test/portable_config/shaders/Anime4K_Restore_CNN_VL.glsl.
Why not merging cmds instead?
change-list glsl-shaders toggle A ; change-list glsl-shaders toggle B
I'm not sure, but do you have to use ; or : to separate the parameters?
change-list glsl-shaders toggle A ; change-list glsl-shaders toggle B
Thanks
I'm not sure, but do you have to use ; or : to separate the parameters?
Separators do not work This works
change-list glsl-shaders toggle A ; change-list glsl-shaders toggle B
mpv Information
Other Information
Reproduction Steps
Use shortcut key binding and script execution commands respectively. The shortcut key binding can be executed correctly, but the script execution error occurs
This problem only occurs after version 0.38. The script can run correctly in version 0.37.
From the error report, we can see that only the ~~ of the first shader path is processed.
Expected Behavior
All shader paths in script execution commands are processed correctly
Actual Behavior
Only the first path is processed
Log File
log.log
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.