-------------------------------------------------------------------------------------
TO BUILD
*http://thejackalofjavascript.com/rpi-pir-sensor-node-iot-intruder-alert/
BACKUP vm
rsync -e 'ssh -p 8022' -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} root@188.210.92.35:/* /home/ooooo/backup-wa/
BACK UP FOLDERS
scp -r
BACK UP FOLDERS VIA TAR
cd /home/ooooo; tar zcvf - /backup-wa | ssh root@10.94.185.30 "cat > /nfs/Public/BACKUP-wa/wa.tar.gz"
-------------------------------------------------------------------------------------
NEW VM
ssh root@10.94.176.61
ssh root@5.196.109.240
root /
-------------------------------------------------------------------------------------
INSTALL vm
uname -a
Linux OVH1-deb7-Oooo-1 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/Linux
WHICH VM
cat /etc/apt/sources.list
which debian?
UPDATE
apt-get update
UPGRADE
apt-get upgrade
INSTALL ICECAST2
sudo apt-get install icecast2 (install streaming server) http://en.flossmanuals.net/icecast/
http://dev.radiopiloten.de/dokuwiki/doku.php/liquidsoap:installation (install liquidsoap)
::message::
icecast2 daemon disabled - read /etc/default/icecast2.
# Edit /etc/icecast2/icecast.xml and change at least the passwords.
# Change this to true when done to enable the init.d script
ENABLE=true
INSTALL LIQUIDSOAP
sudo apt-get install liquidsoap-plugin-all
OR
------------------------------------------------------------------------------------
COMPILING LIQUIDSOAP
------------------------------------------------------------------------------------
compiling liquidsoap-full (savonet github) on debian wheezy
./bootstrap
(needs a recent version of git!! maybe in bckports, i compiled it from source)
# !! add wheezy-backports to sources.list
#http://forums.debian.net/viewtopic.php?f=6&t=117769
apt-cache policy liborc-0.4-0
apt-get install liborc-0.4-0=1:0.4.19-1~bpo70+1
apt-get install libgstreamer-plugins-base1.0-dev
apt-get install libmadlib-dev
apt-get install libmad-ocaml-dev
apt-get install libtaglib-ocaml-dev
apt-get install libaacplus-ocaml-dev
apt-get install libspeex-ocaml-dev
apt-get install libspeex-ocaml-dev
apt-get install libspeex-ocaml-dev
apt-get install libspeex-ocaml-dev
#... cant install libschroedinger as dependencies with liborc are not matched...
#apt-get install libschroedinger-ocaml-dev
apt-get install libflac-ocaml-dev
apt-get install libgavl-ocaml-dev
apt-get install libdssi-ocaml-dev
apt-get install libxmlm-ocaml-dev
apt-get install liblo-ocaml-dev
apt-get install libcamomile-ocaml-dev
# better to have liquidsoap user/group to run liquidsoap
adduser liquidsoap
--- my liquidsoap PACKAGES file
#
ocaml-cry
ocaml-gstreamer
ocaml-mad
ocaml-taglib
ocaml-lame
ocaml-aacplus
ocaml-ogg
ocaml-vorbis
ocaml-speex
ocaml-theora
ocaml-flac
ocaml-gavl
ocaml-ffmpeg
ocaml-dssi
ocaml-xmlplaylist
ocaml-dtools
ocaml-duppy
ocaml-mm
liquidsoap
-------------
liquidsoap-plugin-lame
playlist - pls
apt-get install fapg
Add user
useradd [options] username
Make folder tree structure
scp -P 8022 -r root@188.210.92.35:/home/ramona/audio .
/etc/liquidsoap
Create .liq file
Starting liquidsoap channels: ramona.liq ruelles.liq Fatal error: exception Sys_error(": No such file or directory")
Raised at file "pervasives.ml", line 231, characters 21-47
1.
add root to use liquidsoap and users
nano /etc/group
2.
root@OVH1-deb7-Oooo-1:/etc# chmod a+x /etc/liquidsoap/ramona.liq
root@OVH1-deb7-Oooo-1:/etc# chmod a+x /etc/liquidsoap/ruelles.liq
3.
http://savonet.sourceforge.net/doc-svn/script_loading.html
4.
root@OVH1-deb7-Oooo-1:/run# chmod a+x /var/run/liquidsoap
screen
/etc/int.d/liquidsoap
--chuid $user:$group --exec $liquidsoap -- -d $confdir/$liq -- $rundir/${liq%.liq}.pid $logdir/${liq%.liq}.log
ls /var/log/liquidsoap/
TEST VIDEO
source = single("big_buck_bunny_480p_stereo.ogg")
output.icecast(
%ogg(%theora(quality=25,width=320,height=240),%vorbis),
host="188.210.92.35",
port=80,
password="",
mount="/videostream",
source)
sample video's
http://blender-mirror.kino3d.org/peach/bigbuckbunny_movies/
----
camera
* raspberry pi camera ?
https://www.sparkfun.com/products/11868 (plain camera)
https://www.sparkfun.com/products/12654 (no ir filter)
*
Y-cam Knight
wireless setup:
http://support.y-cam.com/kb/index.php?action=article&id=307&relid=1
initial setup:
http://support.y-cam.com/kb/index.php?action=article&id=347&relid=1
general knowledgebase: http://support.y-cam.com/kb/
login : admin
passwd: d**...
discovery :
arping -i eth2 00:0d:f0:5b:38:89
mac address (wireshark) 00:0d:f0:5b:38:89
wireshark filter ( eth.src == 00:0d:f0:5b:38:89 || eth.dst == 00:0d:f0:5b:38:89 )
!nie op de server
#sudo apt-get install v4l2loopback-utils
#gst-launch-0.10 videotestsrc ! "video/x-raw-yuv,width=640,height=480,framerate=30/1" ! videorate ! v4l2sink device=/dev/video0
streamen van webcam (kan nu nt testen, geen ethernet-kabel..)
http://ipcctvsoft.blogspot.com/2010/07/getting-image-from-mjpeg-source-using_13.html
https://moozing.wordpress.com/2011/12/26/ip-camera-gstreamer-and-virtual-video-devices/
works but bit of a shortcut (playbin2 automagic)
gst-launch-0.10 playbin2 uri=rtsp://192.168.0.143/live_mpeg4.sdp video-sink='queue ! video/x-raw-yuv,width=640,height=480,framerate=30/1,format=(fourcc)YUY2 ! videoconvert !videorate ! ffmpegcolorspace ! v4l2sink device=/dev/video0'
streaming to icecast
gst-launch-0.10 uridecodebin uri=rtsp://192.168.0.143/live_mpeg4.sdp name=d ! queue max-size-time=100000000 ! ffmpegcolorspace ! theoraenc bitrate=800 ! oggmux name=mux ! shout2send ip=5.196.109.240 port=80 password=------- mount=/ptrserbia.ogv d. ! queue max-size-time=100000000 ! audioconvert ! vorbisenc ! mux.
gst-launch-1.0 uridecodebin uri=rtsp://10.94.185.132/live_mpeg4.sdp name=d ! queue max-size-time=100000000 ! autovideosink
html 5 videoplayer
video.js
https://github.com/videojs/video.js/blob/stable/docs/index.md
https://github.com/tim-peterson/videojs-playlist
http://tim-peterson.github.io/videojs-playlist/#episode-1
IR sensor
--------------
- max 250 Volt - 100watt
- 24 volt > adapter
- 5 wires:
*OG normally closed > orange
*BN normally open > brown
*BK > black
*RD > red > common
*BU > blue
*
tinycontroll
------------------------------------------
nc normally closed
c closed
normally open
INP1D
low .
IDC1061 > VVC voltage current
dhcp enabled.
ntp - clock
email
LAN-SWITCH_HOME
00:04:A3:D1:57:CB
http
admin/admin
ifconfig eth0
nmap -sn (eigen ip)0-255 |grep CB
(zoek het mac adres)
webaddress:
---- installatie rpi2's
clean install -- 2015-02-16-raspbian-wheezy
on first boot : '1 Expand filesystem'
-----
NOT IMPORTANT : ppl that want to see the stream, need to come over to MHKA/S14
need to check these
https://developer.mozilla.org/en-US/Apps/Build/Audio_and_video_delivery/Live_streaming_web_audio_and_video
https://github.com/opi/m3uStreamPlayer
https://github.com/Dash-Industry-Forum/dash.js/
---
dazzle
alsamixer -c 1 -V capture
gst-launch-1.0 oggmux name=mux ! shout2send ip=188.210.92.35 port=80 password=jonctions mount=/ptrserbia.ogv alsasrc device=hw:1 ! queue max-size-time=100000000 ! audioconvert ! vorbisenc ! mux.
(streaming audio through icecast..)
--------------------------------------------------------------------------------------------------------
rasberry
/etc/inittab > in order of startup (level 2,3,4,5)
userbased
.profile > after login >> execute .profile
.xsession > e.g qsstv
e.g gedit /home/ptr/initialize.txt
uit screen gaan ctr D
(export my graphical server to startup display)
eg.
---------------------------------------------------------------------------------------------------------
monitor 1 -
ssh ptr@10.94.221.243 -X
startup
x-server csstv
tnycontrol -
ssh 192.169.1.100
----------------------------------------------------------
sstv >
ip a add 192.168.1.1/24 dev eth0
ping 192.168.1.100
HOW TO LOCATE AN IP CAMERA ON THE NETWORK?
------
I know the mac adress of my machine (most of the time it's on a sticker somewhere on the device)
00:0a:cf:00:25:42
to scan the network for a device
apt-get install fping
check mac-address of device (here:00:0a:cf:00:25:42)
ping each computer in the local network (here @ s14 10.94.185.0/24)
fping -a -g 10.94.185.0/24 -c 1
this command saves 'info' in cat /proc/net/arp |
cat /proc/net/arp | grep '00:0a:cf:00:25:42'
10.94.185.128 0x1 0x2 00:0a:cf:00:25:42 * wlan3
webbrowser: http://10.94.185.128
---------------------------------------------------------------------------------------------------------------------------------
RASPBERRY PI
/home/pi
discover-can.sh
Script to search the ipcamera on network.
record-stream.sh
Local stream recording
------------------------------------------------------------------------------------------
S14 - ENCODER
pi@10.94.185.134
M HKA - ENCODER
pi@10.94.221.252
AIR - ENCODER
ssh pi@10.94.102.244
http://188.210.92.35/
http://pad.constantvzw.org/public_pad/daemonshellscripts-skybox