Skip to content

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

Daniel Neto edited this page Oct 20, 2020 · 6 revisions

Just copy and paste this:

sudo apt-get install apache2 php7.2 libapache2-mod-php7.2 php7.2-mysql php7.2-curl php7.2-gd php7.2-intl mysql-server mysql-client ffmpeg git libimage-exiftool-perl php7.2-xml php-zip php-simplexml && cd /var/www/html && sudo git clone https://github.com/WWBN/AVideo-Encoder.git && sudo apt-get install python && sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl

or folowing the instructions

LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache web server on an Ubuntu 18.x server with PHP 7.2 (mod_php) and MySQL. A LAMP setup is a perfect basis for your AVideo Platform.

FFmpeg is a free software project that produces libraries and programs for handling multimedia data. FFmpeg includes libavcodec, an audio/video codec library used by several other projects, libavformat (Lavf), an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.

Git is a version control system (VCS) for tracking changes in computer files and coordinating work on those files among multiple people.

To install LAMP, FFMPEG and Git just open a terminal and type the following line:

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

after all installations are complete type this command line:

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

Here you are ready to install AVideo upload and play videos, but if you want to be able to download videos from other sites like Youtube, Vimeo, AVideo sites and more, directly to your site. You will need to install youtube-dl

youtube-dl depends on Python, so first you will need Python

sudo apt-get install python

Now to install youtube-dl right away for all UNIX users (Linux, OS X, etc.), type:

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl

If you do not have curl, you can alternatively use a recent wget:

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl

We have a video that can explain more details with this step by step. Video Tutorial

We hope you have fun! If you need help, have any question or Issue please open an Issue on https://github.com/WWBN/AVideo/issues