ZMC CLI client missing option 'r'

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
scheen
Posts: 3
Joined: Tue Jul 13, 2021 9:03 am

ZMC CLI client missing option 'r'

Post by scheen »

Hi

I might be missing something obvious...

I am trying to debug my problems of 1.36 on a new install on RPi 4 (viewtopic.php?f=43&t=31003)

I found out that the capture process can be run on the CLI

I tried
`zmc -r rtsp -H uname:pw@192.168.xxx.xxx -P 554 -p stream1`

However, that returns with
`zmc: invalid option -- 'r'`

That is surprising.

Any idea how I can test the zmc process?

Best
User avatar
iconnor
Posts: 3362
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: ZMC CLI client missing option 'r'

Post by iconnor »

Um.. there has never been an r option.

Typically (there are other more modern ways that I am unfamiliar with) to do this I do:

sudo su -s/bin/bash -c"zmc -m 1" www-data

replace the 1 with whatever id of the monitor.
shiruken
Posts: 1
Joined: Thu Dec 21, 2023 1:27 pm

Re: ZMC CLI client missing option 'r'

Post by shiruken »

Um.. there has been one since 1.2(nine)

https://manpages.ubuntu.com/manpages/xe ... zmc.8.html
User avatar
iconnor
Posts: 3362
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: ZMC CLI client missing option 'r'

Post by iconnor »

But never implemented in code..

I don't personally feel that this is useful... create the db entry, then run it with -m 1 as I advised above in 2021.

What I will do is fix the man page entry. I might be inclined to add a -u URL option, as that, and -d=/dev/video0 are about the only two useful ways to do this.

Unless someone else would like to step up and provide the code.
Post Reply