V
V
Vladimir2011-05-25 09:31:18
linux
Vladimir, 2011-05-25 09:31:18

Compiling ffmpeg on linux

Hello.
Linux experts (centos 5 x64), tell me: how to correctly compile ffmpeg from source, but only so that all the libraries that are needed for ffmpeg to work would be in a certain folder, and not scattered in different directories?

This is necessary in order to transfer the compiled ffmpeg with libraries from one centos to another centos.

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
V
Vladimir, 2011-05-25
@kosenka

I'm a complete nerd in Linux :(
And all sorts of "make an rpm package" , "/configure --options --options --static --options && make" are a dark forest for me.

V
Vadim Misbakh-Soloviev, 2011-05-25
@mva

two counter questions:
1) (competent way) what prevents you from making an rpm-package and transferring an already rpm-package to another machine?
2) (your path) ./configure --options --options --static --options && make

J
Jazzist, 2011-05-25
@Jazzist

A similar fuck I ended up with an irrevocable migration to Ubuntu. It turned out that ffmpeg from the repository of this OS does everything I need. And I needed a lot… Much more than a trivial video hosting. Production handed over on this OS.
In short, take this as a hint.

A
afiskon, 2011-05-25
@afiskon

I'm no expert on CentOS, but I'm sure there's a package system there. In FreeBSD, for example, what you want is done in an elementary way - you build the program (from ports), then save the binary package, which is installed on another machine with the pkg_add -r command. Learn the mat part about the OS you are using.

E
Eol, 2011-05-25
@Eol

When doing “make install” when compiling, specify the DESTDIR parameter, for example: “make install DESTDIR=/path/to/some/folder”. This will force all compiled files to be thrown into the "/path/to/some/folder" folder as the root. And then you can safely transfer this folder. Or make an rpm package out of it, as mentioned in other answers.

V
Vladimir, 2011-05-25
@kosenka

Thank you all :)
I will train on the “home” server, if everything works out, I will transfer it to the “combat” server.

V
Vladimir, 2011-05-26
@kosenka

In general, I didn’t manage to compile ffmpeg or install it from rpm. Some errors popped up.
Apparently “it’s not mine” ... but the solution was still found in the form of a statically compiled ffmpeg . I checked the conversion on CentOS 5 x64 - it works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question