P&T control problem with EasyN H3-10R H.264

Forum for questions and support relating to the 1.27.x releases only.
Locked
jHeron
Posts: 73
Joined: Sun Jun 16, 2013 5:06 pm

P&T control problem with EasyN H3-10R H.264

Post by jHeron »

I am trying to get the pan and tilt control working on a new EasyN H3-10R H.264 cam.
The only way I could get video streaming was via VLC, I think due to some authentication problem IIRC. I am using this address to get the H.264 stream:

Code: Select all

rtsp://admin:pass@192.168.1.4:554/11
And that is working great, however the control is not working at all with the same address.
Here are the steps I have taken so far:
1-Setup the IPCAM control script as documented here: http://www.zoneminder.com/wiki/index.php/Foscam_Clones
I set the 'Control Capability' for LibVLC under the edit settings.
2-under the Source->Control tab->Control Device I left blank
Control Address = rtsp://admin:perigee@192.168.1.4:554
This led to seg faults every time I tried a control which led to this post: https://github.com/troywill/foscam-zoneminder/issues/1
I made the change to the PM file as suggested (

Code: Select all

    #$self->{ua}->agent( "ZoneMinder Control Agent/" . ZM_VERSION );
    $self->{ua}->agent( "ZoneMinder Control Agent" );
)
And that got rid of the hang.
Now I get this error when I try a control:

Code: Select all

4-04-09 09:33:31.494570	zmcontrol	3069	ERR	Error check failed:'500 Can't connect to rtsp::80 (Bad hostname)'	zmcontrol.pl
.

I am not sure how to troubleshoot this. I looked through the script and cant see where its setting the port to 80.
I have tried all manner of address configurations and types with the same effect...
Any guidance here would be appreciated!
Cheers,
Jon
Last edited by jHeron on Thu Apr 10, 2014 2:29 am, edited 1 time in total.
jHeron
Posts: 73
Joined: Sun Jun 16, 2013 5:06 pm

Re: P&T control problem via VLC

Post by jHeron »

I have made some progress, the error above was simply from putting the rstp:// in the address.
However, I fired up the debugger in firefox and discovered that it is using completely different commands then the foscam clone script anyway's.
For example; to pan right the foscam clone script uses

Code: Select all

decoder_control.cgi?command=6&
While my internal cam software sends this to pan right:

Code: Select all

http://user:pass@xxx.xxx.x.xx:port/web/cgi-bin/I hi3510/ptzctrl.cgi?-step=0&-act=right
So now it appears I dont need VLC for the control script at all and 'remote' should work fine.
I am going to try and fix the script to work with these cams and will post here if I am successful...
Tomorrow is another day... :)
Any advice or comments are appreciated.
Cheers,
Jon
Locked