MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Moderator: Forum moderators

Post Reply
User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

Afternoon, gang.

Now then... Am I the only one with a number of spare webcams kicking around? If you, too, have a bunch of these to spare, ever wondered what you could do with them? Well, here's summat to play around with....

Inspired by @greengeek 's MirrorCam and DrainCam thread, I decided it was time to take the bull by the horns, get off my lazy ass and finally attempt to crystallize an idea that had been knocking around the back of my (mostly) empty skull for quite a long time..... :)

So, here it is. Say hello to "MultiCam".

Image

-----------------------------------------

Using Tahr32 as he is, Ian decided to use VLC as his display "engine", since it's installed in Tahrpup OOTB. I looked at what he'd done, had a think, did a bit of research.....and came to the conclusion that, for me at least, mPlayer was probably the better option since I have it in just about every Puppy, given that so many 'front-ends' are built on top of it.

Then it was time to get to the 'meat of the matter'. How would I command mPlayer to do what I wanted..? The documentation for mPlayer is copious, to say the least. In fact, it's humungous.....which is hardly surprising, given that folks have been working on it for well over 20 years. It's like a small stack of Bibles; there are hundreds & hundreds of pages relating to mPlayer, all accessible from their main home page. And when it comes to specifying parameters, it's easily the equal of ffmpeg; literally every parameter has to be individually specified via a 'switch'.

To tell the truth, I quickly got lost. So I did what I always do under these circumstances; perused the Arch Linux wiki (brilliant resource!) in search of some clarification.....and very soon, I had a starting point from which to work.

Both of us have used the v4l2 driver. It's part of the UVC (USB Video Class) standard, which has been in, and supported by the kernel for ages. Hence should be available to all Puppians.

--------------------------------------

That starting point involves the use of the "tv://" command, which mPlayer can use to display the output from one of these TV tuner dongles that are now readily available. However, it also works for webcams, and the Arch Linux wiki gave a handful of working examples to try out. One of these did exactly what I wanted; displayed the output from a webcam within an mPlayer window. Perfect!

Using two launch scripts, suitably modified for the appropriate "/dev/videoX" identifier, let me display the output from two webcams, simultaneously, side-by-side on screen. After that, I ran into a wall; trying to display a 3rd one only resulted in a "green screen". This may be related to hardware; specifically, the GPU in use. My discrete Nvidia card lets me display two at the same time (but NOT three); Ian ran into the wall when trying to display the second one. I also hit the wall on the second one when running this on my recent acquisition, the Dell Latitude lappie. Anyway, being able to do stuff with at least two cams simultaneously proved the principle was workable, so that's what MultiCam currently does.

Then, it was time to think about capturing some of this output. By this time, I was beginning to be able to navigate my way around mPlayer's documentation, so some trials commenced (with help from the Arch wiki, again). This is, by necessity, a bit more complex; not only do you need to specify the video identifier for each camera, you also need to specify the audio input for whatever device you wish to record audio from, by running

Code: Select all

arecord -l

.....in a terminal, to list all capture devices attached to your system. And the "fun" doesn't stop there! mPlayer - like XVidCap, the screen capture app - uses the older OSS terminology; "/dev/audio'x'" instead of "hw:'x'" as given by ALSA.....because it dates back to the days when every piece of hardware on Linux was ALWAYS "/dev/something-or-other". And the devs have stuck with this, because you still find all this info in the /dev directory if you take a peek. Fortunately, the numbers always correspond, so it's just a matter of 'translating' the command, and substituting the appropriate device number.

-----------------------------

When selecting to record, a wee toolbar pops-up for each cam. You can 'Record', then 'Stop'. You can then 'Play' it back, and if satisfied, you can 'Save' the file. The only snag is that there's no way to add a 'monitor' display, so that you can see what you're recording; leastways, I cannot figure out how to achieve this. I'm not entirely certain whether mPlayer CAN record AND playback simultaneously, if I'm honest.

Recording does at least work; you just can't monitor it. Saving will save to a sym-linked directory in /root, called "MultiCam"; this is sym-linked in from the portable directory while the app is running; at close, that sym-link is removed.

I don't know of a way to make mPlayer record two streams at the same time.....so please don't ask!

------------------------------

I'm making this available at its present stage of development. It's functional, and usable. You WILL need to edit the various scripts to add your own device identifier numbers for audio and video. Two buttons on the GUI will let you identify video/audio devices; " Video* " lets you see what the /dev/video number is for each camera, and " Audio* " lets you identify your preferred audio source.

In the portable directory:-

  • /DATA/MEDIA/Cap1/Record is what you will need to edit for Camera 1's appropriate video/audio device numbers.

  • /DATA/MEDIA/Cap2/Record will need editing for Camera 2.

------------------------------

If anyone's interested, you can find it here (it's just a little too big to attach):-

https://www.mediafire.com/folder/agj8tl2mctt8l/MultiCam

Same as always:-

  • Download

  • Unzip

  • Put it anywhere you like. Outside the 'save' is better, since you also store recorded videos here, too

  • Click to launch, 'cos it's a ROX-App. Rt-clk->Look inside to access the contents for editing scripts, etc.

You can add a Menu-entry if one is required via the usual, included scripts. You'll find it under Menu->Multimedia.

Have fun with it..! :D

Mike. ;)

User avatar
Sofiya
Posts: 2226
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1456 times
Been thanked: 1490 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by Sofiya »

Wow, there's a whole "Smart Home" tracking system here. :thumbup:

KL
PUPPY LINUX Simple fast free

User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

Sofiya wrote: Mon Jan 02, 2023 4:41 pm

Wow, there's a whole "Smart Home" tracking system here. :thumbup:

@Sofiya :-

Heh. You say that, but you're not so far off the mark, TBH. I got the original idea when @rockedge started playing around with ZoneMinder, some years ago. I thought of trying to make something lightweight, using readily-available Puppy resources, which would permit of being used as at least a basic CCTV setup. Ideally, it would be customizable further at a later date if required.

This has made a start on it. It's entirely up to anyone else if they want to pick this up & run with it. I have no problem with that. Feel free!

Mike. ;)

User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

Hm. Well, now:-

@greengeek dropped me a PM earlier with a link to a very useful thread over at SuperUser, r.e., the issues he and I have encountered trying to get multiple displays going...

https://superuser.com/questions/431759/ ... s-in-linux

Seems it's an absolute minefield. It depends on multiple factors:-

  • If the webcam in question supports compression (i.e., either M-JPEG or H264; YUYV will not do for this to work)

  • What the maximum bitrate per USB bus is set to (and different OSs set this differently, too, via the v4l2 kernel module)

  • Resolution size

  • Frames per second

.....and various other factors that are SO complex it hurt my head trying to even get a grasp on them..! It ALSO varies from individual 'cam to individual 'cam, irrespective of whether they're made by the same manufacturer OR even if they both use the same chipset. Seems identical chips are NOT the same, despite what they'd have you believe.....it takes more than just matching silicon!

-----------------------------------

I've only tried this on the Latitude ATM, but if you recall I ran into the same "wall" Ian had, in that I couldn't get 2 cams to display simultaneously. Well, with much chopping & changing & alteration of various settings, I came up with the following results:-

1. Trying to display both cams on-screen @ 640x360 (apart from 320x240, this is the only other 'matching' resolution where the two cameras overlap), either would display singly, but both together gave me the "green screen" when trying to display the second one.

2. After experimentation, Cam1 @ 432x240 + Cam2 @ 320x240 equals.......success! :D (At least on the Dell. Time will tell on the Pavilion.) Running both at anywhere up to 25 FPS made no difference, they still displayed at the same time. Apparently, it all boils down to available total bandwidth PER USB bus.

I need to try for 3 cams on the main rig later, armed with this new info. It has a USB 2.0 bus AND a USB 3.0 bus.......and the 7-port, self-powered USB 2.0 hub appears to be comprised of a pair of 4-port hubs, "daisy-chained" together to create one with 7. So it'll probably entail more cable-swapping than on the previous attempt, too, and using both USB 2.0 AND USB 3.0 ports.

The HP has one hell of a lot of additional sheer GRUNT, vis-a-vis CPU, RAM, storage, etc.......yet it's anybody's guess whether or not available USB bus bandwidth varies significantly between a lappie and a desktop.

I'll keep y'all posted with results, as-and-when.

Mike. ;)

User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

Well, here's a quick update. By plugging 2 into the USB 2.0 ports - and hence, the USB 2.0 bus.....and by plugging the 3rd into a USB 3.0 port - so, of course, a different USB bus! - I've been able to get 3 cams displaying on the Pavilion. No "green screen". Yay!

[Click to enlarge:-]

Image

I've also redesigned the GUI, to make it more compact with all the additional buttons. Before anybody says it, for some reason, Camera 1 - the c920 HD 'Pro' - doesn't show in this screenie. It is, however, very definitely working in real-life.

EDIT:- Un-be-lievable! I dug out the very first webcam I ever bought, from Maplins; manual focus, max of 640x480, very basic picture quality.......just for the hell of it, I hooked this up to a second USB 3.0 port, and held my breath. Amazingly, mPlayer will display FOUR simultaneous streams from webcams, for very little CPU use; perhaps 3-4% total.

Which all goes to prove that it would be perfectly possible to use a bunch of webcams to set-up a basic home CCTV system. As I suspected...

I think @greengeek will be quite interested in this. :)

Mike. ;)

User avatar
Sofiya
Posts: 2226
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1456 times
Been thanked: 1490 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by Sofiya »

mikewalsh wrote: Wed Jan 04, 2023 2:00 am

n't show in this screenie. It is, however, very definitely working in real-life.

EDIT:- Un-be-lievable! I dug out the very first webcam I ever bought, from Maplins; manual focus, max of 640x480, very basic picture quality.......just for the hell of it, I hooked this up to a second USB 3.0 port, and held my breath. Amazingly, mPlayer will display FOUR simultaneous streams from webcams, for very little CPU use; perhaps 3-4% total.
Mike. ;)

It's really cool :thumbup2:

KL
PUPPY LINUX Simple fast free

Clarity
Posts: 3777
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1597 times
Been thanked: 512 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by Clarity »

I haven't had a moment to investigate this, but, I ask: Does this work for LAN based cameras (wired or wireless on the same subnet as the PC)?

Thanks in advance for your answer. I will test as soon as I can when I return home country.

User avatar
greengeek
Posts: 1378
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 525 times
Been thanked: 191 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by greengeek »

mikewalsh wrote: Wed Jan 04, 2023 2:00 am

EDIT:- Un-be-lievable! I dug out the very first webcam I ever bought, from Maplins; manual focus, max of 640x480, very basic picture quality.......just for the hell of it, I hooked this up to a second USB 3.0 port, and held my breath. Amazingly, mPlayer will display FOUR simultaneous streams from webcams, for very little CPU use; perhaps 3-4% total.

Just downloaded from the first post but the gui displays v0.3
(Would not display cam 2 as script seems to call it /dev/video2. Worked fine after changing that to /dev/video1)
Keen to try the latest. Looks good!
Can't wait to find my box of old cams.
Any chance of adding the version number to each upload? I am easily confused :-)

User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

@greengeek :-

Ian:-

You won't yet find the newest version, because I'm still in the middle of building it! I'm modifying the thing to allow for up to 4 supported cams, along with modifying the earlier GUI to give drop-down selectors for display & recording modes. Just to "tidy it all up", like, and cut down on too many buttons...

I'll post when v0.5 is available for download.

Mike. ;)

User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

Clarity wrote: Wed Jan 04, 2023 8:12 am

I haven't had a moment to investigate this, but, I ask: Does this work for LAN based cameras (wired or wireless on the same subnet as the PC)?

Thanks in advance for your answer. I will test as soon as I can when I return home country.

@Clarity :-

As it stands, no. It's not an option I have the slightest use for, so I haven't investigated it at all.

From what I understand, however, it should be possible. mPlayer IS capable of using a network URL as a streaming source, though you'd need to investigate how to actually implement this for yourself. This may point you in the right direction, specifically the -tv section?

http://www.mplayerhq.hu/DOCS/man/en/mpl ... ER%20ONLY)

I wasn't intending to turn this into an all-encompassing app for every possible eventuality. I'm only an amateur coder, after all.....and a pretty lousy one at that.

Mike. ;)

User avatar
greengeek
Posts: 1378
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 525 times
Been thanked: 191 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by greengeek »

Clarity wrote: Wed Jan 04, 2023 8:12 am

Does this work for LAN based cameras (wired or wireless on the same subnet as the PC)?

Some years ago Zigbert made a "pwebcam" pet for the purpose of displaying IP cameras.
And rockedge has done a lot of work with them. (Would his zoneminder pet suit your application?)

It's a little unfortunate that the term "webcam" confuses both IP cams and usb cams.

User avatar
rockedge
Site Admin
Posts: 6480
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2691 times
Been thanked: 2592 times
Contact:

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by rockedge »

I have almost ready 2 scripts that go together that will install Zoneminder on F96_4-radky6-CE. They are being updated from the Fosspup64-9.5 versions. ZM can handle as many USB and internal webcams as the host computer can alongside unlimited network cameras. Camera's can be streamed with or with out continuous recording or recording alarm events via motion detection. ZM is comfortable with one or 1000+ cameras. It runs great on Tahr-6.0.5 as it does in Xenial, Bionic and Fossapup. The overhead is not extreme. My scripts use Pkg-cli for the installation. And the existing Hiawatha web server is reconfigured and incorporated.

So far the tests look good.

User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

@greengeek :-

Version 0.5 now uploaded to MediaFire. Link as in post #1.

Usual caveats apply. Manual editing still required, though if you have Camera1/Camera2 & Cap1/Record:Cap2/Record scripts already set up & working from the previous version, you can just swap 'em over. No need to have to edit them again.

You'll find things have been moved around somewhat. The Camera1/Camera2 scripts are now in the '/DATA/DISPLAY/' directory, one level in.....and the 'Record' scripts now go in the appropriate 'Cap' directories in '/DATA/CAPTURE/RECORD/'.

Just trying to tidy up the mess of scripts it was turning into..! :D

Mike. ;)

User avatar
rockedge
Site Admin
Posts: 6480
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2691 times
Been thanked: 2592 times
Contact:

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by rockedge »

I am playing around with MultiCam and about to try the latest.

The result of the last Zoneminder installed on F96_4-radky6-CE. One webcam and one netcam ->

Screenshot(4).jpg
Screenshot(4).jpg (32.21 KiB) Viewed 1172 times
User avatar
greengeek
Posts: 1378
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 525 times
Been thanked: 191 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by greengeek »

mikewalsh wrote: Wed Jan 04, 2023 11:09 pm

Version 0.5 now uploaded to MediaFire. Link as in post #1.

Usual caveats apply. Manual editing still required, though if you have Camera1/Camera2 & Cap1/Record:Cap2/Record scripts already set up & working from the previous version, you can just swap 'em over. No need to have to edit them again.

Testing v0.5 now - looking good so far although I do have a question about the Camera-x scripts:

I know you said I should manually edit them but I am keen to understand how they work on your system?

For instance - if I look at the file DATA/DISPLAY/Camera1 I can see that it looks at /dev/video0. This works for me - my internal cam is at that location.
But when I look at DATA/DISPLAY/Camera2 script it appears to be looking at /dev/video2 (Why does this work on your system? Why would your second camera not be at /dev/video1 ?).
Also, the scripts for Camera3 and Camera4 appear to be identical - both of them look at /dev/video4

Works well for me once I map the cams as follows:
cam1 /dev/video0
cam2 /dev/video1

And once I find my other cams I expect the following mapping will work too:
cam3 /dev/video2
cam4 /dev/video3

Need to find my other cams...

User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

@greengeek :-

Mm. It seems to be kernel-related.

Fossapup64, Bionicpup64 & my 'daily driver', BK's old Quirky64 April 7.0.1, all use a 5-series kernel. All report double entries for each cam:-

  • Cam1 - video0 & video1

  • Cam2 - video2 & video3

  • Cam3 - video4 & video5

.....and so on. Fossapup64 ALSO sees a third entry for each cam; /dev/media 'something-or-other', this being Ubuntu's mount-point for any kind of external media/hardware. However, only the first entry of each 'pair' appear to work; if you try to use the second one, you'll get a complaint that the device doesn't, in fact, exist....

I've given up trying to figure THAT one out. I'm no kernel software 'engineer'.

------------------------------------------------------------

Xenialpup64 uses a 4-series kernel. It, and all the 32-bit Puppies in the kennels, see things as you would expect:-

  • Cam1 - video0

  • Cam2 - video1

  • Cam3 - video2

.....etc, etc.

You're seeing the 'video2' identifier for Camera 2 because I spend much of my time in Quirky64, and have done all the development work for MultiCam here. (Quirky64.....5-series kernel.....hence, double-entries.)

----------------------------------------------------------

The scripts for Cam 4 are simply duplicated from those for Cam3. The user will still need to identify each cam on their own system, and edit all their scripts accordingly. I can't pre-edit these ahead of time for everybody, simply because I don't know what Pup they're going to be running, whether 32- or 64-bit, what generation, what kernel (given what I said above about the 5-series), what camera, how many cameras, are they plugged into USB 2.0 or USB 3.0, do they have a microphone or not (and does the user want to use that microphone, or a different one?).......see what I mean?

Too many variables, and if this experiment has proven one thing to me, it's that nothing about computers functions quite the way you might think it would. Just because something functions in a particular way for YOU, doesn't follow that it'll work exactly the same for everybody else..... It even varies from one Pup to another running on the same machine.

There's a certain amount of manual effort involved in this. Like I replied to Clarity, I never intended to turn this into an all-singing, all-dancing app that covers EVERY eventuality. I'm a piss-poor coder when it comes down to it, and frequently amaze myself that I manage to make anything work AT ALL. I'm under no illusions as to what very few abilities I possess! :lol:

People like Fred, stemsee, Smokey01, Geoffrey, Barry himself (just for example).....I'm envious of these guys. They appear to be able to eat, sleep & think in code as naturally as most of us breathe. Yes, I KNOW "practice makes perfect".....but some folks have an instinctive ability with languages - and isn't coding a language? They've NEVER come easily to me.....

(*shrug*)

There ya go! We do what we can.... :)

Mike. ;)

User avatar
rockedge
Site Admin
Posts: 6480
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2691 times
Been thanked: 2592 times
Contact:

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by rockedge »

If a camera can generate more than one type of stream that might produce the double mount points. Many netcams will stream both a high res and a low res signal and the Microsoft webcam I believe is capable of both a high and low res stream.

Often on systems with many cameras to keep CPU loads lower, the low res stream will be on the monitor but if motion is detected the system will record the event using the high res stream

User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

Right, gang. Now then:-

Here's v0.7 of MultiCam-portable. I've been building & re-building most of the day from lunchtime onwards, following some info from greengeek, and as further ideas occurred to me & trials showed that certain things would work the way I wanted. :thumbup:

I've learnt about the 'source' command, which has multiple uses but, more than anything else, is mainly used for refreshing lists of variables. MultiCam now makes use of an editable 'device-mapping' list, which saves the need for editing files all over the place to suit your particular use-case (cheers for that, Ian!). It's also very simple to add new devices, etc, into the loop as & when required. All video & audio devices are now effectively 'auto-detected' at boot, and combined into a single hardware devices list. Via the use of variables, and also of /tmp, all functions now read from this one list as & when required. :)

(If you experience a 'green-screen' issue, and have the luxury of both USB 2.0 AND USB 3.0 ports, whichever one you've been using, try plugging the offending camera into the other type of USB, then re-trying again. In other words, if you've been plugged into USB 2.0, have added another cam and experience 'green-screen', try plugging that additional cam into USB 3.0 instead before retrying. Either that, or experiment with lower resolutions, because 'green-screen' is all down to available bandwidth. Lower resolutions, i.e., smaller windows, don't use anywhere near as much of it!)

----------------------------------------------

I'm probably not putting much more in the way of development into this, as it's already more 'polished' & 'finished' than I originally ever planned to make it. The new version is available from the link in post #1, as usual.....and I think many of you know the 'portable'-usage routine by now.

See what y'all think of it. It's a good first step toward creating a basic, budget home CCTV system if anyone's got a bunch of webcams kicking around and no idea what to do with 'em. Have fun! :D

Mike. ;)

User avatar
greengeek
Posts: 1378
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 525 times
Been thanked: 191 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by greengeek »

mikewalsh wrote: Sun Jan 08, 2023 11:50 pm

Here's v0.7 of MultiCam-portable.
See what y'all think of it. It's a good first step toward creating a basic, budget home CCTV system if anyone's got a bunch of webcams kicking around and no idea what to do with 'em. Have fun! :D

Very good. I like.
I am still having issues with failure to record - due to the audio syntax not matching my hardware for some reason I can't yet fathom - but all in all this is a useful utility.

If I had to request one function it would be the option to record video without audio. Reason being - my cams will be up in the air well away from the action and out of earshot. (If audio card issues stop successful recording as they do for me - then it's better to record video than nothing in my case).

Obviously there will be many situations where recording audio would be a necessity - but I think there is a good chance that my hardware may not be alone in stopping the record function due to audio mismatch. Are others not seeing this issue?

User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

greengeek wrote: Fri Jan 13, 2023 7:50 am
mikewalsh wrote: Sun Jan 08, 2023 11:50 pm

Here's v0.7 of MultiCam-portable.
See what y'all think of it. It's a good first step toward creating a basic, budget home CCTV system if anyone's got a bunch of webcams kicking around and no idea what to do with 'em. Have fun! :D

Very good. I like.
I am still having issues with failure to record - due to the audio syntax not matching my hardware for some reason I can't yet fathom - but all in all this is a useful utility.

If I had to request one function it would be the option to record video without audio. Reason being - my cams will be up in the air well away from the action and out of earshot. (If audio card issues stop successful recording as they do for me - then it's better to record video than nothing in my case).

Obviously there will be many situations where recording audio would be a necessity - but I think there is a good chance that my hardware may not be alone in stopping the record function due to audio mismatch. Are others not seeing this issue?

@greengeek :-

O-kay. I'll have a look into it. Leave it with me; it'll be some time after the weekend, I think. Or perhaps sooner; you never can tell!

Mike. ;)

User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

@greengeek :-

Well, it's done. In v0.8, you now get the choice to record either video AND audio, OR video-only. I think that's what you wanted to be able to do.......yes?

It's available at the usual link. Let me know if it works for you, please..! :thumbup:

Mike. ;)

User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

rockedge wrote: Thu Jan 05, 2023 3:14 pm

If a camera can generate more than one type of stream that might produce the double mount points. Many netcams will stream both a high res and a low res signal and the Microsoft webcam I believe is capable of both a high and low res stream.

Often on systems with many cameras to keep CPU loads lower, the low res stream will be on the monitor but if motion is detected the system will record the event using the high res stream

@rockedge :-

Well, I've been doing some reading-up on this phenomenon of double device nodes, Erik. It appears it's intentional; see reply here:-

https://askubuntu.com/questions/1171192 ... udev-rules

A patch was issued and appended to early releases of the 5-series kernel:-

https://git.kernel.org/pub/scm/linux/ke ... f66a86545a

.....which added a second device node that contains metadata, reporting on the first node! Hence why the second node doesn't produce a picture, because there's no actual video data there. What this DOES mean is that anyone wishing to set video devices to a specific /dev/videox point using, say, the device ID via udev-rules, will need to find a way to 'filter out' the second, essentially redundant node before the system can read it.......because until you do, the first device WILL always be /dev/video0, yet you cannot assign /dev/video1 to the second device because that node is already occupied reporting metadata for the first device!

Which is one BIG PITA....and a thoroughly pointless idea, as far as I'm concerned. I guess there's "method in the madness", but to me it's simply introduced yet another 'layer' of over-complexity. :roll: Especially with apps like multiCam, which doesn't have any use for all this additional metadata......but does want to use the 'wasted' device nodes! :x

Hardly surprising the kernel is 'ballooning', year-on-year.

Mike. ;)

User avatar
nilsonmorales
Posts: 177
Joined: Thu Dec 26, 2019 1:47 am
Location: El Salvador
Has thanked: 67 times
Been thanked: 105 times
Contact:

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by nilsonmorales »

--- Gettext added and translation in Spanish at 75%-- change

image-21.png
image-21.png (68.42 KiB) Viewed 1057 times

EDIT 11-3-2023
Now is 100% spanish translate
gettexted files here http://u.pc.cd/xoWctalK

Attachments
MultiCam-portable_NLS_es.pet
(4 KiB) Downloaded 39 times
Last edited by nilsonmorales on Sat Mar 11, 2023 4:48 pm, edited 2 times in total.
User avatar
mikewalsh
Moderator
Posts: 6115
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 779 times
Been thanked: 1951 times

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by mikewalsh »

@nilsonmorales :-

Thanks for that, mate. I'm quite surprised, TBH; I never really thought MultiCam was good enough to warrant anyone spending the time to put together translations for it!

The idea had been kicking around in the back of my head for years, but it wasn't until greengeek created a basic app along these lines that I decided it was time I did something about it......and then it got thrown together rather quickly!

I guess this means you like it, then.....or at least consider it useful? :)

Mike. ;)

User avatar
nilsonmorales
Posts: 177
Joined: Thu Dec 26, 2019 1:47 am
Location: El Salvador
Has thanked: 67 times
Been thanked: 105 times
Contact:

Re: MultiCam-portable - an app for displaying (and recording from) multiple webcams...

Post by nilsonmorales »

I can't translate an image please consider changing the 'about'

image-25.png
image-25.png (44.04 KiB) Viewed 989 times
Attachments
about.tar.gz
(8.29 KiB) Downloaded 38 times
Post Reply

Return to “Multimedia”