Tuấn Sữa

Cài đặt FFmpeg để chạy được PHP trên Ubuntu

Step 1 – Setup FFmpeg PPA

FFmpeg 4 is the latest available version for installation on Ubuntu. To install the latest version, you need to configure PPA on your system. Execute below command to add FFmpeg PPA on Ubuntu system.

sudo add-apt-repository ppa:jonathonf/ffmpeg-4

This PPA contains packages for Ubuntu 18.04 (Bionic) and 16.04 LTS (Xenial) only.

Step 2 – Install FFmpeg on Ubuntu

After enabling the PPA, Lets exec below commands to install ffmpeg on Ubuntu system. This will also install many packages for the dependencies.

sudo apt-get update

sudo apt-get install ffmpeg

Step 3 – Check FFmpeg Version

After successfully install FFmpeg, let’s check the version installed on the system.

ffmpeg -version

ffmpeg version 4.2.2-0york0~16.04 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609

Cài đặt ssh2 của PHP để kết nối tới sever

apt install php-ssh2

Link Tham khảo https://www.php.net/manual/en/ssh2.installation.php

Exit mobile version