Upgrade from 1.34 to 1.36 - no longer able to click on remote rtsp cameras in Montage Review to show passthrough display

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
klui
Posts: 11
Joined: Wed Oct 26, 2016 11:16 pm

Upgrade from 1.34 to 1.36 - no longer able to click on remote rtsp cameras in Montage Review to show passthrough display

Post by klui »

Some background. I found out 1.36 was available a couple of days ago and upgraded on Ubuntu 18.04. It was difficult as remote monitor rtp/rtsp broke and I needed to use rtp/unicast. Performance was poor and I had to change my camera system's streaming fps so my cameras all display in Montage Review.

I have it mostly working like 1.34 but when I use Montage Review in 1.34 I typically click on a camera in Montage Review and a new window pops up that shows the stream with higher fps rates. Under 1.36 if I click on a camera I get a display where it says "No matching records found."

I don't want to save the cameras' stream on disk to review, I want to see the current camera's stream in a higher frame rate. Is this possible under 1.36?
User avatar
iconnor
Posts: 3313
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Upgrade from 1.34 to 1.36 - no longer able to click on remote rtsp cameras in Montage Review to show passthrough dis

Post by iconnor »

So that's a little weird, it is not doing that for me and it's the first report we've had of it. So let's dig in.

First off, what version of 1.36? You should be up to latest 1.36.31.
Second, let's be clear are you watching live view vs historical? Based on your words it sounds like yes, but let's be clear. Because click on a camera in live view should take you to the live watch view for that camera, but in historical mode it should take you to the event for that moment.

The No matching records found sounds like it is coming from boot-strap table which makes me think we are looking at an events list... but montage review doesn't have any links or code to go to the events list.
User avatar
iconnor
Posts: 3313
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Upgrade from 1.34 to 1.36 - no longer able to click on remote rtsp cameras in Montage Review to show passthrough dis

Post by iconnor »

I should say further that unless you are streaming from a jpeg snapshot source, you should transition to using the ffmpeg monitor type.
klui
Posts: 11
Joined: Wed Oct 26, 2016 11:16 pm

Re: Upgrade from 1.34 to 1.36 - no longer able to click on remote rtsp cameras in Montage Review to show passthrough dis

Post by klui »

Thanks for the reply. I never got notification through email and I just checked this thread.

I am on 1.36.31. I upgraded directly from the latest 1.34.x to 1.36.2x(?) through apt dist-upgrade. The following day I did another dist-upgrade because the VM was not responsive and went to 1.36.31. Maybe the initial upgrade didn't go according to plan?

I tried changing one of my camera sources to ffmpeg but it didn't help with the issue I'm experiencing although the camera does capture and I see the slower stream in montage.

My config for one camera. The resolution of the stream is actually 704x480 but if I change the capture resolution to that the monitor doesn't capture. It only works if I set to 720p.

General >
Server:none
Source:Remote
Function:Monitor

Source >
Protocol: RTSP
Method:RTP/Unicast
Hostname:user:pass@IP
Port:554
Path:/cam/realmonitor?channel=1&subtype=1
Target colorspace: 24 bit color
Capture resolution: 1280x720 720p

Storage >
Storage Area:Default
Save JPEGS:disabled
Video Writer:disabled

When I go to Montage Review (/zm/index.php?view=montagereview; I have web_compact_montage checked in Options > Web) I see all my cameras and if I open inspector, here's what it says for that table.

Code: Select all

<div id="monitors" style="height: 378.433px;">
<canvas id="Monitor3" title="3 QS-1-fd" style="border: 1px solid rgb(0, 0, 0); position: absolute; left: 0px; top: 0px;" monitor_id="3" width="238" height="134">No Canvas Support!!</canvas> (event) ... 
Here's (event)

Code: Select all

function clickMonitor(event) {
  var element = event.target;
  //var monitor_element = document.getElementById('Monitor'+monId.toString());
  var monId = element.getAttribute('monitor_id');
  var pos_x = event.offsetX ? (event.offsetX) : event.pageX - element.offsetLeft;
  var pos_y = event.offsetY ? (event.offsetY) : event.pageY - element.offsetTop;
  if (pos_x < element.width / 4 && pos_y < element.height / 4) {
    zoom(monId, 1.15);
  } else if (pos_x > element.width * 3 / 4 && pos_y < element.height / 4) {
    zoom(monId, 1 / 1.15);
  } else {
    showOneMonitor(monId, event);
  }
  return;
}
Clicking on the image, I get redirected to /zm/index.php?view=watch&mid=3. The display looks like the attached screenshot.
Screenshot 2022-10-20 150331.jpg
Screenshot 2022-10-20 150331.jpg (128.04 KiB) Viewed 537 times


Interestingly if I go to Montage, I get this
Screenshot 2022-10-20 151506.jpg
Screenshot 2022-10-20 151506.jpg (59.46 KiB) Viewed 537 times

I was trying the site using Microsoft Edge instead of Firefox and I got a "This plug-in isn't supported" in the live stream. Here's the feed definition

Code: Select all

<embed type="video/jpeg"
src="/zm/cgi-bin/nph-zms?mode=mpeg&amp;scale=100&amp;bitrate=150000&amp;maxfps=10&amp;format=jpeg&amp;monitor=3&amp;auth=13898d0fa71f400651ba39c1f806af70&amp;rand=1666304549" name="QS-1-fd" width="1280" height="720" autostart="1" autoplay="1" showcontrols="0" controller="0">
klui
Posts: 11
Joined: Wed Oct 26, 2016 11:16 pm

Re: Upgrade from 1.34 to 1.36 - no longer able to click on remote rtsp cameras in Montage Review to show passthrough dis

Post by klui »

The solution is in the B/W Options I need to set WEB_H_CAN_STREAM to "yes" from "auto." Now things (stream using MPEG/JPEG) work for both Firefox and Edge. Normal Montage works as well.
User avatar
iconnor
Posts: 3313
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Upgrade from 1.34 to 1.36 - no longer able to click on remote rtsp cameras in Montage Review to show passthrough dis

Post by iconnor »

Ok, I understand what's going on now. Sounds like you've solved it.

I need to rip all the old embedded aplet stuff out. No modern browser supports it anymore.

I will look into the 704x480 not capturing thing.... there can be issues when the width isn't divisible by either 16 or 32 or whatever. SOmetimes changes with ffmpeg version.

Isaac
Post Reply