Skip to content

How to install LAMP, FFMPEG and Git on a fresh Ubuntu 20.x For AVideo Encoder

Daniel Neto edited this page Apr 20, 2024 · 1 revision

AVideo Platform Installation Guide

This guide provides a comprehensive step-by-step tutorial on how to install the AVideo Encoder on an Ubuntu server.

What You Will Install

  • LAMP (Linux, Apache, MySQL, PHP): A powerful set of tools that allows you to host dynamic websites and web apps.
  • FFmpeg: A complete, cross-platform solution to record, convert, and stream audio and video.
  • Git: A distributed version control system to track changes in source code during software development.
  • yt-dlp: A command-line program to download videos from YouTube and other video hosting sites.

Step 1: Install LAMP and Additional Packages

Open a terminal and install the necessary packages by running the following command:

sudo apt-get install apache2 php libapache2-mod-php php-mysql php-curl php-gd php-intl php-xml php-zip php-simplexml mysql-server mysql-client ffmpeg git libimage-exiftool-perl -y

Step 2: Clone AVideo Encoder

After the installation of packages, clone the AVideo Encoder repository into your web server's root directory:

cd /var/www/html && sudo git clone https://github.com/WWBN/AVideo-Encoder.git

Step 3: Install yt-dlp

yt-dlp is a fork of youtube-dl with additional fixes and optimizations. It is required to download videos from external platforms like YouTube, Vimeo, and others directly to your site.

Installing yt-dlp:

  1. Install Python and pip (if not already installed):

    sudo apt install python3-pip -y
  2. Install yt-dlp:

    sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp && sudo chmod a+rx /usr/local/bin/yt-dlp

This command downloads the latest version of yt-dlp and sets the appropriate permissions to run it.

Additional Resources