@greengeek :-
Heh. Let me just put it this way; if you add together the multitude of USB ports this Pavilion desktop has, both front AND back.....then add the 7-port, self-powered hub into the mix.....it actually gives me a total of 15 usable ports!
The 7-port hub is a left-over from the old Compaq desktop, but it still functions as well as it ever did, so.....why not? You can never have too many USB ports; in my case, all my dongles plug into this. Keeps 'em tidy, and keeps 'em all together in the same place.
------------------------------------------------------
Anyways, I owe ya one for giving me a metaphorical "kick up the backside", mate. As I said, I have several cams tucked away in drawers & cupboards, here and there. I've been mulling over the concept of a utility to control multiple webcams for a couple of years, but just never seemed to get around to it.
This thread finally prompted me to get off my lazy backside and actually research what was needed to implement it... 
-----------------------------------------------------
I don't use VLC that much; mostly in a couple of older 32-bit Slackos I run. Just about every other Pup uses mPlayer, SMPlayer and/or MPV. So; I researched what was needed for mPlayer to deliver the goods, and came across a blog post that gave me the perfect command-line stanza to do just this. And I "borrowed" it...
Essentially, both cams use this same line in their individual scripts:-
Code: Select all
mplayer tv:// -tv driver=v4l2:device=/dev/video0:width=864:height=480:fps=25:outfmt=yuy2
You just modify the /dev/video 'identifier', and the window width and height to match preset resolutions for the individual camera. Experimentation shows that if you try to use a resolution that's NOT supported by the camera, mPlayer complains like a good 'un, and refuses to 'play ball'.
----------------------------------------------------
I've built a wee YAD-based GUI for the thing.....which I call "MultiCam". The launch script checks first to see if your Puppy has yad installed - not everybody does! - and if not, depending on your Pup's architecture a 'generic' 32-bit or 64-bit version of v0.40.0 is temporarily sym-linked into place for the duration of the session. This is removed again at close.
The GUI includes an "Identify" button. When you click on this, a small console window comes up & gives you a list of whatever video devices are found on your system. This helps you to get the correct /dev/video "x" number for each camera's script.
For the "Identify" button to work, you will need to install
....from your Pup's PPM. It's a tiny package, so nothing to worry about, but it includes the "v4l2-ctl" binary needed for this. In your case, you probably don't need this bit, because you already know what identifiers work for you.
As-is, it requires mPlayer on the system. For anybody using VLC, there's no reason they can't use the commands in your AppRun scripts. It should work either way. 
The usual scripts to be found in my portables will add a Menu entry IF one is wanted. I've also added an AppRun link to the 'LAUNCH' script, so it will function as a ROX-App, too.
--------------------------------------------------
I've got vague plans for using this in a "basic" home security system, so's I can have cams watching both front & back of the house. Just need to figure out the best way of setting the cameras up, and how they need to be wired-in....

Should you, or anyone else be interested, MultiCam-portable can be found at MediaFire, here:-
https://www.mediafire.com/folder/agj8tl2mctt8l/MultiCam
Usual caveats apply:-
Call it an early Xmas prezzie, Ian. Enjoy!
Mike. 