IP4M-1051 - ONVIF Mainstream and Substream are the same.

Have some questions or having issues with your IP Camera(s), Post them here for the mods and other users to assist you with.
DataMeister
Posts: 7
Joined: Sat Jul 11, 2020 11:00 pm

IP4M-1051 - ONVIF Mainstream and Substream are the same.

Postby DataMeister » Sat Jul 11, 2020 11:15 pm

The IP4M-1051 (with firmware 2.620.00AC000.3.R, Build Date 2019-12-18) seems to be sending the mainstream URL for both main and sub streams for ONVIF clients. Since my DVR disables motion detection on high resolution streams to save processing, it won't do motion record on this camera.

To verify it is a problem with the ONVIF profile, using ONVIF Device Manager when I go to "Profiles" and make sure MediaProfile_Channel1_MainStream is selected, in "Live video" I get a URL of:
rtsp://[CAMERA-IP]:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif

If I change to MediaProfile_Channel1_Substream1 and hit select then go back to "Live video" it should be showing the sub stream. Instead it is exactly the same as the main stream.
rtsp://[CAMERA-IP]:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif

It should be a subtype=1 in the substream profile.

jack7
Posts: 528
Joined: Tue May 29, 2018 7:46 pm

Re: IP4M-1051 - ONVIF Mainstream and Substream are the same.

Postby jack7 » Sun Jul 12, 2020 5:05 pm

In your DVR, are you using the RTSP command with subtype=1 to access your camera and it fails? RTSP or some DVR substream setting would be required to receive substream.

DataMeister
Posts: 7
Joined: Sat Jul 11, 2020 11:00 pm

Re: IP4M-1051 - ONVIF Mainstream and Substream are the same.

Postby DataMeister » Fri Jul 31, 2020 12:39 am

The substream is accessible and does play when configured properly.

Nx Witness and DW Spectrum (same software) use ONVIF for the settings (unless they have a brand specific driver). It's convoluted to try and enter a sub-stream URL manually in the DVR software and you lose other features like the two way audio and PTZ features.

So as far as the sub-stream being accessible, I can load the URL with subtype=1 into VLC player or the DVR software and it displays the stream. It seems the problem is mainly the ONVIF profile that is sending out the wrong info.

jack7
Posts: 528
Joined: Tue May 29, 2018 7:46 pm

Re: IP4M-1051 - ONVIF Mainstream and Substream are the same.

Postby jack7 » Fri Jul 31, 2020 10:55 am

I don't use DW but it looks like you could work out something using https://digital-watchdog.com/dwspectrum ... from_c.htm
and the other links on that page.

DataMeister
Posts: 7
Joined: Sat Jul 11, 2020 11:00 pm

Re: IP4M-1051 - ONVIF Mainstream and Substream are the same.

Postby DataMeister » Mon Aug 03, 2020 12:16 am

I don't use DW but it looks like you could work out something using https://digital-watchdog.com/dwspectrum ... from_c.htm
and the other links on that page.
Those two settings mentioned don't really affect setting a custom substream URL. They just prevent DWS from changing bitrate and a few other things automatically based on quality preferences.

It would be nice if the bug could get fixed in the ONVIF profile being served up by the camera. Can it be manually edited?

jack7
Posts: 528
Joined: Tue May 29, 2018 7:46 pm

Re: IP4M-1051 - ONVIF Mainstream and Substream are the same.

Postby jack7 » Mon Aug 03, 2020 2:51 pm

...
It would be nice if the bug could get fixed in the ONVIF profile being served up by the camera. Can it be manually edited?
I can change the ONVIF substream profile for a different Amcrest 4M camera using android ONVIFER app.
The first pic shows the substream profile where it has video encoder set to 2688x1520 resolution. I earlier set that resolution. Click pencil to change to 640x480 resolution. Second pic shows it changed. It works as expected in ONVIFER live view.
Maybe some program you used changed your substream profile, and it's not a bug.
Screenshot_20200803-141221_Onvifer.jpg
Screenshot_20200803-141221_Onvifer.jpg (185.66 KiB) Viewed 136 times
Screenshot_20200803-143455_Onvifer.jpg
Screenshot_20200803-143455_Onvifer.jpg (165.51 KiB) Viewed 136 times

DataMeister
Posts: 7
Joined: Sat Jul 11, 2020 11:00 pm

Re: IP4M-1051 - ONVIF Mainstream and Substream are the same.

Postby DataMeister » Fri Aug 07, 2020 12:39 am

I don't think it is something I did. It still occurs after factory defaulting.

Can you provide a link to the Android app? Searching ONVIFER doesn't return anything matching it exactly.

Also...

I'm not an ONVIF expert, but the SubStream profile looks partially right to me when viewing it in Onvif Device Manager. But the URL is spits out to whatever software is requesting it doesn't link to the Substream. So I'm not sure where that comes into play.

As you can see in the image here the SubStream profile has the encoder configuration set to 640x480.
Image

But then when you go to the live view of SubStream1 it shows a URL pulling the main stream instead of subtype=1.
Image

As I mentioned in the original post if you paste that URL and change subtype=1 into the DVR or something like VLC player it will pull the 640x480 substream.

jack7
Posts: 528
Joined: Tue May 29, 2018 7:46 pm

Re: IP4M-1051 - ONVIF Mainstream and Substream are the same.

Postby jack7 » Fri Aug 07, 2020 3:32 pm

I tried using my Amcrest cameras with ONVIF Device Manager just like you showed in the snapshots. Mainstream and substream worked as they should.
You could try contacting Amcrest Support if desired.
You could also try downgrading your 1051 firmware using the older firmware available at https://amcrest.com/firmwaredownloads
Or there's an even older 2018 version available at https://amcrest.com/forum/beta-testing- ... 12532.html
Beware that Amcrest firmware changes can be risky.
ONVIFER app is available on an android device from Google Store. I use a tablet most of the time.

DataMeister
Posts: 7
Joined: Sat Jul 11, 2020 11:00 pm

Re: IP4M-1051 - ONVIF Mainstream and Substream are the same.

Postby DataMeister » Sat Aug 08, 2020 9:07 am

I tried using my Amcrest cameras with ONVIF Device Manager just like you showed in the snapshots. Mainstream and substream worked as they should.
Yep. I have a couple IP4M-1026B cameras that also work as they should.


Return to “IP Cameras”

Who is online

Users browsing this forum: Google [Bot], Superpatpat and 7 guests