Giter VIP home page Giter VIP logo

ielko-media-server's Introduction

Media server - wowza & nimble killer :)

Run the following commands on a freshly installed Ubuntu 16 Server on digital ocean or elsewhere

sudo -s
apt-get install curl -y
curl -sL https://raw.githubusercontent.com/upggr/IELKO-MEDIA-SERVER/master/install.sh | sudo bash -

 
++++ receiving streams ++++
Stream to rtmp://ipofyourserver/show/stream1   (or any other streamname other than stream1)


++++ retrieving streams ++++
your hls address is : http://ipofyourserver:8080/hls/stream1.m3u8
you can test your stream from http://ipofyourserver/player/play.php?play=http://ipofyourserver:8080/hls/stream1.m3u8
or you can just visit http://ipofyourserver for sample links to streams : stream1,stream2,stream3,stream4

++++ restream from your server another stream ++++
restream a youtube video to http://ipofyourserver:8080/hls/stream1.m3u8 :
ffmpeg -re -i `livestreamer  https://www.youtube.com/watch?v=qRY56sJJ2to best --stream-url --yes-run-as-root`  -c:v copy -ar 44100 -ab 128k -ac 2 -strict -2 -f flv rtmp://ipofyourserver/show/stream1

for non youtube streams ommmit the livestreamer command and put an rtmp, for m3u8 use livestreamer.

++++ usefull commands ++++

Test the configuration file
/usr/local/nginx/sbin/nginx -t

Start nginx in the background
/usr/local/nginx/sbin/nginx

Start nginx in the foreground
/usr/local/nginx/sbin/nginx -g 'daemon off;'

Reload the config on the go
/usr/local/nginx/sbin/nginx -t && nginx -s reload

Kill nginx
/usr/local/nginx/sbin/nginx -s stop

Location of html
/usr/local/nginx/html

Update player
cd /usr/local/nginx/html/player
git pull

edit nginx.conf
nano /usr/local/nginx/conf/nginx.conf

Update www directory with new default values and player
curl -sL https://raw.githubusercontent.com/upggr/IELKO-MEDIA-SERVER/master/update_html.sh | sudo bash -

++++ use domain name ++++
just nano /usr/local/nginx/conf/nginx.conf
Replace line : "#server_name yourdomain.com www.yourdomain.com xxx.xxx.xxx.xxx" with your domain name or ip etc (and remove the #) :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.