At the moment I'm watching the various streams provided by BP of their ROVs working on the Deepwater Horizon site. I have 10 of them opened using vlc and a simple script.
This works fine but none of the windows have useful labels and I can't work out which stream is which.
As shown in the above image is there any way grab hold of the window and rename it from "VLC (X11 output)" to "Viking 1" or "Skandi 2" etc.
I'm using Ubuntu Jaunty with Compiz disabled.
Ok, I've found I can rename an existing window using wmctrl
But the windows can take a couple to a dozen or more seconds to appear depending how long the stream takes to start. They don't appear at all if the stream is currently down which makes the above approach tricky when trying to open lots of windows with identical names in parallel.
Is there a way to inject a name when executing the cvlc command?
Code:
cvlc http://mfile.akamai.com/97892/live/reflector:44287.asx?bkup=44668 &
cvlc http://mfile.akamai.com/97892/live/reflector:44838.asx?bkup=45135 &
...
This works fine but none of the windows have useful labels and I can't work out which stream is which.
As shown in the above image is there any way grab hold of the window and rename it from "VLC (X11 output)" to "Viking 1" or "Skandi 2" etc.
I'm using Ubuntu Jaunty with Compiz disabled.
Ok, I've found I can rename an existing window using wmctrl
Code:
wmctrl -r <window name> -T <new name>
wmctrl -r "VLC" -T "ROV - name"
But the windows can take a couple to a dozen or more seconds to appear depending how long the stream takes to start. They don't appear at all if the stream is currently down which makes the above approach tricky when trying to open lots of windows with identical names in parallel.
Is there a way to inject a name when executing the cvlc command?