Jump to content


Photo
- - - - -

Dahua MJPEG Video Working in SPACE not HAIKU (iOS 11)


  • Please log in to reply
9 replies to this topic

#1 SierraTech

SierraTech

    Cocooner

  • Registered
  • PipPip
  • 15 posts

Posted 16 January 2018 - 04:09 PM

We have been a HAIKU users since 2012, and purchased Space when introduced.  HAIKU has been meeting our needs, until recently when we deployed Dahua Bullet Camera that uses RTSP protocol to access MJPEG stream.

 

Dahua  details of how to stream MJPG is limited, but does mandate the use of RTSP which HAIKU does not support.  Enrolled SPACE App into the OMNI PRO II controller, and noticed it does support RTSP protocol.  SPACE is nowhere near laid out as nice as HAIKU, but was able to setup MJPEG stream from Dahua Bullet Camera, which I could not do in HAIKU (no picture).  We ended up using VLC to test various streams and SubTypes until we got it working.

 

For Dahua IPC-HFW1320S Camera the mjpeg stream url is below:

 

rtsp://IP/cam/realmonitor?channel=1&subtype=0

 

Port 554

 

Stream Type = RTSP

 

Use subeType=1 for lower resolution.

 

Hope developer updates SPACE!

 

-Bob


Edited by SierraTech, 16 January 2018 - 04:38 PM.


#2 neillt

neillt

    Dedicated Cocooner

  • Registered
  • PipPipPip
  • 369 posts
  • Experience:guru
  • Hardware:HAI OmniPro II
  • Tech:UPB, ZigBee, 1-Wire, RadioRA2
  • Audio:Russound

Posted 16 January 2018 - 07:13 PM

Hey Bob.  The developer for Haiku, Space, and it's replacement has fallen off the face of the earth.  To my knowledge, no one has heard from him for almost 6 months now.

 

The internal forum they had for Alpha and Beta testing doesn't even work anymore.

 

But... have you tried this URL?  The iSpy Camera Database lists it as a valid MJPEG URL:

 

http://IP/axis-cgi/mjpg/video.cgi



#3 pete_c

pete_c

    Cocoonut

  • -=Gold Supporter=-
  • 8284 posts
  • Location:House
  • Experience:average
  • Software:Main Lobby, Open Source Automation
  • Hardware:HAI OmniPro II, Mi Casa Verde Vera, Ocelot
  • Tech:X10-PLC, X10-RF, UPB, INSTEON, Z-Wave, ZigBee, 1-Wire, xAP, xPL, ALC
  • Audio:Russound
  • Video:MythTV
  • CCTV:analog, ip, dvr
  • Phone:Asterisk, FreePBX, Ooma, POTS, VoIP via ISP

Posted 17 January 2018 - 01:42 PM

@Bob,

 

As mentioned above you do not want to use RTSP rather you want to utilize HTTP for MJPG streaming.

 

so it looks like this:

 

hxxp://my_cam_ip/axis-cgi/mjpg/video.cgi?camera=[CHANNEL]
hxxp://my_cam_ip/axis-cgi/mjpg/video.cgi?subtype=1

 

xx=tt



#4 SierraTech

SierraTech

    Cocooner

  • Registered
  • PipPip
  • 15 posts

Posted 18 January 2018 - 12:53 AM

@Pete & @Neil

 

Thank you for your reply.

 

I did try that and many other variations of URL to no avail on Monday and Tuesday. I decided to try SPACE because it supports RSTP.  I don't care for SPACE at all, too cartoonish.

 

It seems /axis-cgi/ would not work.  I found this as well in The iSpy Camera Database, and other variations to no avail. Camera-sdk.com also has /axis-cgi/. Others have /cgi-bin/ which I got to work in VLC using snapshot but no MJPEG.  I was attempting to reach stream on internal network. There were several other sites I found referring to various paths using HTTP but none seem to work. The Dahua Manual detailed that MJPEG is accessed using RSTP:// which led me to test with SPACE.

 

So sad that HAIKU was abandoned, it put SNAPLINK & SPACE to shame. 

 

I haven't given up attempting access MJPEG using HTTP, because SNAPSHOT worked, but I burned quite a few hours google searching possibilities to access MJPEG through HTTP.  I don't think /axis-cgi/ is valid for this camera (could be firmware version).

 

Thank you both for your insight!

 

-Bob



#5 pete_c

pete_c

    Cocoonut

  • -=Gold Supporter=-
  • 8284 posts
  • Location:House
  • Experience:average
  • Software:Main Lobby, Open Source Automation
  • Hardware:HAI OmniPro II, Mi Casa Verde Vera, Ocelot
  • Tech:X10-PLC, X10-RF, UPB, INSTEON, Z-Wave, ZigBee, 1-Wire, xAP, xPL, ALC
  • Audio:Russound
  • Video:MythTV
  • CCTV:analog, ip, dvr
  • Phone:Asterisk, FreePBX, Ooma, POTS, VoIP via ISP

Posted 18 January 2018 - 04:31 AM

Many times a CCTV camera vendor will provide a custom application that will work on Android, Windows or iOS mobile phones.  Typically I will chose that over a camera multiuse application mostly related to just function and remote access of the cameras.

 

It's odd that I see an axis-cgi directory in the camera. 

 

Here for my use with the Omnitouch / OmniPro 2 panel I needed to use both MJPEG and RTSP such that I went to utilizing ZM which is the CCTV server running in Linux. 



#6 SierraTech

SierraTech

    Cocooner

  • Registered
  • PipPip
  • 15 posts

Posted 18 January 2018 - 01:23 PM

@Pete
 
I tried to Telnet into camera to view directories (filesystem) but camera refuses Telnet connection on network (apparently closed by default). 
 
I tried hxxp ://IP/cgi-bin/configManager.cgi?action=setConfig&Telnet.Enable=true on the network but that didn't work (maybe I need to connect directly).
 
I'm attempting to see if axis-cgi directory exist.
 
HAIKU gives me the following error:
 
HTTP/1.1 404 Not Found
Please verify that the URL points to a valid MJPEG stream.
 
This has been frustrating to be sure (and time consuming).
 
-Bob

Edited by SierraTech, 18 January 2018 - 04:46 PM.


#7 SierraTech

SierraTech

    Cocooner

  • Registered
  • PipPip
  • 15 posts

Posted 18 January 2018 - 04:46 PM

@Pete

 

I tried to Telnet into camera to view directories (filesystem) but camera refuses Telnet connection on network (apparently closed by default). 

 

I tried http://IP/cgi-bin/co...net.Enable=true on the network but that didn't work (maybe I need to connect directly).

 

I'm attempting to see axis-cgi directory exist.

 

HAIKU gives me the following error:

 

HTTP/1.1 404 Not Found

Please verify that the URL points to a valid MJPEG stream.

 

This has been frustrating to be sure (and time consuming).

 

-Bob



#8 SierraTech

SierraTech

    Cocooner

  • Registered
  • PipPip
  • 15 posts

Posted 18 January 2018 - 04:51 PM

Hi Pete,

 

I found I can access (using VLC only) MJPEG using HTTP if MJPG is assigned to primary stream. 

 

HAIKU complains "Connection Closed"

 

The stream connection was unexpectedly closed.  The URL I used in VLC is:  http ://IP-ADDRESS/cgi-bin/mjpg/video.cgi?subtype=1

 

-Bob



#9 SierraTech

SierraTech

    Cocooner

  • Registered
  • PipPip
  • 15 posts

Posted 23 January 2018 - 05:52 PM

I used VLC to describe MJPEG CODEC (see below)

 

VLC Stream Dahua MJPEG CODEC Details W address

 

 

Not sure why when I point HAIKU to camera on local network I receive, "The stream connection was unexpectedly closed"

 

Any thoughts?

 

-Bob


Edited by SierraTech, 23 January 2018 - 05:56 PM.


#10 pete_c

pete_c

    Cocoonut

  • -=Gold Supporter=-
  • 8284 posts
  • Location:House
  • Experience:average
  • Software:Main Lobby, Open Source Automation
  • Hardware:HAI OmniPro II, Mi Casa Verde Vera, Ocelot
  • Tech:X10-PLC, X10-RF, UPB, INSTEON, Z-Wave, ZigBee, 1-Wire, xAP, xPL, ALC
  • Audio:Russound
  • Video:MythTV
  • CCTV:analog, ip, dvr
  • Phone:Asterisk, FreePBX, Ooma, POTS, VoIP via ISP

Posted 24 January 2018 - 08:33 AM

Well here for years have used VLC to validate my HD IP camera stuff.

 

Haiku working on the local LAN should be the same.

 

My whole approach though is different than yours and I do not utilize Haiku (never did).

 

I have always utilize VLC and ZM for my CCTV stuff.  ZM talks to anything and has never been proprietary.

 

Blue Iris is sort of set up this way except that it runs in Windows versus Linux.

 

As far as I know unless somebody is doing this today with Haiku and Dahua IPC-HFW1320S and OmniPro panel they could maybe respond here.

 

Understand that Haiku is no longer supported or updated.  CCTV today is way different than even 5 years ago.

 

Here utilize HD cams that talk to ZM and talk to the OmniPro video hub and HAI PCA board directly and concurrently such that I can see the CCTV on my OmniPro 5.7e screens, Homeseer HSTouch screens and ZM client screens.  All of this is internal with no Internet dependencies.

 

I would continue to tinker.  You are doing well having configured a VLC stream. 

 

I would maybe try an inbetween proxy for your Dahua cameras (open source that it'll run on an RPi maybe?)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users