I started VLC (with NDI plugin) in the command line using this Python code:
vlc = sp.Popen(["vlc", "-", "--aout", "NDI", "--vout", "NDI", url], shell=True)
(NDI is a video streaming network technology)
To stop the process i use:
sp.Popen(["taskkill", "/F", "/PID", vlc.pid, "/T"], shell=True)
I also have NDI network watcher (built into the Touchdesigner) which checks available NDI sources.
So here's the problem: when i use this Windows taskkill command to kill the VLC process, my watcher does not update the list of NDI sources. But if i just press the red cross in the opened VLC window, VLC closes and the list of sources is being updated properly.
So, what happens when i press this red cross? What is the difference between this action and taskkill
'ing?
The thing i want to achieve is to be able to simulate this red cross behavior using command line to update my NDI source list.