Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219
Rep:
How to install FFmpeg?
I need to install ffmpeg but when i try to install it i getting some errors and i dont see it installed.
I downloaded it using this command:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
Then i typed ./configure but i see some errors on end.
What went wrong?Also is it requied to install ffmpegphp also or ffmpeg will be enough to using it with script which require ffmpeg.Operative system is cent os 5.2
I need to install ffmpeg but when i try to install it i getting some errors and i dont see it installed.
I downloaded it using this command:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
Then i typed ./configure but i see some errors on end.
What went wrong?Also is it requied to install ffmpegphp also or ffmpeg will be enough to using it with script which require ffmpeg.Operative system is cent os 5.2
Might be more helpful if you actually included the errors you got. Also, you don't say what "script which require ffmpeg" you mean, so it's hard to say what dependencies you're going to need.
I'd go to http://rpm.pbone.net, and get a binary for your system, rather than building from source. Since you don't provide specifics for your problem, we can only offer a generic solution.
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219
Original Poster
Rep:
There is no errors in ./configure, and this shows during make
Creating config.mak and config.h...
config.h is unchanged
root@frajkt [/home/ffmpeg]# make
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/home/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavdevice/v4l2.o libavdevice/v4l2.c
In file included from libavdevice/v4l2.c:38:
/usr/include/linux/videodev2.h:461: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âv4l2_std_idâ
/usr/include/linux/videodev2.h:544: error: expected specifier-qualifier-list before âv4l2_std_idâ
/usr/include/linux/videodev2.h:561: error: expected specifier-qualifier-list before âv4l2_std_idâ
/usr/include/linux/videodev2.h:599: error: expected specifier-qualifier-list before âv4l2_std_idâ
/usr/include/linux/videodev2.h:622: error: expected specifier-qualifier-list before â__s64â
libavdevice/v4l2.c: In function âfirst_fieldâ:
libavdevice/v4l2.c:191: error: âv4l2_std_idâ undeclared (first use in this function)
libavdevice/v4l2.c:191: error: (Each undeclared identifier is reported only once
libavdevice/v4l2.c:191: error: for each function it appears in.)
libavdevice/v4l2.c:191: error: expected â;â before âstdâ
libavdevice/v4l2.c:193: error: âstdâ undeclared (first use in this function)
libavdevice/v4l2.c:197: error: expected â)â before numeric constant
libavdevice/v4l2.c:197: error: expected â)â before numeric constant
libavdevice/v4l2.c:197: error: expected â)â before numeric constant
libavdevice/v4l2.c: In function âv4l2_set_parametersâ:
libavdevice/v4l2.c:474: error: âstruct v4l2_standardâ has no member named ânameâ
libavdevice/v4l2.c:480: error: âstruct v4l2_standardâ has no member named âidâ
libavdevice/v4l2.c:481: error: âv4l2_std_idâ undeclared (first use in this function)
libavdevice/v4l2.c:481: error: âstruct v4l2_standardâ has no member named âidâ
make: *** [libavdevice/v4l2.o] Error 1
And this on make install:
/usr/include/linux/videodev2.h:461: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âv4l2_std_idâ
/usr/include/linux/videodev2.h:544: error: expected specifier-qualifier-list before âv4l2_std_idâ
/usr/include/linux/videodev2.h:561: error: expected specifier-qualifier-list before âv4l2_std_idâ
/usr/include/linux/videodev2.h:599: error: expected specifier-qualifier-list before âv4l2_std_idâ
/usr/include/linux/videodev2.h:622: error: expected specifier-qualifier-list before â__s64â
libavdevice/v4l2.c: In function âfirst_fieldâ:
libavdevice/v4l2.c:191: error: âv4l2_std_idâ undeclared (first use in this function)
libavdevice/v4l2.c:191: error: (Each undeclared identifier is reported only once
libavdevice/v4l2.c:191: error: for each function it appears in.)
libavdevice/v4l2.c:191: error: expected â;â before âstdâ
libavdevice/v4l2.c:193: error: âstdâ undeclared (first use in this function)
libavdevice/v4l2.c:197: error: expected â)â before numeric constant
libavdevice/v4l2.c:197: error: expected â)â before numeric constant
libavdevice/v4l2.c:197: error: expected â)â before numeric constant
libavdevice/v4l2.c: In function âv4l2_set_parametersâ:
libavdevice/v4l2.c:474: error: âstruct v4l2_standardâ has no member named ânameâ
libavdevice/v4l2.c:480: error: âstruct v4l2_standardâ has no member named âidâ
libavdevice/v4l2.c:481: error: âv4l2_std_idâ undeclared (first use in this function)
libavdevice/v4l2.c:481: error: âstruct v4l2_standardâ has no member named âidâ
make: *** [libavdevice/v4l2.o] Error 1
And funny thing when you type ffmpeg installation cent os 5.2 in google you get this thread as third result.Didnt know google somuch love this forum.
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219
Original Poster
Rep:
Hmm i tried yum install ffmpeg with dag repo and it seems it is installed,but i dont see it anywhere installed when i type whereis ffmpeg and script installer which require ffmpeg cant find it during check.Does that mean it is not correct version?
Also considering i used command svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg i think that is latest version of ffmpeg.
I think i can install with yum command but question is which repo is the right one.I finded additional repos here http://wiki.centos.org/AdditionalResources/Repositories but again question is does any of them support ffmpeg.
And this is gcc version:
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
This is output after yum install ffmpeg
(4/14): a52dec-0.7.4-8.el 100% |=========================| 78 kB 00:00
(5/14): libtheora-1.0alph 100% |=========================| 708 kB 00:00
(6/14): xvidcore-1.1.3-1. 100% |=========================| 531 kB 00:01
(7/14): libmp4v2-1.5.0.1- 100% |=========================| 895 kB 00:02
(8/14): lame-3.97-1.el5.r 100% |=========================| 619 kB 00:02
(9/14): giflib-4.1.3-7.1. 100% |=========================| 39 kB 00:00
(10/14): ffmpeg-0.4.9-0.9 100% |=========================| 5.3 MB 00:16
(11/14): libid3tag-0.15.1 100% |=========================| 75 kB 00:00
(12/14): faac-1.25-2.el5. 100% |=========================| 134 kB 00:00
(13/14): x264-0.0.0-0.4.2 100% |=========================| 789 kB 00:03
(14/14): gsm-1.0.12-1.el5 100% |=========================| 63 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Well, it seems to be installed, but
"whereis ffmpeg" should reply :
"ffmpeg: /usr/bin/ffmpeg /usr/share/man/ ..."
Quote:
Description: ffmpeg is a hyper fast realtime audio/video encoder,
a streaming server and a generic audio and video file converter.
It can grab from a standard Video4Linux video source and convert it into
several file formats based on DCT/motion compensation encoding. Sound is
compressed in MPEG audio layer 2 or using an AC3 compatible stream.
"ffmpeg" is not an application, you will "see" (command line use)
and it is used by other applications.
I have no idea what the failure is ... ('whereis ffmpeg' ... etc.)
But try this : 'yum install ffmpeg-devel' and 'yum install ffmpeg-libs'
... and see what happens.
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219
Original Poster
Rep:
Nop it didnt wokr that too.Last thing which i didnt tried yet is installing by rpm.
I finded this one rpm:ffmpeg-0.4.9-0.9.20070109.rf.el5.rf.i386.rpm which it seems is latest version and it's for el5 which you said it could be work.Since it requires a lot of depencies it will take time but maybe then it will finaly work.Btw i tried also some things with help from people on cent os irc but it seems that didnt help too.They told me to install rpmforge and then on yum install ffmpeg i getting error on depencies which should'nt happening since is yum designed to not have depencies.
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219
Original Poster
Rep:
Hmm it seems i founded solution by total accident.I was exploring trees and finded directory usr/src.That is wrong directory since src directory is on usr/local/src.Then i noticed subdirectory redhat and directory inside SOURCES.Inside i finded ffmpeg file in b2 format.Since i dont know how to manage that format,i searched on google until i finded proper command to uncompress it.Then it turned to tar format,where standar command xvzf doesnt work so i applied command xvf instead.Then i got directory ffmpeg,did configure make and install and i noticed there is no errors since it took long time time to compile it.Nice to know it finaly works now after somuch researching,but question is how did that b2 file arrived into that directory.Maybe command yum install mpeg was install it instead doing it real install.Since on other server with same configuration there is nothing in that directory.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
The system "src" is /usr/src/ and is meant for kernel
source and rpm packages 1) packages build on your OS ...
and 2) installed "packages.src.rpm" ... so you probably
installed an 'ffmpeg-x.xx-X.src.rpm' which is "installed"
in SOURCE as e.g. package.tar.bz2 .
* to be extracted with command 'tar jxvf ... '
About /usr/local/src : Not used at all on most Linux.
/usr/ is a filesystem hierarchy that is often used for user installed programs. When you install from a tar ball, it may be assumed unless you add an option to the ./configure script. If I install from a tarball, I will work from my home directory and just run the "make install" phase as root.
Code:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
--bindir=DIR user executables in DIR [EPREFIX/bin]
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data in DIR
[PREFIX/share]
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data in DIR
[PREFIX/com]
Alway read through the options of "./configure --help". You might also have a mixture of files in /usr/ from installing from rpm and /usr/local/ from installing from source.
If you installed from an rpm package, run "rpm -ql <package-name>" to get a list of the files installed.
If you want to uninstall a package you install from source; run "make uninstall".
After running "make", if there is a problem, you may need to run "make clean" to remove intermediate files created, before trying again.
For Fedora Core at least, you could install packages like xine and MPlayer from the livna repository. Your CentOS installation may use the same packages and library versions that a particular Fedora Core distro used. This might help if you can't find a CentOS or RHEL repository for media enabled packages.
Last edited by jschiwal; 08-21-2008 at 02:18 AM.
Reason: fixed typo
whereis ffmpeg will only work after udatedb has been run.
On my systen that is a cron-job which is run once a day. It will not show a result for newly installed packages until then. which ffmpeg however should work.
whereis ffmpeg will only work after udatedb has been run.
On my systen that is a cron-job which is run once a day. It will not show a result for newly installed packages until then. which ffmpeg however should work.
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219
Original Poster
Rep:
Quote:
Originally Posted by knudfl
The system "src" is /usr/src/ and is meant for kernel
source and rpm packages 1) packages build on your OS ...
and 2) installed "packages.src.rpm" ... so you probably
installed an 'ffmpeg-x.xx-X.src.rpm' which is "installed"
in SOURCE as e.g. package.tar.bz2 .
* to be extracted with command 'tar jxvf ... '
About /usr/local/src : Not used at all on most Linux.
Regards
In shortly i am sure dag repo method which you suggested before installed that in usr/src/redhat/SOURCES directory.Beacuse after that i tried rpmforge method which was suggested by people on centos irc but that caused only more errors.But i noticed that b2 file on that directory before i started with installing rpmforge so logicly nothing else can cause that beside using dag repo and then yum install ffmpeg(where it look like it was not installed it all and actualy it installed source which works for this version of centos)I checked other server with same configuration and there directory SOURCES is empty which confirm this.And also i didnt tried any other method beside install dag repo and later rpmforge.I was still thinking about installing depencies for rpm install attemp but luckily i didnt need to do that.In shortly you gived me right solution and i thank you for that
Centos irc people suggested that and then it showed error about missing depencies of some libraly which is strange since yum system is maden to avoid that depencies erorrs.Even when i installed that what was missing it still showed that error.Could be something with cent os latest version what makes that old methods of install invalid.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.