Skip to content

Instantly share code, notes, and snippets.

🦉
OpenIPC.org

Igor Zalatov ZigFisher

🦉
OpenIPC.org
Block or report user

Report or block ZigFisher

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fakir_00018520_venc
/var/tmp # cat /proc/umap/venc
[VENC] Version: [Hi3518EV200_MPP_V1.0.4.0 B050 Release], Build Time[Nov 25 2016, 21:56:23]
-----MODULE PARAM--------------------------------------------------------------
VencBufferCache
0
-----VENC CHN ATTR 1-------------------------------------------------------------
ID Width Height Type ByFrame Timeout Sequence LeftBytes LeftFrm CurPacks prio
View fakir_00018520_vpss
/var/tmp # cat /proc/umap/vpss
[VPSS] Version: [Hi3518EV200_MPP_V1.0.4.0 B050 Release], Build Time[Nov 25 2016, 21:56:16]
VI-VPSS is online.
-------------------------------MODULE PARAM-----------------------------------------------------------------
rfr_frame_comp bOneBufferforLowDelay
Y N
View bricket_troller.sh
#!/bin/sh
#
# (while sleep 5; do /usr/bin/troller >/dev/null 2>&1 ; done) &.
HOST1="192.168.213.251"
HOST2="192.168.213.252"
if ! ping -q -c 5 ${HOST1} ; then
echo "Host ${HOST1} not response, check secondary" | logger;
if ! ping -q -c 5 ${HOST2} ; then
View rtsp_youtube_streamer.sh
#/bin/sh
#
# Stream RTSP to YouTube
#INPUT="rtsp://172.17.32.103:554/av0_1"
INPUT="rtsp://172.28.159.102/user=admin&password=bzz&channel=1&stream=0.sdp?real_stream"
TOKEN="dk5m-8qej-8ebf-9q58"
ffmpeg -f lavfi \
View mikrotik_gps_sender.scr
{
:global lat
:global lon
/system gps monitor once do={
:set $lat $("latitude")
:set $lon $("longitude")
}
tool fetch mode=http url="http://sight.octonix.net/index.php" port=80 http-method=post \
http-data=("{\"lat\":\"" . $lat . "\",\"lon\":\"" . $lon . "\"}") http-content-type="application/json"
:put ("{\"lat\":\"" . $lat . "\",\"lon\":\"" . $lon . "\"}")
View photo_convertor.sh
#!/bin/sh
mkdir small; for f in *.jpg ; do echo "Convering $f ..." ; convert -quality 100 -resize 640x640 "$f" "small/${f%.jpg}-lite.jpg" ; done
View webdav_sender.sh
#!/bin/sh
server="ipcam.octonix.net"
login="mylogin"
password="mypass"
devid="$(ifconfig eth0 | awk '/HWaddr/ {print $5}' | tr -d ':')"
snapshot="http://127.0.0.1/webcapture.jpg?command=snap&channel=1"
upload="http://${server}/~${login}/${devid}/$(TZ=':GMT-3' date +%Y/%m/%d/%H.%M'.jpg')"
timeout="12"
tmp="/var/tmp"
You can’t perform that action at this time.