![]() HLS Configurationįor HLS, the configuration is as follows. If you’re not familiar with them, see HLS vs DASH on the Vidbeo blog. The protocols provide the same functionality, so choosing between them is really a matter of preference. You can configure NGINX to stream video using one or both of the HTTP Live Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH) protocols. auto/configure -add-module=./nginx-rtmp-module ![]() To complete the build, you clone the GitHub repositories for RTMP and NGINX, run the NGINX configure command, and then compile NGINX. If you instead want to build and install the dependencies from source, see our instructions. Run the command for your operating system (if it’s not included here, consult the OS vendor documentation).įor Debian and Ubuntu: $ sudo apt install libpcre3-dev libssl-dev zlib1g-devįor CentOS, Oracle Linux, and RHEL: $ sudo yum groupinstall pcre-devel zlib-devel openssl-devel The easier way to download and install the dependencies is with a package manager. Installing Dependencies with a Package Manager The NGINX build also requires several dependencies: Perl Compatible Regular Expressions (PCRE), OpenSSL, and zlib for compression. $ sudo yum groupinstall "Development Tools" To download and install them, run the command for your operating system (if it’s not included here, consult the OS vendor documentation).įor CentOS, Oracle Linux, and RHEL: $ sudo yum update Installing the Build Toolsīefore compiling NGINX, you need to have some basic build tools installed: autoconf, gcc, git, and make. There are a variety of ways to secure your streams with the front‑end application your viewers use to watch the video, such as allowing access only from certain IP addresses or requiring viewers to authenticate. The NGINX configurations presented in this blog do not include security measures to restrict who can watch your video stream. Validating the Configuration and Starting NGINXĪn Important Note: Don’t Forget Security!.So that you don’t have to take notes while watching the James’s demo, we’ve captured all of the commands and configuration in the following sections. In this video, James goes through the process step by step: Our solution for streaming video takes advantage of the Real‑Time Messaging Protocol (RTMP) module for NGINX. In the rest of this blog I explain how you can use NGINX Open Source and NGINX Plus to enable stable, secure, and scalable video streaming.Ī big thanks goes out to NGINX Technical Solutions Architect James Jones for recording demo videos to accompany this blog! Streaming Live Video and Storing Videos with NGINX Open Source With schools around the world shutting their doors and rapidly implementing distance learning, we expect the use of streaming video to increase exponentially over the coming weeks and months. We detected a trending use case among these organizations that probably won’t surprise you: streaming video! That has included medical providers, government offices, and – most relevant to this blog – schools, universities, and education‑focused non‑profits. In an effort to do our part, we’ve published Free Resources for Websites Impacted by COVID‑19, and have been excited to see the community rally around new NGINX users.Īs part of our efforts to help organizations cope with increased traffic and add new functionality, we’ve been providing up to five free instances of NGINX Plus to organizations on the frontline of the pandemic. Many of you have flagged sites that might benefit from NGINX software, or even donated time and expertise on how to tune NGINX for optimal performance. In recent months, members of the NGINX community have truly come together to support each other and the many organizations struggling to maintain operations during the COVID‑19 pandemic. Write blog posts on installing and using NGINX. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |