Saturday 15 April 2017

VStarcam C7824WIP IP Camera - ONVIF, RTSP, OpenHAB, VLC, Raspberry Pi

All the commands to control the camera over HTTP.
Tilt, Video stream quality, InfraRed light, Save & Call preset positions, etc..

A very good IP camera overall.
Definitely not perfect, but for this price range, it will fulfill most of the purposes.
Very very well made.
VStarcam C7824WIP 720P
270° Horizontal (Pan), 80° Vertical (Tilt)
2-Way audio. Audio is loud and clear both ways.
Receiving audio from the camera is possible through RTSP to any VLC player or any ONVIF application.
Sending audio TO the camera, is only possible through their app (Eye4) or Internet Explorer..

- - - - - - - - - - - - - - - - -


Details:


The camera default login username/password is written on a sticker underneath.
Usually: admin/888888

The IP address is set to auto, so connect the camera to a network (with DHCPd active) with a cable first.
Lets assume the camera gets the IP: 192.168.1.XX
- - - - - - - - - - - - - - - - -

You can configure all settings by visiting: http://192.168.1.XX:81/
- - - - - - - - - - - - - - - - -

RTSP Stream:


For VLC and ONVIF you can connect to the video stream here:

rtsp://admin:888888@192.168.1.XX:10554/udp/av0_0
rtsp://admin:888888@192.168.1.XX:10554/udp/av0_1

the resolution will be 1280x720 in the first case, and 640x480 in the second.
Video encoding: H264
Audio:G.711 A-law

- - - - - - - - - - - - - - - - -

HTTP Stream:



http://192.168.1.XX:81/videostream.cgi?user=admin&pwd=888888
Video quality is VGA or QVGA
no Audio

- - - - - - - - - - - - - - - - -

The Commands:


to select VGA(640x360) http streaming:

http://192.168.1.XX:81/camera_control.cgi?user=admin&pwd=888888&param=15&value=0

to select QVGA(320x180) http streaming:

http://192.168.1.XX:81/camera_control.cgi?user=admin&pwd=888888&param=15&value=1

to switch IR light to AUTO (on):

http://192.168.1.XX:81/camera_control.cgi?user=admin&pwd=888888&param=14&value=0

to switch IR light to OFF:

http://192.168.1.XX:81/camera_control.cgi?user=admin&pwd=888888&param=14&value=1

to move the camera by ONE STEP:


UP:
http://192.168.1.XX:81/decoder_control.cgi?loginuse=admin&loginpas=888888&onestep=1&command=0

DOWN:
http://192.168.1.XX:81/decoder_control.cgi?loginuse=admin&loginpas=888888&onestep=1&command=2

LEFT:
http://192.168.1.XX:81/decoder_control.cgi?loginuse=admin&loginpas=888888&onestep=1&command=4

RIGHT:
http://192.168.1.XX:81/decoder_control.cgi?loginuse=admin&loginpas=888888&onestep=1&command=6


It's pretty simple, you just add login, password, command and value to the HTML.


LEFT_UP:    command=90
RIGHT_UP:   command=91
LEFT_DOWN:  command=92
RIGHT_DOWN: command=93
STOP:       command=1

If you set onestep=0 the camera will start moving to the given direction until it reaches the end, or you can send a STOP command:

UP_STOP:    command=1
DOWN_STOP:  command=3
LEFT_STOP:  command=5
RIGHT_STOP: command=7

This is useful to simulate a "joy-stick like" tilt handling..
You need to set a toggle, so when a direction button is pressed will send the move (with onestep=0) command, and when the button is released, a STOP command will be sent.

Re-Center the camera: command=25
VERTICAL_PATROL:      command=26
VPATROL_STOP:         command=27
HORIZONTAL_PATROL:    command=28
HPATROL_STOP:         command=29

There is memory option for 16 pre-set positions that you can recall at once.
Manually move the camera to the desired position and save it as position 1 with this command:
http://192.168.1.XX:81/decoder_control.cgi?loginuse=admin&loginpas=888888&command=30&onestep=0&sit=30

and recall it at any time with this command:
http://192.168.1.XX:81/decoder_control.cgi?loginuse=admin&loginpas=888888&command=31&onestep=0&sit=31

So on, you can use the 16 available memories:


        POS      VAR
SET      1        30
CALL     1        31
SET      2        32
CALL     2        33
....
SET     16        60
CALL    16        61

- - - - - - - - - - - - - - - - -

OpenHAB:


The camera can be fully controlled from OpenHAB.
In Sitemap you can create Switches with mappings, for example:

Switch item=Cam2_Qlty mappings=[0="VGA", 1="QVGA"]

and in Items you use these values to execute the commands:

Number  Cam2_Qlty  "Quality"  <HQ>  {http=">[*:POST:http://192.168.1.XX:81/camera_control.cgi?user=admin&pwd=888888&param=15&value=%2$s]"}

or

Number  Cam2_Qlty  "Quality"  <HQ>  {exec="*:curl \"http://192.168.1.XX:81/camera_control.cgi?user=admin&pwd=888888&param=15&value=%2$s\" "}

- - - - - - - - - - - - - - - - -

Raspberry Pi:


Install VLC on a headless Raspberry, insert a usb stick, and then initiate a 10 minutes recording:


vlc "rtsp://admin:888888@192.168.1.XX:10554/udp/av0_0" --sout=file/ts:/media/usb1/Recording/Cam2_$(date +"%Y%m%d%H%M%S").avi -I dummy --run-time=600 vlc://quit

You can trigger this recording with a motion sensor or a DHT22 temperature sensor, door contact, bluetooth or whatever..

- - - - - - - - - - - - - - - - -

Android:


Onvifer is an app that definitely worth checking. It will auto discover any ONVIF compatible camera but you can also manually add any older you may have.
You get full control over the camera, sound, recording, etc.
It will also work outside your LAN if you do the port forwarding for 81 and 10554 !!

- - - - - - - - - - - - - - - - -

Great quality




- - - - - - - - - - - - - - - - -

Thanks


If you found anything interesting here and you are considering buying this camera or any other, I would appreciate if you use these links.
It is the best price and service anyway..

No comments:

Post a Comment