[Solved ]Can't add usb camera to Zoneminder master 1.35.5~20200714143209-focal

Previous development branch now released as 1.36
Locked
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

[Solved ]Can't add usb camera to Zoneminder master 1.35.5~20200714143209-focal

Post by bkjaya1952 »

Zoneminder master 1.35.5~20200714143209-focal
When I try to add USB camera monitor to ZM-Consol , I have got a popup message stating "Palette must be set to a valid value & Format must be set to a valid value" .
I have set Device format = 255 & Capture palette to 0
Last edited by bkjaya1952 on Sat Aug 29, 2020 4:09 pm, edited 1 time in total.
DVB Hardware
Posts: 201
Joined: Thu Jan 01, 2015 5:12 pm
Location: Rhode Island

Re: Can't add usb camera to Zoneminder master 1.35.5~20200714143209-focal

Post by DVB Hardware »

Pallet to me also means color ?
8 bit grey, 24, 36 bit color
did the camera work with a previous version of ZM

Jimmy
Linux Mint 21 Cinnamon Mariadb 10.6.x using Master 1.37.x latest always

DVB stands for Digital VIdeo Broadcasting , retired satellite downlink supplier
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Can't add usb camera to Zoneminder master 1.35.5~20200714143209-focal

Post by bkjaya1952 »

DVB Hardware wrote: Thu Jul 16, 2020 4:19 pm Pallet to me also means color ?
8 bit grey, 24, 36 bit color
did the camera work with a previous version of ZM

Jimmy
Yes ,It is possible with previous version of ZM , as you get letters in the cages of Device format and the Capture palette so that you can easily select . In the Zm master issued on 14/7 and 16/7 , in those cages you get only numbers .At present , I have created web cam monitor on zoneminder using the url of camera streaming using Motion Linux.
aparajit
Posts: 2
Joined: Tue Jul 21, 2020 5:37 am

Re: Can't add usb camera to Zoneminder master 1.35.5~20200714143209-focal

Post by aparajit »

Yes, same here with v1.35.5~20200716162846-focal
Small hake for now. :P
Click on browser Inspect option and find this.

Code: Select all

<tr>
  <td>Device Format</td>
  <td>
    <select name="newMonitor[Format]">
        <option value="PAL">255</option>
        <option value="NTSC">45056</option>
        <option value="PAL B">1</option>
        <option value="PAL B1">2</option>
        <option value="PAL G">4</option>
        <option value="PAL H">8</option>
        <option value="PAL I">16</option>
        <option value="PAL D">32</option>
        <option value="PAL D1">64</option>
        <option value="PAL K">128</option>
        <option value="PAL M">256</option>
        <option value="PAL N">512</option>
        <option value="PAL Nc">1024</option>
        <option value="PAL 60">2048</option>
        <option value="NTSC M">4096</option>
        <option value="NTSC M JP">8192</option>
        <option value="NTSC 443">16384</option>
        <option value="NTSC M KR">32768</option>
        <option value="SECAM B">65536</option>
        <option value="SECAM D">131072</option>
        <option value="SECAM G">262144</option>
        <option value="SECAM H">524288</option>
        <option value="SECAM K">1048576</option>
        <option value="SECAM K1">2097152</option>
        <option value="SECAM L">4194304</option>
        <option value="SECAM LC">8388608</option>
        <option value="ATSC 8 VSB">16777216</option>
        <option value="ATSC 16 VSB">33554432</option>
    </select>
    </td>
</tr>
For now manually alter values in browser Dev Tools (Chrome).For both "Device Format" and "Capture Palette".

Code: Select all

<select name="newMonitor[Format]">
    <option value="255">PAL</option>
    <option value="45056">NTSC</option>
    ---
</select>

Code: Select all

<select name="newMonitor[Palette]">
  <option value="0">Auto</option>
  <option value="1497715271">Grey</option>
  ---
</select>
Note: Only change the option that you need to select.
Attachments
Console.png
Console.png (49.67 KiB) Viewed 4601 times
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Can't add usb camera to Zoneminder master 1.35.5~20200714143209-focal

Post by bkjaya1952 »

aparajit wrote: Tue Jul 21, 2020 7:49 am Yes, same here with v1.35.5~20200716162846-focal
Small hake for now. :P
Hi aparajit
Thank you very much for providing us a good solution :D :D . Now the monitor is working !.
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Can't add usb camera to Zoneminder master 1.35.5~20200714143209-focal

Post by bkjaya1952 »

This problem has been solved by Mr. iconnor and included in the latest release of Zoneminder 1.35.5~20200721193536-focal . Now the USB Camera monitor can be added without any problem.
Last edited by bkjaya1952 on Tue Aug 18, 2020 12:26 pm, edited 2 times in total.
aparajit
Posts: 2
Joined: Tue Jul 21, 2020 5:37 am

Re: Can't add usb camera to Zoneminder master 1.35.5~20200714143209-focal

Post by aparajit »

Thanks. :D
Greg_Talyor
Posts: 34
Joined: Mon Aug 17, 2020 7:41 pm

Re: Can't add usb camera to Zoneminder master 1.35.5~20200714143209-focal

Post by Greg_Talyor »

I have the same problem here.

I'm quite certain that

Device Format = 255
Capture Palette = 0

are for correct for my webcam. When I try to save from Monitor > Source, Zoneminder 1.34.19 complains

Palette must be set to a valid value
Format must be set to a valid value

Same problem when I install afresh or upgrade from 1.34.16. Perhaps it was a trivial bug introduced somewhere in between.

With 1.34.16, it works just fine. My operating system is Debian 10.5 Buster.

Thanks all for your good work.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Can't add usb camera to Zoneminder master 1.35.5~20200714143209-focal

Post by knight-of-ni »

Make this change by hand to your system:
https://github.com/ZoneMinder/zoneminde ... f7e64d76ab

It'll be part of the 1.34.20 release, which will be "soon".
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Can't add usb camera to Zoneminder master 1.35.5~20200714143209-focal

Post by bkjaya1952 »

knight-of-ni wrote: Wed Aug 19, 2020 12:42 pm Make this change by hand to your system:
https://github.com/ZoneMinder/zoneminde ... f7e64d76ab

It'll be part of the 1.34.20 release, which will be "soon".
Thank you !
The error has aready been corrected in Zoneminder master 1.35.5~20200816200911-focal latest release .
Locked