Skip to content
palaumarc edited this page Nov 28, 2014 · 24 revisions

Tips

  • Live Media Streamer MUST be installed in usr/local/ in order to use LMS webGUI.
  • Web GUI tested on Google Chrome and Mozilla Firefox web browsers

There are two servers you can use to run the LMS WebGUI:

  • Rack server, recommended for testing
  • Nginx server, recommended for production

Rack server deployment

cd api
rackup -p<port>

Nginx server deployment

Before using Ngnix, it has to be configured. An example configuration file is provided at .../livemediastreamerwebgui/api/nginx.conf.example. To set it up, copy this example file to the default Ngnix configuration location.

sudo cp /path/to/livemediastreamerwebgui/api/nginx.conf.example /etc/nginx/nginx.conf

Edit the /etc/nginx/nginx.conf file using your favorite editor and modify the following lines properly. You only need to set them to the path where you have downloaded the LMS WebGUI.

server unix:/path/to/livemediastreamerwebgui/api/tmp/sockets/unicorn.sock

root /path/to/livemediastreamerwebgui/api/public;

After configuring it, execute this:

sudo service nginx restart
unicorn -c unicorn.rb -D

Using the web front-end

Once the server is up, the GUI is accessible using a web browser, introducing the server address in the browser address bar.

A simple command line to capture from v4l would be

ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 -vcodec libx264 -f rtp rtp://localhost:5004

To add this stream to the LMS, click on the + Add RTP input button and set the LMS channel where you want to assign this input and the recevier port, in this example, 5004 we've assigned at the ffmpeg command above.

To view the LMS output you can use any of the provided uris (clicking Output URIs) with VLC.