I also added a timestamp feature (removed from the code above) so it would write to a different file. you’ll probably want to set up a batch file to start up your multiple instances. controlling multiple instances of a media player (say VLC) by one 'unified' hot-key command. (thank you Calvin) He is using them to stream to 4 zones in his house. The script would then kill the process and loop back to the start, restarting VLC. To my surprise, one of VLC Remote’s users showed me how you actually can run multiple copies of VLC and remote control them with VLC Remote. When you have the preferences window open, stay on the Interface tab, then go to the Playlist and Instances heading and place a tick in the Allow only one. If you click on 'Advanced Options' and then check 'Device Properties,' VLC will show which settings (exposure. You can also start multiple VLC instances to attempt simultaneous streams. Use wmctrl to displace the window or even use xdotool to send the required keys for that like a macro. Use wmctrl to get WID for each VLC windows and save them. If there was no change then the stream had disconnected. VLC can enumerate all of the cameras available from DirectShow, which is the same API that OpenCVs VideoCapture uses by default. Here one way but you can more advance with this, create a shell script doing this: Launch VLC instance through command line, save their PID's. Instead of checking for disconnecting I instead wrote a section of script to check the output file modification time every 10 minutes. I only last used it under OSX 10.4.11.Ģ) There is nothing you can do about disconnecting. Note: I don't know if this will work under a newer Applescript. Set pid to the result - capture process ID Set VLCcmmnd to VLCpath
0 Comments
Leave a Reply. |