compile ffmpeg on stand redhat - ffmpeg

I'm working on a redhat server which isn't connected to the internet, so I can't download things directly onto the server. I can transfer them via SCP from another server.
Is there a step by step guide to compiling ffmpeg for redhat?

If you can scp from another server that is connected to the Internet and wish to install using rpm's rather than compiling, I suggest the following:
Install yum-downloadonly on the server in question:
yum -y install yum-downloadonly
Simulate an install of ffmpeg using downloadonly to save all required packages locally:
yum -y install ffmpeg --downloadonly --downloaddir=your_download_directory
Transfer all the downloaded rpm's to the server without Internet access
cd to the directory with the rpm's on that server and run this to install all of them:
rpm -ivh --nodeps *.rpm
That should do it!

Related

What is equivalent option of --print-uris in apt for yum?

When you need to do apt upgrade but you cannot get the Ubuntu PC connected the internet, you will use following command in order to know urls of packages that the Ubuntu needs for upgrade.
sudo apt --print-uris upgrade
Then, you will download all deb files at another PC connected the internet and get the Ubuntu PC read these files via flash drive or something to upgrade with below command.
sudo dpkg -i *.deb
I'd like to know how to do same operation with yum manager in OracleLinux8. I am very beginner of radhat.
Thank you,

How to Install FFMpeg on centos 6 in 2022?

a client of mine asked to add videos to their website, i decided to install FFMpeg on their server so whenever they upload a video, the service automatically generates the first frame for the preview and encodes them in webm.
Sadly it seems to be impossible to install without having to compile it myself (which i don't really want to do as i have never done it before and don't want to risk breaking something in their server),
The server is running cento6 but EVERY repository that provides the centos6 version of FFMpeg seem to use dependencies from dead hosts (they are offline and unreachable), every solution i find ends up with the same error like "Couldn't resolve host 'apt.sw.be'"
I've changed yam repositories, installed apt-get to try with that instead of yam, disabled and enable repos like nux that seem to be very outdated, even followed posts that were published/updated recently like this but they all keep ending up with the the same "Couldn't resolve host..." when installing decencies.
Is there any live and updated repo that provides a way to install FFMpeg for centos6 with yum or apt-get in 2022?
Thanks
EDIT
Following Romeo's tip about downloading the binaries, i managed to install it but in my case i needed a older 32 bit version to make it work (else i'd get Kernel too old):
$ wget https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-4.0.3-32bit-static.tar.xz
$ tar xvf ffmpeg-4.0.3-32bit-static.tar.xz
$ sudo mv ffmpeg-4.0.3-32bit-static/ffmpeg ffmpeg-4.0.3-32bit-static/ffprobe /usr/local/bin/
What you can do is to try to install statically build ffmpeg binary. This will help you not to search for contemporary package and update your CentOS.
You can try this version (64bit version).

Offline Ansible Control Machine installation

I need to install Ansible Control Machine behind a corporate firewall with no internet access. I can't find documentation for an offline install. I have access on my workstation to download anything I want and can copy it to the target machine. I have tried searching online but have not been able to find examples on how to do this. My server is Ubuntu 14.04 but if anyone has documentation for Red Hat or another distro that would also help.
I did a testing on my RH6, so if you have a RH6 with Internet access to download all required installation file, and a RH6 installation ISO. You should be able to achieve this.
Assuming you have a RH6 which has Internet access, let's call it A. And another one doesn't have access: B.
download Ansible and Jinja2 from A, and copy the files to B.
For Ansible: http://docs.ansible.com/ansible/intro_installation.html
Jinja2 is required for Ansible, download it here:
https://pypi.python.org/pypi/Jinja2
Mount the RH6 installation ISO to your RH6 B, then install the required RPM.
In my case, i installed PIP as well:
rpm -ivh python-paramiko-1.7.5-2.1.el6.noarch.rpm libyaml-0.1.3-4.el6_6.x86_64.rpm PyYAML-3.10-3.1.el6.x86_64.rpm perl-TermReadKey-2.30-13.el6.x86_64.rpm perl-Error-0.17015-4.el6.noarch.rpm python-six-1.9.0-2.el6.noarch.rpm
//following required for Git
rpm -ivh --force --nodeps perl-Git-1.7.1-3.el6_4.1.noarch.rpm
rpm -ivh git-1.7.1-3.el6_4.1.x86_64.rpm
Note: i didn't install httplib2 here, you can do it later.
install MarkupSafe (required for Jinja2)
//install MarkupSafe
tar -xvf MarkupSafe-0.23.tar.gz
cd MarkupSafe-0.23/
sudo python setup.py install
install Jinja2
//install Jinjia2
tar -xvf Jinja2-2.8.tar.gz
cd Jinja2-2.8/
sudo python setup.py install
On RH6 B, you should be able to run Ansible now:
tar -zxvf ansible.tar.gz
source ./hacking/env-setup
echo "127.0.0.1" > ~/ansible_hosts
export ANSIBLE_INVENTORY=~/ansible_hosts
ansible --version
I know this is a very old question, but I've found the answer in this blog post and I believe that could help someone out there.
Although this post aproach is on a CentOS/RHEL machine, I believe the procedure is very similar to other distros:
Download the packages (RPM) dependencies
Download the Ansible packages
Upload the downloaded packages to the target machine
Install it using yum localinstall
Or you could also install it from the source.

How to load correct libavcodec.so shared library version? (53)

I am using libavcodec and libavformat in my project but when I execute a binary which was built on another machine, I get the following error:
error while loading shared libraries: libavcodec.so.53: cannot open shared object file: No such file or directory
I installed ffmpeg with libav and trying the following commands:
sudo apt-get install ffmpeg libavcodec-dev libavformat-dev
sudo apt-get install ffmpeg libavcodec-extra-53
sudo apt-get install libav-tools
The error doesnt show up when I build the binary on the same machine, but it would be much faster to compile on a second machine.
UDPATE: I also ran sudo apt-get install update and sudo apt-get install pkg-config without any change in the output. (OS = 12.04)
https://sites.google.com/site/linuxencoding/builds
try installing the linux binary for ffmpeg from the above website.
just so that every user benefits from this answer i am adding links to ffmpeg binaries available for different platforms
for centOS http://pkgs.repoforge.org/ffmpeg/
Tutorial for installation :
http://www.rackspace.com/knowledge_center/article/centos-installing-ffmpeg
for mac http://ffmpegmac.net/
for windows http://ffmpeg.zeranoe.com/builds/
also i have made a video tutorial to install a binary. but this is on mac. but i assume its the same for linux to.
https://www.youtube.com/watch?v=wiLNqg2IOAQ
hope this helps

Setup Macports on an offline machine

I need to install dpkg for my mac and the easiest way I have seen for doing that is to install Macports. Unfortunately the machine I want to install it on is not connected to the internet.
Is there a way to download dpkg and its dependencies for macports and install the packages on the offline machine?
I have seen people mention to set it up on an online machine and move the whole macports folder, however the only machine I have online is running a different OSX version which could cause issues.
Thanks in advance.
You could try to download all sourcefiles using
sudo port fetch rdepof:dpkg
and then copy everything in (/opt/local/var/macports/distfiles/) to the offline machine and put it in the same folder there.
Then you should be able to build dpkg using
sudo port install -s dpkg
The -s option forces macports to build from source. (Prevent MacPorts from installing pre-built package?)

Resources