Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Installing nginx with RTMP to make RK3288 stream server

138

Credits

20

Prestige

18

Contribution

registered members

Rank: 2

Credits
138

Installing nginx with RTMP to make RK3288 stream server

Posted at 7/20/2015 01:40:17      View:5497 | Replies:1        Print      Only Author   [Copy Link] 1#
This is WIP (Work In Progress) of install and use of nginx as WEB/RTMP server on RK3288
Device used: UGOOS UT3

TODO: AutoMount the SD Card and/or ROCKCHIP to make storage access and accept changes due compilation paths! At the moment is used the provided stock space.
Will be upgraded with image with partition size of 8GB.
Another goal is to compile property FFMPEG (stuck here and ffmpeg itself with ffmpeg-10bit, ffprobe and qt-faststart must be on /usr/sbin/* )
Provide the full nginx.conf

Installing PHP-FPM will provide option to make a WebUI to manage the streams via local IP (WIP)

The corresponding RTMP classes and PHP scripts are ready and used JSON, jQuery, Bootstrap, FontAwesome,
The Frontend uses: HTML5 and CSS
The players used and switchable are: Flowplayer, jwPlayer, MediaElement, vidojs

NOTES: Ports 80 and 1935 must be open to access nginx and RTMP.

sudo su
apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
y
gcc --version
make --version
openssl version

sudo apt-get install php5-fpm php5-cli php-pear php5-dev php5-common php5-gd
sudo /etc/init.d/php5-fpm start

#make a new directory where we will download all the source code for the project:
mkdir /root/src
cd /root/src

#get the last stable version of nginx:
#Latest stable version: http://nginx.org/en/download.html
wget http://nginx.org/download/nginx-1.9.2.tar.gz
#need to untar the downloaded tar ball
tar zxvf nginx-1.9.2.tar.gz

#get last version of PCRE - used for expression pattern in nginx conf file.
#official website: http://www.pcre.org/
wget ftp://ftp.csx.cam.ac.uk/pub/soft ... re/pcre-8.37.tar.gz
tar zxvf pcre-8.37.tar.gz

#For compilation we also need Zlib library
wget http://zlib.net/zlib-1.2.8.tar.gz
tar zxvf zlib-1.2.8.tar.gz

#NGINX-based Media Streaming Server: nginx-rtmp-module, hosted on GitHUB
wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
unzip master.zip

#Getting the chat module: nginx-push-module, this is quite old - 2010
wget https://pushmodule.slact.net/dow ... _module-0.73.tar.gz
tar zxvf nginx_http_push_module-0.692.tar.gz
tar zxvf nginx_http_push_module-0.73.tar

./configure \
--prefix=/var/www \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--pid-path=/var/run/nginx.pid \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--without-http_proxy_module \
--with-zlib=/usr/src/zlib-1.2.8 \
--with-pcre=/usr/src/pcre-8.37 \
--add-module=/usr/src/nginx_http_push_module-0.73 \
--add-module=/usr/src/nginx-rtmp-module-master \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_ssl_module \
--with-http_image_filter_module \
--with-http_spdy_module \
--with-http_dav_module

make
make install

Cheers,
Reply

Use props Report

450

Credits

10

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
450
Posted at 3/16/2017 03:54:47        Only Author  2#
HOWW really Nice. You finish this project?

Cheers
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list