-
Notifications
You must be signed in to change notification settings - Fork 976
External FFMPEG Server Setup
The External FFMPEG Server feature allows you to offload video processing tasks (e.g., rebroadcasting and restreaming) to a separate server. This reduces the CPU load on your main server, ensuring better performance and scalability for your AVideo platform.
By leveraging an external server, your main server can focus on delivering a seamless user experience while the external server handles resource-intensive operations like video encoding and streaming.
Currently, only one external FFMPEG server is supported. You can configure a single external server to handle all FFMPEG tasks.
-
Improved Performance
Offloading FFMPEG tasks prevents your main server from being overwhelmed, ensuring smooth operations for other critical services. -
Scalability
Handle increased traffic by offloading video processing to a dedicated server. -
Cost Efficiency
Use a dedicated, cost-effective server for FFMPEG instead of upgrading your main server to handle additional load.
Follow these steps to configure the external FFMPEG server:
- Install AVideo on a separate server. Follow the standard installation process outlined in the AVideo documentation.
- After installation, navigate to the
videos
directory on the new server.
- Inside the
videos
directory, create a new file namedstandalone.configuration.php
. - Add the following content to the file, replacing
https://mysite.com/
with the URL of your main AVideo site:<?php $global['webSiteRootURL'] = 'https://mysite.com/';
- Open your browser and visit the following URL, replacing
mysite.com
with the URL of your main site:https://mysite.com/plugin/API/standAlone/ffmpeg.json.php
- The first time you access this URL, it will automatically generate the
configuration.php
file on the external server.
- Log in to your main AVideo site and navigate to the API Plugin settings.
- Locate the
standAloneFFMPEG
parameter. - Add the URL of the external server’s FFMPEG endpoint, for example:
https://myexternalserver.com/plugin/API/standAlone/ffmpeg.json.php
- Initiate a rebroadcast or restream from your main site.
- Monitor the external server to ensure it is handling the FFMPEG processing tasks correctly.
- Main Server: Handles all website operations, ensuring a smooth user experience.
- External Server: Processes video streams and encoding tasks delegated by the main server.
- API Communication: Securely connects the main and external servers, ensuring tasks are performed as expected.