### Getting Started with Oryx Server Source: https://github.com/ossrs/srs-docs/blob/main/src/pages/faq-oryx.md Provides guidance on how to set up and begin using Oryx Server. It emphasizes following provided tutorials and guides for different application scenarios to avoid issues. ```en Please follow [How to Setup a Video Streaming Service by 1-Click](./blog/Oryx-Tutorial) to purchase and set up Oryx, please don't skip this step. After entering the Oryx Server, there will be corresponding video tutorials according to different application scenarios. Each scenario also has a complete introduction and detailed operation steps. Please do not try randomly, be sure to follow the guide, audio and video random testing will definitely cause problems. ``` -------------------------------- ### Getting Started with Oryx Server Source: https://github.com/ossrs/srs-docs/blob/main/for-writers/pages/faq-oryx-en.md Provides guidance on how to set up and begin using Oryx Server. It emphasizes following provided tutorials and guides for different application scenarios to avoid issues. ```en Please follow [How to Setup a Video Streaming Service by 1-Click](./blog/Oryx-Tutorial) to purchase and set up Oryx, please don't skip this step. After entering the Oryx Server, there will be corresponding video tutorials according to different application scenarios. Each scenario also has a complete introduction and detailed operation steps. Please do not try randomly, be sure to follow the guide, audio and video random testing will definitely cause problems. ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/sample-http.md Starts the SRS server using the specified configuration file. ```bash ./objs/srs -c conf/http.hls.conf ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/sample-http.md Starts the SRS server using the specified configuration file. ```bash ./objs/srs -c conf/http.hls.conf ``` -------------------------------- ### Get and Build SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/sample-transcode-to-hls.md Clones the SRS repository and builds the server with FFmpeg support enabled. This is the initial setup for using SRS with transcoding capabilities. ```bash git clone https://github.com/ossrs/srs cd srs/trunk ./configure --ffmpeg-tool=on && make ``` -------------------------------- ### Get and Build SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/sample-transcode-to-hls.md Clones the SRS repository and builds the server with FFmpeg support enabled. This is the initial setup for using SRS with transcoding capabilities. ```bash git clone https://github.com/ossrs/srs cd srs/trunk ./configure --ffmpeg-tool=on && make ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/sample-ffmpeg.md Starts the SRS server using the specified configuration file. Ensure the configuration file path is correct. ```bash ./objs/srs -c conf/ffmpeg.conf ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/sample-http.md Starts the SRS server with the specified configuration file. Requires the SRS executable to be built and the configuration file to be present. ```bash ./objs/srs -c conf/http.hls.conf ``` -------------------------------- ### Start Slave SRS Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/sample-forward.md Starts the slave SRS server with its configuration. ```bash ./objs/srs -c conf/forward.slave.conf ``` -------------------------------- ### Start Master SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/sample-forward.md Command to start the master SRS server using the specified configuration file. ```bash ./objs/srs -c conf/forward.master.conf ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/sample-ffmpeg.md Starts the SRS server using the specified configuration file. This command assumes the SRS executable and configuration file are in the correct paths. ```bash ./objs/srs -c conf/ffmpeg.conf ``` -------------------------------- ### Start Master SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/sample-forward.md Command to start the master SRS server using the specified configuration file. ```bash ./objs/srs -c conf/forward.master.conf ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/sample-ffmpeg.md Starts the SRS server using the specified configuration file. Ensure the configuration file path is correct. ```bash ./objs/srs -c conf/ffmpeg.conf ``` -------------------------------- ### Start Slave SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/sample-forward.md Command to start the slave SRS server using the specified configuration file. ```bash ./objs/srs -c conf/forward.slave.conf ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/sample-ffmpeg.md Starts the SRS server using a specified configuration file. This command assumes the SRS executable and configuration file are in the correct paths. ```bash ./objs/srs -c conf/ffmpeg.conf ``` -------------------------------- ### Start Slave SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/sample-forward.md Command to start the slave SRS server using its configuration file. ```bash ./objs/srs -c conf/forward.slave.conf ``` -------------------------------- ### Start Master SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/sample-forward.md Command to start the master SRS server using the specified configuration file. ```bash ./objs/srs -c conf/forward.master.conf ``` -------------------------------- ### Start Slave SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/sample-forward.md Command to start the slave SRS server using the specified configuration file. ```bash ./objs/srs -c conf/forward.slave.conf ``` -------------------------------- ### Get and Build SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/sample-http-flv.md Clones the SRS repository from GitHub and builds the server. This is the initial setup for using SRS. ```bash git clone https://github.com/ossrs/srs cd srs/trunk ./configure && make ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/sample-rtmp.md Starts the SRS server using a specified configuration file. This command launches the RTMP service. ```bash ./objs/srs -c conf/rtmp.conf ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/sample-transcode-to-hls.md Starts the SRS server using the specified configuration file. This command launches the server to handle streaming requests. ```bash ./objs/srs -c conf/transcode2hls.audio.only.conf ``` -------------------------------- ### Start Master SRS Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/sample-forward.md Launches the master SRS server using the specified configuration file. ```bash ./objs/srs -c conf/forward.master.conf ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/sample-transcode-to-hls.md Starts the SRS server using the specified configuration file. This command is essential for the server to begin processing streams and performing transcoding. ```bash ./objs/srs -c conf/transcode2hls.audio.only.conf ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/sample-transcode-to-hls.md Starts the SRS server using the specified configuration file. This command is essential for the server to begin processing streams and performing transcoding. ```bash ./objs/srs -c conf/transcode2hls.audio.only.conf ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/sample-http.md Starts the SRS server using the specified configuration file. This command launches the server to handle RTMP and HLS streams. ```bash ./objs/srs -c conf/http.hls.conf ``` -------------------------------- ### Get SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/sample-ffmpeg.md Clones the SRS repository from GitHub to get the latest source code. Alternatively, it can be used to update an existing SRS installation. ```bash git clone https://github.com/ossrs/srs cd srs/trunk ``` ```bash git pull ``` -------------------------------- ### Get SRS Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/sample-http.md Clones the SRS repository from GitHub and navigates into the directory. Assumes git is installed. ```bash git clone https://github.com/ossrs/srs cd srs/trunk ``` -------------------------------- ### DVR Configuration Example Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/dvr.md Example configuration block for enabling and setting up DVR, including path, plan, duration, and HTTP callback. ```cpp vhost your_vhost { dvr { enabled on; dvr_path ./objs/nginx/html/[app]/[stream]/[2006]/[01]/[02]/[15].[04].[05].[999].flv; dvr_plan segment; dvr_duration 30; dvr_wait_keyframe on; } http_hooks { enabled on; on_dvr http://127.0.0.1:8085/api/v1/dvrs; } } ``` -------------------------------- ### Build and Run SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/install.md The fundamental commands to compile the SRS (Simple Realtime Server) from source and to start the server with a specified configuration file. ```bash ./configure && make ``` ```bash ./objs/srs -c conf/srs.conf ``` -------------------------------- ### RTMP URL Examples Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/rtmp-url-vhost.md Illustrates example RTMP URLs for different scenarios, including a standard setup and a VHost-based setup. These examples clarify how to construct URLs for publishing and playing streams. ```APIDOC Scenario 1: No VHost (Single Customer) rtmp://yourdomain.com/military/rock rtmp://yourdomain.com/military/radar Scenario 2: With VHost (Multiple Customers/Configs) rtmp://demo.srs.com:1935/live/livestream (VHost: demo.srs.com) ``` -------------------------------- ### DVR Configuration Example Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/dvr.md Example configuration block for enabling and setting up DVR, including path, plan, duration, and HTTP callback. ```cpp vhost your_vhost { dvr { enabled on; dvr_path ./objs/nginx/html/[app]/[stream]/[2006]/[01]/[02]/[15].[04].[05].[999].flv; dvr_plan segment; dvr_duration 30; dvr_wait_keyframe on; } http_hooks { enabled on; on_dvr http://127.0.0.1:8085/api/v1/dvrs; } } ``` -------------------------------- ### DVR Configuration Example Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/dvr.md Example configuration block for enabling and setting up DVR, including path, plan, duration, and HTTP callback. ```cpp vhost your_vhost { dvr { enabled on; dvr_path ./objs/nginx/html/[app]/[stream]/[2006]/[01]/[02]/[15].[04].[05].[999].flv; dvr_plan segment; dvr_duration 30; dvr_wait_keyframe on; } http_hooks { enabled on; on_dvr http://127.0.0.1:8085/api/v1/dvrs; } } ``` -------------------------------- ### RTMP URL Examples Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/rtmp-url-vhost.md Illustrates example RTMP URLs for different scenarios, including a standard setup and a VHost-based setup. These examples clarify how to construct URLs for publishing and playing streams. ```APIDOC Scenario 1: No VHost (Single Customer) rtmp://yourdomain.com/military/rock rtmp://yourdomain.com/military/radar Scenario 2: With VHost (Multiple Customers/Configs) rtmp://demo.srs.com:1935/live/livestream (VHost: demo.srs.com) ``` -------------------------------- ### RTMP URL Examples Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/rtmp-url-vhost.md Illustrates example RTMP URLs for different scenarios, including a standard setup and a VHost-based setup. These examples clarify how to construct URLs for publishing and playing streams. ```APIDOC Scenario 1: No VHost (Single Customer) rtmp://yourdomain.com/military/rock rtmp://yourdomain.com/military/radar Scenario 2: With VHost (Multiple Customers/Configs) rtmp://demo.srs.com:1935/live/livestream (VHost: demo.srs.com) ``` -------------------------------- ### DVR Configuration Example Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/dvr.md Example configuration block for enabling and setting up DVR, including path, plan, duration, and HTTP callback. ```cpp vhost your_vhost { dvr { enabled on; dvr_path ./objs/nginx/html/[app]/[stream]/[2006]/[01]/[02]/[15].[04].[05].[999].flv; dvr_plan segment; dvr_duration 30; dvr_wait_keyframe on; } http_hooks { enabled on; on_dvr http://127.0.0.1:8085/api/v1/dvrs; } } ``` -------------------------------- ### Get SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/sample-http.md Clones the SRS repository from GitHub to get the latest source code. ```bash git clone https://github.com/ossrs/srs cd srs/trunk ``` -------------------------------- ### Build and Start srs-bench Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/performance.md Commands to build the srs-bench tool and start it to test RTMP load. The example starts 800 concurrent clients targeting a specified RTMP URL. ```bash ./configure && make ./objs/sb_rtmp_load -c 800 -r ``` -------------------------------- ### Install aaPanel Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-blog/2022-04-29-BT-aaPanel.md This code snippet installs the aaPanel server management tool on Ubuntu 20+. It downloads an installation script and executes it with a specific token. ```bash wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec ``` -------------------------------- ### Build and Run SRS Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/install.md The essential commands to build the SRS (Simple Realtime Server) from source and to run it with a specified configuration file. ```bash ./configure && make ``` ```bash ./objs/srs -c conf/srs.conf ``` -------------------------------- ### Build and Run SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/install.md The essential commands to build the SRS (Simple Realtime Server) from source and to run it with a specified configuration file. ```bash ./configure && make ./objs/srs -c conf/srs.conf ``` -------------------------------- ### Build and Run SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/install.md The basic commands to build the SRS (Simple Realtime Server) from source and to run it with a specified configuration file. ```bash ./configure && make ``` ```bash ./objs/srs -c conf/srs.conf ``` -------------------------------- ### Build SRS Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/sample-http.md Configures and builds the SRS project. Requires a C/C++ compiler and build tools. The `./configure` command prepares the build environment, and `make` compiles the source code. ```bash ./configure && make ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/sample-http-flv.md Command to start the SRS server with the specified configuration file. This makes the server ready to accept streams. ```bash ./objs/srs -c conf/http.flv.live.conf ``` -------------------------------- ### Start Origin Server (HLS Only) Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/reuse-port.md Starts an SRS origin server configured specifically for HLS delivery. This example shows starting two such servers, each listening on ports 1935 and 8080. ```bash ./objs/srs -c conf/origin.hls.only1.conf ./objs/srs -c conf/origin.hls.only2.conf ``` -------------------------------- ### SRS Stream Playback Examples Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/k8s.md Examples of how to play live streams from an SRS server using RTMP, HTTP-FLV, and HLS protocols. Replace the example IP address with your actual server IP. ```APIDOC RTMP Playback: rtmp:///live/ Example: rtmp://28.170.32.118/live/livestream HTTP-FLV Playback: http://:8080/live/.flv Example: http://28.170.32.118:8080/live/livestream.flv HLS Playback: http://:8080/live/.m3u8 Example: http://28.170.32.118:8080/live/livestream.m3u8 http:///live/.m3u8 Example: http://28.170.32.118/live/livestream.m3u8 ``` -------------------------------- ### SRS Stream Playback Examples Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/k8s.md Examples of how to play live streams from an SRS server using RTMP, HTTP-FLV, and HLS protocols. Replace the example IP address with your actual server IP. ```APIDOC RTMP Playback: rtmp:///live/ Example: rtmp://28.170.32.118/live/livestream HTTP-FLV Playback: http://:8080/live/.flv Example: http://28.170.32.118:8080/live/livestream.flv HLS Playback: http://:8080/live/.m3u8 Example: http://28.170.32.118:8080/live/livestream.m3u8 http:///live/.m3u8 Example: http://28.170.32.118/live/livestream.m3u8 ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/sample-dash.md Starts the SRS server with the specified configuration file. ```bash ./objs/srs -c conf/dash.conf ``` -------------------------------- ### SRS Stream Playback Examples Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/k8s.md Examples of how to play live streams from an SRS server using RTMP, HTTP-FLV, and HLS protocols. Replace the example IP address with your actual server IP. ```APIDOC RTMP Playback: rtmp:///live/ Example: rtmp://28.170.32.118/live/livestream HTTP-FLV Playback: http://:8080/live/.flv Example: http://28.170.32.118:8080/live/livestream.flv HLS Playback: http://:8080/live/.m3u8 Example: http://28.170.32.118:8080/live/livestream.m3u8 http:///live/.m3u8 Example: http://28.170.32.118/live/livestream.m3u8 ``` -------------------------------- ### SRS Stream Playback Examples Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/k8s.md Examples of how to play live streams from an SRS server using RTMP, HTTP-FLV, and HLS protocols. Replace the example IP address with your actual server IP. ```APIDOC RTMP Playback: rtmp:///live/ Example: rtmp://28.170.32.118/live/livestream HTTP-FLV Playback: http://:8080/live/.flv Example: http://28.170.32.118:8080/live/livestream.flv HLS Playback: http://:8080/live/.m3u8 Example: http://28.170.32.118:8080/live/livestream.m3u8 http:///live/.m3u8 Example: http://28.170.32.118/live/livestream.m3u8 ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/sample-dash.md Starts the SRS server using the specified configuration file. ```bash ./objs/srs -c conf/dash.conf ``` -------------------------------- ### Get SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/sample-ffmpeg.md Clones the SRS repository from GitHub to get the latest source code or updates an existing local repository. ```bash git clone https://github.com/ossrs/srs cd srs/trunk ``` ```bash git pull ``` -------------------------------- ### Running the SRS HTTP Callback Server Example Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/http-callback.md Provides the command to navigate to the SRS trunk directory and run the example HTTP callback server. This is a practical step for testing the callback functionality. ```bash cd srs/trunk python research/api-server/server.py 8085 ``` -------------------------------- ### SRS Log Output Example Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/log.md Example log output from SRS when starting up, indicating successful configuration parsing and the location of the log file. ```bash [2014-04-14 12:12:57.775][trace][0][0] config parse complete [2014-04-14 12:12:57.775][trace][0][0] write log to file ./objs/srs.log [2014-04-14 12:12:57.775][trace][0][0] you can: tailf ./objs/srs.log [2014-04-14 12:12:57.775][trace][0][0] @see https://ossrs.io/lts/en-us/docs/v4/doc/log ``` -------------------------------- ### Start SRS Server Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/sample-dash.md Starts the SRS server using the specified configuration file. ```bash ./objs/srs -c conf/dash.conf ``` -------------------------------- ### Get SRS Repository Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-4.0/doc/sample-http.md Clones the SRS repository from GitHub to get the latest source code. This is the first step before building the server. ```bash git clone https://github.com/ossrs/srs cd srs/trunk ``` -------------------------------- ### Update SRS Source: https://github.com/ossrs/srs-docs/blob/main/i18n/en-us/docusaurus-plugin-content-docs/current/doc/sample-http.md Updates an existing SRS installation by pulling the latest changes from the repository. Assumes git is installed and the repository has already been cloned. ```bash git pull ``` -------------------------------- ### Get SRS Code Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-6.0/doc/sample-hls-cluster.md Clones the SRS repository from GitHub to get the latest source code. Alternatively, it shows how to update an existing SRS installation. ```bash git clone https://github.com/ossrs/srs cd srs/trunk ``` ```bash git pull ``` -------------------------------- ### Build SRS Source: https://github.com/ossrs/srs-docs/blob/main/versioned_docs/version-5.0/doc/sample-http.md Configures and builds the SRS server from the source code. ```bash ./configure && make ```