Wiki > Ffmpeg
Installing FFmpeg
This guide outlines the steps to install FFmpeg, a comprehensive tool for handling multimedia files, on your seedbox.
Prerequisites
- Basic development tools like
make
andgcc
should be available on your seedbox.
Installation Steps
-
SSH into Your Seedbox: Connect to your seedbox using SSH:
ssh yourusername@yourseedboxaddress
Replace
yourusername
andyourseedboxaddress
with your actual username and seedbox address. -
Create a Build Directory for FFmpeg: Create a directory for FFmpeg:
mkdir -p ~/ffmpeg_build
-
Download the FFmpeg Source Code: Download the latest version of FFmpeg:
wget https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
This URL points to the latest snapshot of FFmpeg.
-
Extract the FFmpeg Source: Extract the downloaded source code:
tar xjvf ffmpeg-snapshot.tar.bz2
This command is tailored to the .tar.bz2 file from the provided link.
-
Compile FFmpeg: Navigate to the source directory and compile:
cd ffmpeg ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" make make install
ffmpeg
is the directory extracted from the tarball. -
Update Your PATH Environment: Add the path to the FFmpeg binaries to your PATH variable:
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc source ~/.bashrc
-
Verify the Installation: Check the installation:
ffmpeg -version
Troubleshooting
For issues during installation, check for any missed dependencies or typographical errors. For more detailed information, consult the FFmpeg Compilation Guide.