Install FFmpeg in Linux Offline: A Step Guide – Linux Tutorial

By | July 22, 2022

In this tutorial, we will introduce how to install ffmpeg in linux offline, it is very easy to do by our steps.

Step 1: download ffmpeg source code

We can download it in here.

https://johnvansickle.com/ffmpeg/release-source/ffmpeg-4.1.tar.xz

Step 2: extract ffmpeg

xz -d ffmpeg-4.1.tar.xz
tar -xf ffmpeg-4.1.tar

Step 3: compile ffmpeg

cd ffmpeg-4.1/ 
./configure --enable-shared --prefix=/usr/local/ffmpeg

When we are running ./configure –enable-shared –prefix=/usr/local/ffmpeg, we may get this error: nasm/yasm not found or too old. Use –disable-x86asm for a crippled build.

fix nasm yasm not found or too old. Use --disable-x86asm for a crippled build

You can read this tutorial to fix.

Fix nasm/yasm not found or too old. Use –disable-x86asm for a crippled build Error – Linux Tutorial

Step 3: install ffmpeg in linux

make
make install

Step 4: export ffmpeg

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ffmpeg/lib

Then we can run ffmpeg in current directory.

./ffmpeg

We will see:

Install FFmpeg in Linux Offline - A Step Guide - Linux Tutorial

Leave a Reply