Firefly Open Source Community

Title: Installing nginx with RTMP to make RK3288 stream server [Print This Page]

Author: deep    Time: 7/20/2015 01:40
Title: Installing nginx with RTMP to make RK3288 stream server
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,
Author: psycmos    Time: 3/16/2017 03:54
HOWW really Nice. You finish this project?

Cheers
Author: zachmos856    Time: 1/28/2026 00:19
This article is exceptional, thank you so much for sharing. Upgrade your IT knowledge and access Latest C_CPE_2409 training for free. Wishing you the best of luck!
Author: billsco785    Time: 2/16/2026 01:50
The article is very practical and has given me many new ideas for problem-solving. The C_ARSUM_2508 latest exam sims questions are now free! Wishing you all the best for your exams!
Author: jackpar952    Time: 2/23/2026 08:33
Welche Methode der Pr¨¹fungsvorbereitung mögen Sie am meisten? Mit PDF, online Test machen oder die simulierte Pr¨¹fungssoftware benutzen? Alle drei Methoden können SAP C-P2WIE-2404 von unserer EchteFrage Ihnen bieten. Demos aller drei Versionen von Pr¨¹fungsunterlagen können Sie vor dem Kauf kostenfrei herunterladen und probieren. Die beste Methode zu wählen ist ein wichtiger Schritt zum Bestehen der SAP C-P2WIE-2404. Zweifellos garantieren wir, dass jede Version von SAP C-P2WIE-2404 Pr¨¹fungsunterlagen umfassend und wirksam ist.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1