Page 1 of 1

ZMC CLI client missing option 'r'

Posted: Tue Jul 13, 2021 4:14 pm
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

Re: ZMC CLI client missing option 'r'

Posted: Wed Jul 14, 2021 2:46 am
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.

Re: ZMC CLI client missing option 'r'

Posted: Thu Dec 21, 2023 1:30 pm
by shiruken
Um.. there has been one since 1.2(nine)

https://manpages.ubuntu.com/manpages/xe ... zmc.8.html

Re: ZMC CLI client missing option 'r'

Posted: Thu Dec 21, 2023 11:41 pm
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.