Topic: [Tutorial] Use SVP with multiple MPV windows
(Note: this tutorial has only been tested on linux)
TLDR:
1) Copy this script to ~/.config/mpv/scripts/multiplesockets.lua
local utils = require 'mp.utils'
dir = "/tmp/mpvsockets"
os.execute("mkdir " .. dir)
id = 1
handle = io.popen("ls " .. dir)
while id == handle:read("*n") do
id = id + 1
end
handle:close()
socket = dir .. "/" .. id
mp.set_property("options/input-ipc-server", socket)
function on_shutdown()
os.remove(socket)
end
mp.register_event("shutdown", on_shutdown)
2) In svp settings, set the property main->setup->mpv to /tmp/mpvsockets/1;/tmp/mpvsockets/2;/tmp/mpvsockets/3
PS: Could we add this tutorial to the svp wiki ?