How to install nginx-vod-module – NGINX-based VOD Packager – on CentOS?
Step 1:
rpm -ihv http://installrepo.kaltura.org/releases/kaltura-release.noarch.rpm
Result:
[root@tutorialspots ~]# rpm -ihv http://installrepo.kaltura.org/releases/ kaltura-release.noarch.rpm Retrieving http://installrepo.kaltura.org/releases/kaltura-release.noarch.rpm warning: /var/tmp/rpm-tmp.CC1TdT: Header V4 RSA/SHA1 Signature, key ID ba443ef2: NOKEY Preparing... ################################# [100%] Updating / installing... 1:kaltura-release-13.4.0-4 ################################# [100%]
Step 2
yum install kaltura-nginx
Result:
[root@tutorialspots ~]# yum install kaltura-nginx Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.0x.sg * extras: mirror.0x.sg * updates: mirror.0x.sg Resolving Dependencies --> Running transaction check ---> Package kaltura-nginx.x86_64 1:1.12.2-3 will be installed --> Processing Dependency: libswscale.so.4(LIBSWSCALE_4)(64bit) for package: 1:k altura-nginx-1.12.2-3.x86_64 --> Processing Dependency: libavutil.so.55(LIBAVUTIL_55)(64bit) for package: 1:k altura-nginx-1.12.2-3.x86_64 --> Processing Dependency: libavfilter.so.6(LIBAVFILTER_6)(64bit) for package: 1 :kaltura-nginx-1.12.2-3.x86_64 --> Processing Dependency: libavcodec.so.57(LIBAVCODEC_57)(64bit) for package: 1 :kaltura-nginx-1.12.2-3.x86_64 --> Processing Dependency: kaltura-ffmpeg for package: 1:kaltura-nginx-1.12.2-3. x86_64 --> Processing Dependency: libswscale.so.4()(64bit) for package: 1:kaltura-nginx -1.12.2-3.x86_64 --> Processing Dependency: libavutil.so.55()(64bit) for package: 1:kaltura-nginx -1.12.2-3.x86_64 --> Processing Dependency: libavfilter.so.6()(64bit) for package: 1:kaltura-ngin x-1.12.2-3.x86_64 --> Processing Dependency: libavcodec.so.57()(64bit) for package: 1:kaltura-ngin x-1.12.2-3.x86_64 --> Running transaction check ---> Package kaltura-ffmpeg.x86_64 0:3.2-3 will be installed --> Processing Dependency: libvpx >= 1.3.0 for package: kaltura-ffmpeg-3.2-3.x86 _64 --> Processing Dependency: x265-libs for package: kaltura-ffmpeg-3.2-3.x86_64 --> Processing Dependency: libtheoraenc.so.1(libtheoraenc_1.0)(64bit) for packag e: kaltura-ffmpeg-3.2-3.x86_64 --> Processing Dependency: libtheoradec.so.1(libtheoradec_1.0)(64bit) for packag e: kaltura-ffmpeg-3.2-3.x86_64 --> Processing Dependency: libass for package: kaltura-ffmpeg-3.2-3.x86_64 --> Processing Dependency: kaltura-x264 for package: kaltura-ffmpeg-3.2-3.x86_64 --> Processing Dependency: kaltura-a52dec for package: kaltura-ffmpeg-3.2-3.x86_ 64 --> Processing Dependency: a52dec for package: kaltura-ffmpeg-3.2-3.x86_64 --> Processing Dependency: libxvidcore.so.4()(64bit) for package: kaltura-ffmpeg -3.2-3.x86_64 --> Processing Dependency: libx265.so.87()(64bit) for package: kaltura-ffmpeg-3. 2-3.x86_64 --> Processing Dependency: libx264.so.140()(64bit) for package: kaltura-ffmpeg-3 .2-3.x86_64 --> Processing Dependency: libvpx.so.1()(64bit) for package: kaltura-ffmpeg-3.2- 3.x86_64 --> Processing Dependency: libvorbisenc.so.2()(64bit) for package: kaltura-ffmpe g-3.2-3.x86_64 --> Processing Dependency: libvorbis.so.0()(64bit) for package: kaltura-ffmpeg-3 .2-3.x86_64 --> Processing Dependency: libtheoraenc.so.1()(64bit) for package: kaltura-ffmpe g-3.2-3.x86_64 --> Processing Dependency: libtheoradec.so.1()(64bit) for package: kaltura-ffmpe g-3.2-3.x86_64 --> Processing Dependency: libspeex.so.1()(64bit) for package: kaltura-ffmpeg-3. 2-3.x86_64 --> Processing Dependency: libschroedinger-1.0.so.0()(64bit) for package: kaltur a-ffmpeg-3.2-3.x86_64 --> Processing Dependency: libopenjpeg.so.1()(64bit) for package: kaltura-ffmpeg -3.2-3.x86_64 --> Processing Dependency: libopencore-amrwb.so.0()(64bit) for package: kaltura- ffmpeg-3.2-3.x86_64 --> Processing Dependency: libopencore-amrnb.so.0()(64bit) for package: kaltura- ffmpeg-3.2-3.x86_64 --> Processing Dependency: libmp3lame.so.0()(64bit) for package: kaltura-ffmpeg- 3.2-3.x86_64 --> Processing Dependency: libgsm.so.1()(64bit) for package: kaltura-ffmpeg-3.2- 3.x86_64 --> Processing Dependency: libass.so.5()(64bit) for package: kaltura-ffmpeg-3.2- 3.x86_64 --> Running transaction check ---> Package gsm.x86_64 0:1.0.13-11.el7 will be installed ---> Package kaltura-a52dec.x86_64 0:0.7.4-11 will be installed ---> Package kaltura-lame.x86_64 0:3.99.5-3 will be installed ---> Package kaltura-libopencore-amr.x86_64 0:0.1.3-1 will be installed ---> Package kaltura-x264.x86_64 0:0.140-2.20140104 will be installed ---> Package libass.x86_64 0:0.10.2-2.el7 will be installed --> Processing Dependency: libharfbuzz.so.0()(64bit) for package: libass-0.10.2- 2.el7.x86_64 --> Processing Dependency: libfribidi.so.0()(64bit) for package: libass-0.10.2-2 .el7.x86_64 --> Processing Dependency: libfontconfig.so.1()(64bit) for package: libass-0.10. 2-2.el7.x86_64 --> Processing Dependency: libenca.so.0()(64bit) for package: libass-0.10.2-2.el 7.x86_64 ---> Package libtheora.x86_64 1:1.1.1-8.el7 will be installed --> Processing Dependency: libogg.so.0()(64bit) for package: 1:libtheora-1.1.1-8 .el7.x86_64 ---> Package libvorbis.x86_64 1:1.3.3-8.el7 will be installed ---> Package libvpx.x86_64 0:1.3.0-5.el7_0 will be installed ---> Package openjpeg-libs.x86_64 0:1.5.1-17.el7 will be installed ---> Package schroedinger.x86_64 0:1.0.11-4.el7 will be installed --> Processing Dependency: liborc-0.4.so.0()(64bit) for package: schroedinger-1. 0.11-4.el7.x86_64 ---> Package speex.x86_64 0:1.2-0.19.rc1.el7 will be installed ---> Package x265-libs.x86_64 0:2.0-1 will be installed ---> Package xvidcore.x86_64 0:1.3.2-16 will be installed --> Running transaction check ---> Package enca.x86_64 0:1.14-1.el7 will be installed ---> Package fontconfig.x86_64 0:2.10.95-11.el7 will be installed --> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.10. 95-11.el7.x86_64 --> Processing Dependency: font(:lang=en) for package: fontconfig-2.10.95-11.el7 .x86_64 ---> Package fribidi.x86_64 0:0.19.4-6.el7 will be installed ---> Package harfbuzz.x86_64 0:1.3.2-1.el7 will be installed --> Processing Dependency: libgraphite2.so.3()(64bit) for package: harfbuzz-1.3. 2-1.el7.x86_64 ---> Package libogg.x86_64 2:1.3.0-7.el7 will be installed ---> Package orc.x86_64 0:0.4.26-1.el7 will be installed --> Running transaction check ---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed ---> Package graphite2.x86_64 0:1.3.10-1.el7_3 will be installed ---> Package stix-fonts.noarch 0:1.1.0-5.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: kaltura-nginx x86_64 1:1.12.2-3 Kaltura 911 k Installing for dependencies: enca x86_64 1.14-1.el7 Kaltura 105 k fontconfig x86_64 2.10.95-11.el7 base 229 k fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k fribidi x86_64 0.19.4-6.el7 Kaltura 63 k graphite2 x86_64 1.3.10-1.el7_3 updates 115 k gsm x86_64 1.0.13-11.el7 base 30 k harfbuzz x86_64 1.3.2-1.el7 base 177 k kaltura-a52dec x86_64 0.7.4-11 Kaltura 60 k kaltura-ffmpeg x86_64 3.2-3 Kaltura 6.4 M kaltura-lame x86_64 3.99.5-3 Kaltura 449 k kaltura-libopencore-amr x86_64 0.1.3-1 Kaltura 144 k kaltura-x264 x86_64 0.140-2.20140104 Kaltura 482 k libass x86_64 0.10.2-2.el7 Kaltura 66 k libogg x86_64 2:1.3.0-7.el7 base 24 k libtheora x86_64 1:1.1.1-8.el7 base 136 k libvorbis x86_64 1:1.3.3-8.el7 base 204 k libvpx x86_64 1.3.0-5.el7_0 base 498 k openjpeg-libs x86_64 1.5.1-17.el7 base 86 k orc x86_64 0.4.26-1.el7 base 166 k schroedinger x86_64 1.0.11-4.el7 Kaltura 290 k speex x86_64 1.2-0.19.rc1.el7 base 98 k stix-fonts noarch 1.1.0-5.el7 base 1.3 M x265-libs x86_64 2.0-1 Kaltura 554 k xvidcore x86_64 1.3.2-16 Kaltura 262 k Transaction Summary ================================================================================ Install 1 Package (+24 Dependent packages) Total size: 13 M Installed size: 42 M Is this ok [y/d/N]: y Downloading packages: warning: /var/cache/yum/x86_64/7/base/packages/stix-fonts-1.1.0-5.el7.noarch.rpm : Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org >" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-4.1708.el7.centos.x86_64 (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Is this ok [y/N]: y warning: /var/cache/yum/x86_64/7/Kaltura/packages/kaltura-libopencore-amr-0.1.3- 1.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID ba443ef2: NOKEY Retrieving key from http://installrepo.kaltura.org/releases/RPM-GPG-KEY-kaltura Importing GPG key 0xBA443EF2: Userid : "Kaltura (for RPMs.) <community@kaltura.com>" Fingerprint: 1688 ff2e af8e d7b6 ecba a36b b194 baa5 ba44 3ef2 From : http://installrepo.kaltura.org/releases/RPM-GPG-KEY-kaltura Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 2:libogg-1.3.0-7.el7.x86_64 1/25 Installing : fontpackages-filesystem-1.44-8.el7.noarch 2/25 Installing : stix-fonts-1.1.0-5.el7.noarch 3/25 Installing : fontconfig-2.10.95-11.el7.x86_64 4/25 Installing : 1:libtheora-1.1.1-8.el7.x86_64 5/25 Installing : 1:libvorbis-1.3.3-8.el7.x86_64 6/25 Installing : libvpx-1.3.0-5.el7_0.x86_64 7/25 Installing : openjpeg-libs-1.5.1-17.el7.x86_64 8/25 Installing : graphite2-1.3.10-1.el7_3.x86_64 9/25 Installing : harfbuzz-1.3.2-1.el7.x86_64 10/25 Installing : xvidcore-1.3.2-16.x86_64 11/25 Installing : kaltura-x264-0.140-2.20140104.x86_64 12/25 Installing : fribidi-0.19.4-6.el7.x86_64 13/25 Installing : gsm-1.0.13-11.el7.x86_64 14/25 Installing : x265-libs-2.0-1.x86_64 15/25 Installing : orc-0.4.26-1.el7.x86_64 16/25 Installing : schroedinger-1.0.11-4.el7.x86_64 17/25 Installing : kaltura-lame-3.99.5-3.x86_64 18/25 Installing : kaltura-a52dec-0.7.4-11.x86_64 19/25 Installing : speex-1.2-0.19.rc1.el7.x86_64 20/25 Installing : enca-1.14-1.el7.x86_64 21/25 Installing : libass-0.10.2-2.el7.x86_64 22/25 Installing : kaltura-libopencore-amr-0.1.3-1.x86_64 23/25 Installing : kaltura-ffmpeg-3.2-3.x86_64 24/25 Installing : 1:kaltura-nginx-1.12.2-3.x86_64 25/25 ---------------------------------------------------------------------- Thanks for using nginx! Please find the official documentation for nginx here: * http://nginx.org/en/docs/ Commercial subscriptions for nginx are available on: * http://nginx.com/products/ ---------------------------------------------------------------------- Verifying : stix-fonts-1.1.0-5.el7.noarch 1/25 Verifying : kaltura-libopencore-amr-0.1.3-1.x86_64 2/25 Verifying : enca-1.14-1.el7.x86_64 3/25 Verifying : harfbuzz-1.3.2-1.el7.x86_64 4/25 Verifying : fontpackages-filesystem-1.44-8.el7.noarch 5/25 Verifying : speex-1.2-0.19.rc1.el7.x86_64 6/25 Verifying : kaltura-a52dec-0.7.4-11.x86_64 7/25 Verifying : kaltura-lame-3.99.5-3.x86_64 8/25 Verifying : libass-0.10.2-2.el7.x86_64 9/25 Verifying : kaltura-ffmpeg-3.2-3.x86_64 10/25 Verifying : 1:libtheora-1.1.1-8.el7.x86_64 11/25 Verifying : orc-0.4.26-1.el7.x86_64 12/25 Verifying : x265-libs-2.0-1.x86_64 13/25 Verifying : gsm-1.0.13-11.el7.x86_64 14/25 Verifying : fribidi-0.19.4-6.el7.x86_64 15/25 Verifying : 2:libogg-1.3.0-7.el7.x86_64 16/25 Verifying : 1:libvorbis-1.3.3-8.el7.x86_64 17/25 Verifying : kaltura-x264-0.140-2.20140104.x86_64 18/25 Verifying : xvidcore-1.3.2-16.x86_64 19/25 Verifying : schroedinger-1.0.11-4.el7.x86_64 20/25 Verifying : fontconfig-2.10.95-11.el7.x86_64 21/25 Verifying : graphite2-1.3.10-1.el7_3.x86_64 22/25 Verifying : 1:kaltura-nginx-1.12.2-3.x86_64 23/25 Verifying : openjpeg-libs-1.5.1-17.el7.x86_64 24/25 Verifying : libvpx-1.3.0-5.el7_0.x86_64 25/25 Installed: kaltura-nginx.x86_64 1:1.12.2-3 Dependency Installed: enca.x86_64 0:1.14-1.el7 fontconfig.x86_64 0:2.10.95-11.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 fribidi.x86_64 0:0.19.4-6.el7 graphite2.x86_64 0:1.3.10-1.el7_3 gsm.x86_64 0:1.0.13-11.el7 harfbuzz.x86_64 0:1.3.2-1.el7 kaltura-a52dec.x86_64 0:0.7.4-11 kaltura-ffmpeg.x86_64 0:3.2-3 kaltura-lame.x86_64 0:3.99.5-3 kaltura-libopencore-amr.x86_64 0:0.1.3-1 kaltura-x264.x86_64 0:0.140-2.20140104 libass.x86_64 0:0.10.2-2.el7 libogg.x86_64 2:1.3.0-7.el7 libtheora.x86_64 1:1.1.1-8.el7 libvorbis.x86_64 1:1.3.3-8.el7 libvpx.x86_64 0:1.3.0-5.el7_0 openjpeg-libs.x86_64 0:1.5.1-17.el7 orc.x86_64 0:0.4.26-1.el7 schroedinger.x86_64 0:1.0.11-4.el7 speex.x86_64 0:1.2-0.19.rc1.el7 stix-fonts.noarch 0:1.1.0-5.el7 x265-libs.x86_64 0:2.0-1 xvidcore.x86_64 0:1.3.2-16 Complete!
Done, now you can use this file to test nginx-vod-module:
https://github.com/kaltura/nginx-vod-module/blob/master/test/nginx.conf
Create Nginx service:
1. Create file nginx.service in /usr/lib/systemd/system:
[Unit] Description=nginx - high performance web server Documentation=http://nginx.org/en/docs/ After=network-online.target remote-fs.target nss-lookup.target Wants=network-online.target [Service] Type=forking PIDFile=/var/run/nginx.pid ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s TERM $MAINPID [Install] WantedBy=multi-user.target
2. Run command:
systemctl enable nginx systemctl start nginx