Twitter:
http://github.com/j7mbo/twitter-api-php

embed video:
https://videojs.com/getting-started/
chat:
http://arkanis.de/projects/simple-chat/example.php
nginx rtmp server:
RTMP NGINX Server
install NGINX for RTMP Server: 
get latest package from http://nginx.org/download/
nginx rtmp modul : 

$ wget https://github.com/arut/nginx-rtmp-module/archive/master.zip 
$ tar -zxvf nginx-1.13.1.tar.gz 
$ unzip master.zip 
$ cd nginx-1.13.1 
$ ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-master 
$ make 
$ sudo make install 
$ sudo /usr/local/nginx/sbin/nginx 

configure /usr/local/nginx/conf/nginx.conf 

rtmp {
  server {
    listen 1935;
	    chunk_size 4096;
	    application live {
	            live on;
	            record off;
	            push rtmp://live-ber.twitch.tv/app/live_KEY;
	            push rtmp://a.rtmp.youtube.com/live2/KEY;
	    }
	}

}
video stream to rtmp (raspberry pi + cam):
$ FFMPEG=/usr/bin/ffmpeg
$ raspivid -o - -t 0 -w 1280 -h 720 -fps 25 -b 1500000 -g 50 \
|  -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 \
-i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 \
-strict experimental -f flv rtmp://yourserver/live

  • |^| home

  • |O| webcam

  • |#| stats

  • |i| instagram

  • |?| howto

  • |ยง| impressum