Raspberry Pi

Aus MvOWiki
Zur Navigation springen Zur Suche springen

Allgemein

Kamera Realtime

RTMP Streaming using nginx

Base packages for build process

 $ sudo apt-get install devscripts build-essential debian-keyring

Get source code for Jessie package and rtmp module

 $ dget -ux http://ramses.wh2.tu-dresden.de/pub/mirrors/raspbian/raspbian/pool/main/n/nginx/nginx_1.6.1-1.dsc
 $ wget https://github.com/arut/nginx-rtmp-module/archive/v1.1.4.tar.gz
 $ tar xvzf v1.1.4.tar.gz
 $ mkdir nginx-1.6.1/debian/modules/nginx-rtmp-module
 $ cp -r nginx-rtmp-module-1.1.4/* $_

Edit debian/rules replace

 dh binary --with systemd

by

 dh binary

add

 --add-module=$(MODULESDIR)/nginx-rtmp-module

to the section full_configure_flags

Add entries to the binary content of the package

 $ echo debian/modules/nginx-rtmp-module/test/rtmp-publisher/RtmpPlayer.swf >> nginx-1.6.1/debian/source/include-binaries
 $ echo debian/modules/nginx-rtmp-module/test/rtmp-publisher/RtmpPublisher.swf >> nginx-1.6.1/debian/source/include-binaries
 $ echo debian/modules/nginx-rtmp-module/test/rtmp-publisher/RtmpPlayerLight.swf >> nginx-1.6.1/debian/source/include-binaries
 $ echo debian/modules/nginx-rtmp-module/test/www/bg.jpg >> nginx-1.6.1/debian/source/include-binaries
 $ echo debian/modules/nginx-rtmp-module/test/www/jwplayer_old/player.swf >> nginx-1.6.1/debian/source/include-binaries
 $ echo debian/modules/nginx-rtmp-module/test/www/jwplayer/jwplayer.flash.swf >> nginx-1.6.1/debian/source/include-binaries

Check build dependencies

 $ cd nginx-1.6.1/
 $ dpkg-checkbuilddeps

Install build dependencies (libgd2-xpm-dev instead of libgd2-dev; dh_systemd not available under Wheezy)

 $ sudo apt-get install autotools-dev libexpat-dev autotools-dev libgeoip-dev liblua5.1-dev libmhash-dev \
                        libpam0g-dev libpcre3-dev libperl-dev libssl-dev libxslt1-dev libmhash-dev libgd2-xpm-dev

Build package

 $ dch --local ~bpo70+ --distribution wheezy-backports "Rebuild for wheezy-backports."
 $ fakeroot debian/rules binary
 $ debuild -d

Gnublin CAN Board

WLAN