0

I have some Ubuntu 14.04 servers (that is, headless, no UI involved) that for security reasons cannot be connected to the internet, but they need ffmpeg installed on them.

Typically, for an ffmpeg install on Ubuntu 14.04 I use the following commands:

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg

On 14.04 its necessary to add the mc3man/trusty-media repo since ffmpeg was intentionally omitted from the 14.04 official repos.

I'm wondering what I need to do to get ffmpeg and any of its transitive dependencies loaded onto a USB stick and then subsequently installed on my non-networked/offline 14.04 servers and running correctly.

It looks like ffmpeg usually installs itself to /usr/bin/ffmpeg, so on one hand it could be as easy as copying that binary to the flash drive. However I'm wondering if it has any dependencies that would need to be copied over as well. I'm also wondering if it matters where on the offline servers I install/save the binaries to (does it?). I figure as long as the system path can find ffmpeg, it shouldn't matter if I install it under usr/bin/ffmpeg or /opt/ffmpeg, etc.

smeeb
  • 335

2 Answers2

1

You can simply download a static build of ffmpeg and put it on your USB stick to distribute to your unconnected servers.

llogan
  • 12,348
0

If by any chance you need to install ffmpeg, you could try compiling it using this guide

https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

make sure you got installed this dependencies

sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev

Downloaded and installed with dpkg -i (each one of them) and well, now that we are there, why not

dpkg -i name_of_ffmpeg_package.deb
Zanna
  • 72,312