Saurabh Sharma
Saurabh Sharma

Reputation: 503

FFMPEG: How to enable libvorbis and libvpx on centos

I have used following command to install libvorbis and libvpx.

yum install libvpx
yum install libvorbis

Please help me to enable these modules. I'm using centos 7 server.

Upvotes: 2

Views: 3901

Answers (1)

llogan
llogan

Reputation: 134093

1. Remove the old ffmpeg

Uninstall the packages you installed from the link you followed. This should also remove the third-party repository you installed.

yum remove epel-release ffmpeg ffmpeg-devel

Remove the signing key you imported:

sudo rpm -e gpg-pubkey-85c6cd8a-4e060c35
sudo rm /etc/pki/rpm-gpg/RPM-GPG-KEY-nux.ro

2. Get a new ffmpeg

Now you can get a more recent ffmpeg that has libvpx, libvorbis (and libopus). You have two options–download or compile:

If you want to download ffmpeg

For Linux and you can get it from johnvansickle.com/ffmpeg/.

curl -LO https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
tar xvf ffmpeg-git-amd64-static.tar.xz
cd ffmpeg-git-201*
sudo cp {ffmpeg,ffprobe} /usr/local/bin

For Windows or macOS see FFmpeg Download.

If you want to compile ffmpeg

See FFmpeg Wiki: CentOS.


Consider using VP9 and Opus instead of outdated VP8 and Vorbis:

ffmpeg -i input -c:v libvpx-vp9 -c:a libopus output.webm

For more info see FFmpeg Wiki: VP9 & VP8.

Upvotes: 2

Related Questions