1.37.56~20240320111801-jammy - Unable to save monitor settings

Current Development version likely to have breaking changes
EK701
Posts: 24
Joined: Thu Feb 06, 2020 4:26 pm

Re: 1.37.56~20240320111801-jammy - Unable to save monitor settings

Post by EK701 »

iconnor wrote: Mon Mar 25, 2024 11:00 pm Uh oh. scale=1 in the zms cgi url... that would be 1%. Guess we should limit it. Play around with scale/width/height parameters I think the image is there, it's just too tiny to see.
Thanks I will look at the scale issue. Is that something set in the options page, or elsewhere?

Odd thing is I don’t remember making any changes, other than a version update, to create this problem.
dougmccrary
Posts: 1322
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: 1.37.56~20240320111801-jammy - Unable to save monitor settings

Post by dougmccrary »

Maybe shot in the dark, but is decoding NOT None on the source page?
EK701
Posts: 24
Joined: Thu Feb 06, 2020 4:26 pm

Re: 1.37.56~20240320111801-jammy - Unable to save monitor settings

Post by EK701 »

When trying to view a camera live stream, I am getting the following:

HTML code for the live stream:

Code: Select all

<img id="liveStream2" src="http://10.200.67.26:30002/zm/cgi-bin/nph-zms?mode=jpeg&amp;maxfps=&amp;scale=100&amp;state=1&amp;buffer=5&amp;monitor=2&amp;auth=6738bc51161cb0dbdda436c83c02e1e6&amp;user=admin&amp;rand=1711427447&amp;connkey=607805" alt="Driveway Entrance" style="height: 560px;">
Errors from the inspect object console:

Code: Select all

downloadable font: Glyph bbox was incorrect (glyph ids 33 55 62 81 82 83 84 87 88 89 90 112 119 120 123 139 159 162 164 166 178 184 185 217 218 272 273 274 275 279 281 284 290 291 292 309 310 319 321 323 326 329 330 331 332 333 334 339 341 347 349 351 352 353 354 357 358 361 366 367 370 371 414 431 436 444 445 458 460 464 465 483 505 508 511 514 516 517 518 520 521 538 539 546 568 574 579 580 585 586 594 596 599 602 603 616 618 622 627 629 630 633 634 638 643 645 651 654 665 675 685 686 688 691) (font-family: "FontAwesome" style:normal weight:400 stretch:100 src index:1) source: http://10.200.67.26/zm/fonts/fontawesome-webfont.woff2?v=4.7.0
unreachable code after return statement skins_classic_js_chosen_chosen.jquery-dark-1711295503.js:628:7
bottomLoc: 226.6999969482422 + (40.7 - 35.7) + 40.7=272.3999969482422 skins_classic_js_skin-dark-1711295503.js:655:11
newHeight = 1298 - 272.3999969482422 - 20.9=1046.5000030517579 skins_classic_js_skin-dark-1711295503.js:657:11
newWidth =  1830.4444498697917 container width: 2460 skins_classic_js_skin-dark-1711295503.js:665:11
newWidth = 1830.4444498697917 skins_classic_js_skin-dark-1711295503.js:672:11
Setting to closest: 50 instead of 60 skins_classic_js_skin-dark-1711295503.js:685:13
Setting to streaming: http://10.200.67.26:30002/zm/cgi-bin/nph-zms?mode=jpeg&maxfps=&scale=100&state=1&buffer=5&monitor=2&auth=6738bc51161cb0dbdda436c83c02e1e6&user=admin&rand=1711427447&connkey=607805 js_MonitorStream-dark-1711295503.js:283:15
Nothing found for #ptzToggle skins_classic_js_skin-dark-1711295503.js:926:13
bottomLoc: 1234.800048828125 + (40.7 - 35.7) + 40.7=1280.500048828125 skins_classic_js_skin-dark-1711295503.js:655:11
newHeight = 1298 - 1280.500048828125 - 1029=1046.499951171875 skins_classic_js_skin-dark-1711295503.js:657:11
newWidth =  1830.4443576388887 container width: 2460 skins_classic_js_skin-dark-1711295503.js:665:11
newWidth = 1830.4443576388887 skins_classic_js_skin-dark-1711295503.js:672:11
Setting to closest: 50 instead of 60 skins_classic_js_skin-dark-1711295503.js:685:13
Image stream has been stoppd! stopping streamCmd js_MonitorStream-dark-1711295503.js:54:13
Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data undefined
No ZM_DATETIME_FORMAT_PATTERN 20 skins_classic_views_js_watch-dark-1711295503.js:94:15
bottomLoc: 1234.800048828125 + (40.7 - 35.7) + 40.7=1280.500048828125 skins_classic_js_skin-dark-1711295503.js:655:11
newHeight = 829 - 1280.500048828125 - 1029=577.499951171875 skins_classic_js_skin-dark-1711295503.js:657:11
newWidth =  996.6665798611109 container width: 2460 skins_classic_js_skin-dark-1711295503.js:665:11
newWidth = 996.6665798611109 skins_classic_js_skin-dark-1711295503.js:672:11
Setting to closest: 33 instead of 32 skins_classic_js_skin-dark-1711295503.js:685:13
bottomLoc: 765.7999877929688 + (40.7 - 35.7) + 40.7=811.4999877929688 skins_classic_js_skin-dark-1711295503.js:655:11
newHeight = 829 - 811.4999877929688 - 560=577.5000122070312 skins_classic_js_skin-dark-1711295503.js:657:11
newWidth =  996.6666883680555 container width: 2460 skins_classic_js_skin-dark-1711295503.js:665:11
newWidth = 996.6666883680555 skins_classic_js_skin-dark-1711295503.js:672:11
Setting to closest: 33 instead of 32 skins_classic_js_skin-dark-1711295503.js:685:13
EK701
Posts: 24
Joined: Thu Feb 06, 2020 4:26 pm

Re: 1.37.56~20240320111801-jammy - Unable to save monitor settings

Post by EK701 »

And trying to play back an event:

HTML code:

Code: Select all

<video autoplay="" id="videoobj_html5_api" class="vjs-tech" style="transform: matrix(1, 0, 0, 1, 0, 0);" data-setup="{ &quot;controls&quot;: true, &quot;autoplay&quot;: true, &quot;preload&quot;: &quot;auto&quot;, &quot;playbackRates&quot;: [ 0,0.25,0.5,1,2,5,10,16], &quot;plugins&quot;: { &quot;zoomrotate&quot;: { &quot;zoom&quot;: &quot;1&quot;}}}" preload="auto" src="http://10.200.67.26:30002/zm/index.php?mode=mpeg&amp;format=h264&amp;eid=488561&amp;view=view_video&amp;auth=6738bc51161cb0dbdda436c83c02e1e6">
                  <source src="http://10.200.67.26:30002/zm/index.php?mode=mpeg&amp;format=h264&amp;eid=488561&amp;view=view_video&amp;auth=6738bc51161cb0dbdda436c83c02e1e6" type="video/mp4">
                  
                  Your browser does not support the video tag.
                  </video>
And the inspect console errors:

Code: Select all

All candidate resources failed to load. Media load paused. zm
Autoplay is only allowed when approved by the user, the site is activated by the user, or media is muted. video.js:6901:49
zoomrotate: [object CSS2Properties] videojs.zoomrotate.js:38:17
zoomrotate: [object CSS2Properties] videojs.zoomrotate.js:39:17
zoomrotate: undefined videojs.zoomrotate.js:40:17
zoomrotate: 1 videojs.zoomrotate.js:41:17
Uncaught (in promise) DOMException: The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The video could not be loaded, either because the server or network failed or because the format is not supported. 
Object { code: 4, message: "The video could not be loaded, either because the server or network failed or because the format is not supported." }
video.js:1409:19
downloadable font: OS/2: Bad sTypoLineGap, setting it to 0: -64 (font-family: "VideoJS" style:normal weight:400 stretch:100 src index:1) source: http://10.200.67.26/zm/skins/classic/js/font/vjs.woff
MouseEvent.mozPressure is deprecated. Use PointerEvent.pressure instead. video.js:486:11
MouseEvent.mozInputSource is deprecated. Use PointerEvent.pointerType instead. video.js:486:11
unreachable code after return statement skins_classic_js_chosen_chosen.jquery-dark-1711295503.js:628:7
unreachable code after return statement skins_classic_views_js_event-dark-1711295503.js:589:3
bottomLoc: 371.8500061035156 + (36 - 31) + 36=412.8500061035156 skins_classic_js_skin-dark-1711295503.js:655:11
newHeight = 1298 - 412.8500061035156 - 150=1035.1499938964844 skins_classic_js_skin-dark-1711295503.js:657:11
newWidth =  1840.2666558159722 container width: 1638.67 skins_classic_js_skin-dark-1711295503.js:665:11
newWidth = 1638.67 skins_classic_js_skin-dark-1711295503.js:672:11
Setting to closest: 50 instead of 53 skins_classic_js_skin-dark-1711295503.js:685:13
Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data undefined
bottomLoc: 1142.8499755859375 + (36 - 31) + 36=1183.8499755859375 skins_classic_js_skin-dark-1711295503.js:655:11
newHeight = 829 - 1183.8499755859375 - 921=566.1500244140625 skins_classic_js_skin-dark-1711295503.js:657:11
newWidth =  1006.4889322916666 container width: 1638.67 skins_classic_js_skin-dark-1711295503.js:665:11
newWidth = 1006.4889322916666 skins_classic_js_skin-dark-1711295503.js:672:11
Setting to closest: 33 instead of 33 skins_classic_js_skin-dark-1711295503.js:685:13
EK701
Posts: 24
Joined: Thu Feb 06, 2020 4:26 pm

Re: 1.37.56~20240320111801-jammy - Unable to save monitor settings

Post by EK701 »

@ioconnor any further ideas on this? It's still broken on 1.37.56~20240327130403-jammy.

Thanks!
EK701
Posts: 24
Joined: Thu Feb 06, 2020 4:26 pm

Re: 1.37.56~20240320111801-jammy - Unable to save monitor settings

Post by EK701 »

Looking in the zoneminder events folders, the jpg and mp4 files are all there and viewable from the shell, but trying to view the mp4 from the web interface fails. Viewing the jpgs works from the web interface.

Here is the error when I try to play the mp4 from the web interface:

Code: Select all

[Wed Mar 27 20:12:00.302894 2024] [php:error] [pid 2374] [client 10.200.67.60:53744] PHP Fatal error:  Uncaught Error: Call to undefined function int() in /usr/share/zoneminder/www/includes/functions.php:2433\nStack trace:\n#0 /usr/share/zoneminder/www/skins/classic/views/files.php(30): output_file()\n#1 /usr/share/zoneminder/www/index.php(260): require_once('...')\n#2 {main}\n  thrown in /usr/share/zoneminder/www/includes/functions.php on line 2433, referer: https://10.200.67.26/zm/index.php?view=files&path=%2Fhome%2Fzoneminder%2Fevents%2F1%2F2024-03-27%2F494059%2F494059-video.h264.mp4
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: 1.37.56~20240320111801-jammy - Unable to save monitor settings

Post by iconnor »

Interesting, yeah int() is invalid funny that it works here, must be a change to php.
Try changing it to (int)$range or intval($range)
EK701
Posts: 24
Joined: Thu Feb 06, 2020 4:26 pm

Re: 1.37.56~20240320111801-jammy - Unable to save monitor settings

Post by EK701 »

iconnor wrote: Thu Mar 28, 2024 1:03 pm Interesting, yeah int() is invalid funny that it works here, must be a change to php.
Try changing it to (int)$range or intval($range)
A change to (int)$range solved the apache php error. It looks like 1.37.56~20240328090302-jammy made this change.

Still having the issue of no thumbnail images on the console page and unable to view live or play back mp4 recordings.
Post Reply