What's new
Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Welcome to My Sharing Site

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  Guest viewing is limited

Info HLS With Nimble

Info HLS With Nimble
RazRav Offline

RazRav

Living life @ 25 FPS

Staff member
VIP Member
Moderator
Moderator
Apr 13, 2020
615
6,445
93
India
Intro
Nimble Streamer is a fantastic lightweight media server with its own live and web control UI. We are going to show how to configure Nimble and stream HLS with Peer5. The MPEG-DASH is set up the same way.

Prior to following this article, please install Nimble Streamer on any supported OS.

Setup CORS
Peer5 needs CORS to get the video segments from your server:

  1. Open your config file (Usually located at /etc/nimble/nimble.conf).
  2. Add the following lines at the bottom of the file:
    • access_control_allow_origin = *
    • access_control_expose_headers = Content-Length
  3. Save the file.
  4. Restart the nimble service using this command: sudo service nimble restart.
Setup VOD HLS Stream
  1. Copy the mp4 video file you want to stream to a path that will be accessible by the nimble user on your server, Lets say /var/www/video/.
  2. On the navigation panel: Nimble streamer -> Edit nimble routes.

    image01.png



  3. Select ADD VOD STREAMING ROUTE on the top right.
  4. Fill the form and press OK.

    image00.png



  5. your route will be added to the table, select GET URL for player, copy the url and replace sample.mp4 with your video file name. You might also need to replace the IP address with your server’s external IP.
  6. you can now play the url in your HLS player.
Setup Live (RTMP transmuxing to HLS)
  1. On the navigation panel: Nimble streamer -> Live streams settings.


    image03.png



  2. Under Global tab - Set chunk duration to 4 and Chunk count to 20. Then press Save.


    image06.png



  3. Select Live pull settings tab.


    image05.png



  4. Select Add RTMP URL.
  5. Fill your RTMP stream url, application name (i.e live) and name for your output stream. Then press Save.


    image07.png



  6. Go back to the top navigation bar and select Live streams.


    image04.png



  7. Choose your server from the list on the bottom.


    image08.png



  8. Click Outgoing stream (the pink part of the drawing), your stream should appear.
  9. Press the question mark on the right side of your stream’s line.
  10. This window will appear:


    image02.png



  11. You might need to replace the IP address with the external address of your server.
  12. Your HLS stream can now be played via this url.
 
Relate Threads

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top Posters of the Month

Online statistics

Members online
86
Guests online
406
Total visitors
492
Top