LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-19-2008, 09:51 AM   #1
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Rep: Reputation: 32
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

Last edited by centosfan; 08-19-2008 at 09:53 AM.
 
Old 08-19-2008, 09:57 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,520

Rep: Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944
Quote:
Originally Posted by JACOBKELL View Post
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.
 
Old 08-19-2008, 10:10 AM   #3
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Original Poster
Rep: Reputation: 32
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.
 
Old 08-19-2008, 11:33 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please try this :
http://rpm.pbone.net/index.php3?stat...ch=ffmpeg&dist[]=32&dist[]=52&dist[]=55&field[]=1&field[]=4
The versions for RH EL5 may work.

Or # 'yum install ffmpeg' (you will probably need the
"dag" repo : http://www.boonex.com/unity/blog/ent...eg_on_centos_5

About compile errors : either the ffmpeg is too old
or the compiler is "too new"
Which version of ffmpeg ??
And gcc ?? Version command = 'gcc -v'

Regards
 
Old 08-19-2008, 11:55 AM   #5
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Original Poster
Rep: Reputation: 32
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

Last edited by centosfan; 08-19-2008 at 12:02 PM.
 
Old 08-19-2008, 01:57 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

Good Luck.

Last edited by knudfl; 08-19-2008 at 01:59 PM.
 
Old 08-19-2008, 03:43 PM   #7
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Original Poster
Rep: Reputation: 32
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.
 
Old 08-19-2008, 04:18 PM   #8
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Original Poster
Rep: Reputation: 32
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.
 
Old 08-20-2008, 02:34 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
 
Old 08-20-2008, 02:57 PM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
/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
 
Old 08-20-2008, 03:56 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
If you set up the rpmforge repo correctly (see https://rpmrepo.org/RPMforge/Using) you can just

yum install ffmpeg

It works fine.
 
Old 08-20-2008, 04:50 PM   #12
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
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.
 
Old 08-20-2008, 07:29 PM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by jomen View Post
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.
You're thinking of (s)locate aren't you?
 
Old 08-21-2008, 11:19 AM   #14
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by knudfl View Post
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
 
Old 08-21-2008, 11:22 AM   #15
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by billymayday View Post
If you set up the rpmforge repo correctly (see https://rpmrepo.org/RPMforge/Using) you can just

yum install ffmpeg

It works fine.
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg install with imlib2.so yajur Programming 5 08-18-2008 09:30 AM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 05:16 PM
Install FFmpeg olddocks Linux - Server 3 05-09-2008 10:26 AM
Mplayer how to install FFmpeg mooreted Mandriva 11 02-18-2005 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration