Sample my camera.
My camera config:
Local rtsp access
rtsp://127.0.0.1/mpeg4
and
rtsp://127.0.0.1/mpeg4cif
writable energy safe nand /mnt/nand
http://ipeye.ru/firmware/client/hisilicon/arm-hisiv100-linux-uclibcgnueabi.run
/mnt/files/arm-hisiv100-linux-uclibcgnueabi.run -debug=0 -sleep=5s -http_camera_mode=1 -vendor=ipeye -config_dir=/mnt/nand/ -streams=rtsp://127.0.0.1/mpeg4,rtsp://127.0.0.1/mpeg4cif
A test run involves running a cloud client on an IP camera without booting into stored memory, and is typically used to debug the cloud. In the future, the cloud client is placed in the stored memory, and added to the device startup.
cat /proc/cpuinfoand pay attention to the line "CPU architecture", where your CPU architecture will be specified, often - 5TEJ, but in fact - ARM5.
cloud_linux_arm_v5.run
wget http://ipeye.ru/firmware/client/cloud_linux_arm_v5.run
chmod 777 cloud_linux_arm_v5.run
rtsp://127.0.0.1/mpeg4and
rtsp://127.0.0.1/mpeg4cif
./cloud_linux_arm_v5.run -http_camera_mode=1 -streams=rtsp://127.0.0.1/mpeg4,rtsp://127.0.0.1/mpeg4cif
The procedure of real integration is slightly different from the test run, in this case, the cloud file is written to the autoload of camera, and is placed not in temporary memory, but in the stored non-volatile nand-flash memory.
cat /proc/cpuinfoand pay attention to the line "CPU architecture", where your CPU architecture will be specified, often - 5TEJ, but in fact - ARM5.
cloud_linux_arm_v5.run
chmod 777 cloud_linux_arm_v5.run
rtsp://127.0.0.1/mpeg4and
rtsp://127.0.0.1/mpeg4cif
/mnt/falsh/cloud/cloud_linux_arm_v5.run -sleep=5s -http_camera_mode=1 -config_dir=/mnt/flash/productinfo/ -streams=rtsp://127.0.0.1/mpeg4,rtsp://127.0.0.1/mpeg4cifwhere:
Implemented by example http://deviceIP:8282, the only point is how to obtain flow data, which can be implemented in two ways.
<script> function add(actionid){ $("#b"+actionid).attr("disabled", true); jdata = ` + json + ` //data from either a file or a device port, an array of threads var dataToSend = { 'action':'add', 'login':$("#login").val(), 'password':$("#password").val(), 'data': JSON.stringify(jdata.chanels[actionid-1]) }; $.ajax({ type: 'POST', url: 'http://ipeye.ru/addcamera.php', //path to the add script data: dataToSend, success: function(data) { jdata = JSON.parse(data) if (jdata.status == 1) { $("#d"+actionid).html(jdata.message) }else{ $("#b"+actionid).attr("disabled", false); alert("Adding Failed " + jdata.message) } }, error: function(data) { $("#b"+actionid).attr("disabled", false); alert("Adding Failed " + data) } }); } </script>
For faster and easier integration it is possible to use a mac, but you need to be sure that it is unique.
Upload the cloud client file to the camera and start with a combination of keys.
-streams="rtsp://admin:admin123@127.0.0.1/mpeg4,rtsp://admin:admin123@127.0.0.1/mpeg4cif" -enable_mac="1" -http_camera_mode="1" -vendor="noname"in this case, the mac will be taken from the first interface of the ifconfig camera.
-streams="rtsp://admin:admin123@127.0.0.1/mpeg4,rtsp://admin:admin123@127.0.0.1/mpeg4cif" -enable_mac="1" -mac_string="MM:MM:MM:SS:SS:SS" -http_camera_mode="1" -vendor="noname"in this case, the mac will be taken from the line " mac_string".
-streams="rtsp://admin:admin123@127.0.0.1/mpeg4,rtsp://admin:admin123@127.0.0.1/mpeg4cif" -enable_mac="1" -mac_file="/mnt/flash/productinfo/mac" -http_camera_mode="1" -vendor="noname"in this case, the mac will be taken from the "mac_file" file.
A list of all keys/options can be viewed using the command " - help".
-api_port string Custom API Server Port (default "8111") -api_server string Custom API Server IP Address (default "171.25.232.2") -cloud_port string Custom Cloud Server Port (default "5511") -cloud_server string Custom Cloud Server IP Address (default "171.25.232.11") -config_dir string Full Patch dir example /mnt/flash/productinfo/ need end / -enable_api string EnableAPI - Enable Api Registration (default "1") -enable_debug string Enable Debug Out -enable_http string Enable HTTP Server (default "1") -enable_mac string Enable MAC replace cloud request UUDI to use mac need options string or file -enable_speek string Enable audio imput chanel port 90 -http_add_url string Custom ADD Process Server IP Address (default "http://ipeye.ru/addcamera.php") -http_camera_mode string HTTP Camera mode mrage stream1+stream2 to second -http_disable_add string HTTP Disable Add Page -http_logo_text string HTTP Form Logo Text (default "IPEYE") -http_port string HTTP Server Port (default "8282") -http_reg_site string site to reg new client (default "https://ipeye.ru") -mac_file string Full Patch dir example /mnt/flash/productinfo/mac the file must contain only the address line MM-MM-MM-SS-SS-SS or MM:MM:MM:SS:SS:SS -mac_string string enter mac string MM:MM:MM:SS:SS:SS or MM-MM-MM-SS-SS-SS -model string Model -sleep duration Start Wait timer sapmle 10s -streams string Streams list split (,) if use & list split ("1","2") (default "rtsp://admin:admin@127.0.0.1:554/mpeg4,rtsp://admin:admin@127.0.0.1:554/mpeg4cif") -vendor string Vendor (default "ipeye")