Is there a way to test my sw installation without cameras?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
User avatar
michaelbr
Posts: 25
Joined: Wed Apr 05, 2023 10:25 am

Is there a way to test my sw installation without cameras?

Post by michaelbr »

Is there a way to do a dummy test to see if there's a problem with my software installation? It seems to me that it's quite complex, like instead of a camera, use a file as video output of a camera to test the software installation.
Thanks for your comment/suggestion
Michael
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Is there a way to test my sw installation without cameras?

Post by dougmccrary »

Don't have a camera yet?
If you have a "smart" phone, there's apps that will make it an IP camera.
If you get to the welcome page and then the console, it's probably at least mostly right. :?
User avatar
michaelbr
Posts: 25
Joined: Wed Apr 05, 2023 10:25 am

Re: Is there a way to test my sw installation without cameras?

Post by michaelbr »

dougmccrary wrote: Mon Apr 10, 2023 7:52 am Don't have a camera yet?
If you have a "smart" phone, there's apps that will make it an IP camera.
If you get to the welcome page and then the console, it's probably at least mostly right. :?
Thanks for this tip, which one would you recommend, that works best with ZM?
Thanks for your comment/suggestion
Michael
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Is there a way to test my sw installation without cameras?

Post by dougmccrary »

You're welcome.
I've not used any of them, so why don't you pick one and if it gives you problems, I'll test it here and let you know if it works, or doesn't?
I have access to several droid and iOS devices.
User avatar
makers_mark
Posts: 20
Joined: Sun Jul 05, 2020 7:23 pm

Re: Is there a way to test my sw installation without cameras?

Post by makers_mark »

michaelbr wrote: Sun Apr 09, 2023 11:14 am Is there a way to do a dummy test to see if there's a problem with my software installation? It seems to me that it's quite complex, like instead of a camera, use a file as video output of a camera to test the software installation.
Yeah, with ffmpeg. I do it for a generated monitor that displays weather/alert data. Also to visualize audio from my lorex doorbell (been meaning to write a thread about that, alarms from audio are just crazy specific and has lots of use cases (just think, with zoneminder, how specific you can be when choosing your zones on a audio wave 'showcqt' where your zones are frequencies and you control the amplitude and color variation)).

Here is a simple rtp example to generate a monitor:

Code: Select all

ffmpeg -re -f lavfi -i testsrc=s=1280x720:r=20 -f rtp_mpegts -pix_fmt yuv420p  rtp://127.0.0.1:4004/
You can run this on the zoneminder server with that localhost:port config, or you can run it on another computer and substitute the IP address accordingly.
On the monitor setup in zoneminder choose source ffmpeg and do everything else like normal (source would be rtp://127.0.0.1:4004 here). This example uses a resolution of 1280x720 and is limited to 20fps (r=20). Take away that '-re' in this instance and ffmpeg will race as fast as allowed.

Check out this page, you can do anything on here (and way more, the skies the limit with ffmpeg) by adapting ffmpeg commands to your need. It's fun to play around with too.

http://trac.ffmpeg.org/wiki/FancyFilteringExamples
User avatar
michaelbr
Posts: 25
Joined: Wed Apr 05, 2023 10:25 am

Re: Is there a way to test my sw installation without cameras?

Post by michaelbr »

dougmccrary wrote: Mon Apr 10, 2023 10:37 pm You're welcome.
I've not used any of them, so why don't you pick one and if it gives you problems, I'll test it here and let you know if it works, or doesn't?
I have access to several droid and iOS devices.
Thanks so much for your help, I'll give it a try, since I'm newbie (lot of reading to do), it might take sometime to post it back.
Thanks for your comment/suggestion
Michael
User avatar
michaelbr
Posts: 25
Joined: Wed Apr 05, 2023 10:25 am

Re: Is there a way to test my sw installation without cameras?

Post by michaelbr »

Yeah, with ffmpeg. I do it for a generated monitor that displays weather/alert data. Also to visualize audio from my lorex doorbell (been meaning to write a thread about that, alarms from audio are just crazy specific and has lots of use cases (just think, with zoneminder, how specific you can be when choosing your zones on a audio wave 'showcqt' where your zones are frequencies and you control the amplitude and color variation)).

Here is a simple rtp example to generate a monitor:

Code: Select all

ffmpeg -re -f lavfi -i testsrc=s=1280x720:r=20 -f rtp_mpegts -pix_fmt yuv420p  rtp://127.0.0.1:4004/
You can run this on the zoneminder server with that localhost:port config, or you can run it on another computer and substitute the IP address accordingly.
On the monitor setup in zoneminder choose source ffmpeg and do everything else like normal (source would be rtp://127.0.0.1:4004 here). This example uses a resolution of 1280x720 and is limited to 20fps (r=20). Take away that '-re' in this instance and ffmpeg will race as fast as allowed.

Check out this page, you can do anything on here (and way more, the skies the limit with ffmpeg) by adapting ffmpeg commands to your need. It's fun to play around with too.

http://trac.ffmpeg.org/wiki/FancyFilteringExamples
[/quote]
Thanks for this tip, will give it a try.
Thanks for your comment/suggestion
Michael
Post Reply