Roku and Dahua: mainstream MJPEG for IPC-HDW5231R-ZE

John Mac

n3wb
Joined
Nov 26, 2017
Messages
7
Reaction score
2
Hi all
I have my IPC-HDW5231R-ZE happily added to my network and I use the Dahua app on my computer and Iphone. Both work well, BlueIris would be overkill for how I use this single camera (pointed at my backyard).


I would like to access my camera from my Roku attached to a Television; I am using the Roku App 'IP Camera Viewer (Pro)'.

I can view the image using this stream:

/cgi-bin/snapshot.cgi?chn=1

I suspect this is not the main stream as the view is quite pixelated.

So, does anyone have information on how to use the mainstream, or is there a better method on the Roku with Dahua cameras?

 

concord

Getting comfortable
Joined
Oct 24, 2017
Messages
663
Reaction score
739
Hi all
...

I can view the image using this stream:

/cgi-bin/snapshot.cgi?chn=1

I suspect this is not the main stream as the view is quite pixelated.

So, does anyone have information on how to use the mainstream, or is there a better method on the Roku with Dahua cameras?
I think you are using sub-stream 1 and not the main stream. You could try "0", i.e. /cgi-bin/snapshot.cgi?chn=0 However, you may need to change the main stream to MJPEG. Note also, MJPEG will only uses CBR. Try increasing the bit rate too.
 

bob2701

Getting comfortable
Joined
Jan 7, 2016
Messages
1,009
Reaction score
482
Location
Jersey Shore
Did you try Auto?

Or try this...
/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=onif

& is a ampersand
 

John Mac

n3wb
Joined
Nov 26, 2017
Messages
7
Reaction score
2
Did you try Auto?

Or try this...
/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=onif

& is a ampersand
Thank you, I did try auto and it finds a sub channel

I found the stream you suggested (/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=onif) and I think this is for a different version of the Dahua cameras.
 

concord

Getting comfortable
Joined
Oct 24, 2017
Messages
663
Reaction score
739
Did you check your cam to see if you change the main stream to mjpeg from H264? If so, then try /cgi-bin/snapshot.cgi?chn=0 as mentioned earlier, otherwise you are using the first sub-stream which is limited in resolution.
 

bob2701

Getting comfortable
Joined
Jan 7, 2016
Messages
1,009
Reaction score
482
Location
Jersey Shore
I have the same camera and that worked for me.
I don’t use it but remembered having purchased the app.
 

John Mac

n3wb
Joined
Nov 26, 2017
Messages
7
Reaction score
2
**Solved**

/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif

Thank you for all the suggestions; I got it working last night.

Unfortunately, I could not change the main stream to MJPEG; H264H is the only option.

Here is what worked for me.

I went into the Dahua IP settings page, (Network>>AccessPlatform>>ONVIF>>Authentication = "OFF")

From there, I was able to choose the automatic "ONVIF AutoConfig". That worked immediately.

Here is the stream info that it automatically configured: /cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif

This is exactly what Bob2701 suggested, I am not sure why it did not work when I entered it manually. With that said, I appreciate all the information suggested and provided. It is working great.
 
Top