Welcome to My iptv forum

  • Everyone is invited! My iptv forum is for everyone, new and advanced user alike!
  • Searching is key! Before you post a question, use the forum search feature to determine whether your topic has already been covered.
  • Do not start flame wars! If someone has engaged in behavior that is detrimental to the discussion -- spamming, harassment, etc -- report the post and we'll take a look.
  • Tutorial Setup a Media Server using Red5

    Tutorial Setup a Media Server using Red5
    RazRav Offline

    RazRav

    Living life @ 25 FPS
    Staff member
    Moderator
    Moderator
    VIP Member
    Apr 13, 2020
    616
    6,230
    93
    India
    Introduction

    In this guide, we are about to see how to install a media server using open source software Red5. It comes under the Apache License 2.0. The initial release of Red5 was in 2005 and the latest release of Red5 is (Red5 1.0.9) . If you are looking to build a chat server or live streaming video platform Red5 will help to get one.

    It supports a variable number of protocols like RTMP, RTMPE, RTMPS which include to stream audio and video formats like FLV, MP4, 3GP, Mp3, M4A, AC. If we are not affordable to pay for Adobe and Wowza the only option it’s better to stick with a Red5 server and live stream videos free of cost. It’s very easy to set up one within a few minutes. By following the below guide you are about to set up a fully functional Red5 Media Server.


    1.Installation server Setup
    Below is our test environment setup, Set the hostname name and IP to static.
    Code:
    Please, Log in or Register to view codes content!
    Hostname details

    Fig-1 hostname details

    The operating system we are about to use in this guide will be Centos 7.5. By following the same guide you can set up the same in RedHat Enterprise Linux 7.x server, Fedora Linux, Scientific Linux, Oracle Enterprise Linux Server 7.x.
    Code:
    Please, Log in or Register to view codes content!
    OS update

    Fig-2 updated with latest packages

    2.Installing Java
    By following we required to install with JDK 8 or latest version. Navigate to below URL to start the download by choosing “Accept the Licence Agreement”.

    Download with RPM package it may come around 160 MB in Size. Install and verify the version.
    Code:
    Please, Log in or Register to view codes content!
    Java Version

    Fig-3 Java version
    3.Download and extract Red5
    Once done with Java installation by following we need to set up with Red5. To install with any specific required version, we can navigate to below URL.
    In this guide we are using with 1.0.10, Let us download using “wget“.
    Code:
    Please, Log in or Register to view codes content!
    Download the red5 Package

    Fig-4 Downloaded the red5 package
    Extract the downloaded tar.gz red5 package under /opt/.
    Code:
    Please, Log in or Register to view codes content!
    4.Add firewalld rules
    If we are in a small environment we are required to setup with firewalld rules for Red5 ports.
    By default, Red5 uses Port 5080. Enable the port and reload the firewalld to take effect for the newly added rule.
    Code:
    Please, Log in or Register to view codes content!
    Enable traffic for 5080/tcp

    Fig-5Enable traffic for 5080/tcp
    List the firewall rules

    Fig-6 list the firewall rules
    For the confirmation, we can use the “netstat” command to list out the ports.
    Code:
    Please, Log in or Register to view codes content!
    5.Configure Red5 to expose out of the box
    To access the Red5 out of the box we required to add Red5 server IP or hostname under below file.
    Code:
    Please, Log in or Register to view codes content!

    Save and exit.

    Append with required IP address

    Fig-7Append with required IP address
    6.Start Red5 Service
    At last, we are good to start the Red5 service by running red5.sh script. If we need to run the service in the background simply add a “&” at the end of the command.
    Code:
    Please, Log in or Register to view codes content!
    Starting red5 service

    fig -8 Starting red5 service
    7. Access Red5 test Operation Page from Browser
    Open any one of your favorite web browsers with flash support and navigate to Red5 server IP. In this setup, we have used red5.oel7.local or we can use the IP and port 192.169.07.243:5080
     

    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
    110
    Guests online
    563
    Total visitors
    673
    18,459Threads
    64,724Messages
    63,208Members
    Luisma3123Latest member
    Top