LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-05-2011, 01:00 PM   #1
skillednerd
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Rep: Reputation: 0
ffmpeg fails to compile


I am having trouble getting ffmpeg to compile.

I have removed x264 and reinstalled making sure shared was enabled. Then ran ldconfig.

./configure woks but fails in make.

Here is my compile variables

Code:
 ./configure  --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
And here is the error.
Code:
cmdutils.c:736: warning: ignoring return value of āfreadā, declared with attribute warn_unused_result
LD      ffmpeg_g
/usr/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_param_default'
/usr/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_encoder_headers'
/usr/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_encoder_encode'
/usr/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_encoder_reconfig'
/usr/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_encoder_delayed_frames'
/usr/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_114'
/usr/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_picture_init'
/usr/src/ffmpeg/libavcodec/libavcodec.so: undefined reference to `x264_encoder_close'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1
 
Old 04-05-2011, 02:36 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,635

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
Hi,

You should run "make distclean" or "make clean" into the ffmpeg sources directory before trying to recompile it.

Regards
 
Old 04-05-2011, 02:39 PM   #3
skillednerd
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Yes I have done that every time I try to recompile.
 
Old 04-05-2011, 05:15 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,635

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
Are you compiling ffmpeg in /usr/src/ffmpeg?
Then it could be that the x264 library version you used is incompatible with ffmpeg. FYI the latest x264 from git (git clone git://git.videolan.org/x264.git) compiles fine with the latest ffmpeg git (git clone git://git.videolan.org/ffmpeg.git ffmpeg), so remove the old x264 stuff (make uninstall) and try with the sources from git for both.
 
Old 04-05-2011, 05:58 PM   #5
skillednerd
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Ok thanks that did get me further I did get it recompiled but ffmpeg still won't actually use
x264 for some reason. Example below.

Code:
 ffmpeg -y -i melt1.MPG -acodec aac -ab 72k -s 320x176 -aspect 16:9 -vcodec h264 -b 300k -qcomp 0.6 -qmin 16 -qmax 51 -qdiff 4 -flags +loop -cmp +chroma -subq 7 -refs 6 -g 250 -keyint_min 25 -rc_eq 'blurCplx^(1-qComp)' -sc_threshold 40 -me_range 12 -i_qfactor 0.71 -directpred 3 melt1.mp4
FFmpeg version git-N-28891-gda53f05, Copyright (c) 2000-2011 the FFmpeg developers
  built on Apr  5 2011 17:02:57 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
  libavutil    50. 40. 1 / 50. 40. 1
  libavcodec   52.117. 0 / 52.117. 0
  libavformat  52.105. 0 / 52.105. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 77. 1 /  1. 77. 1
  libswscale    0. 13. 0 /  0. 13. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[mpegvideo @ 0x12f85ae0] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegvideo, from 'melt1.MPG':
  Duration: 00:00:00.01, bitrate: 104858 kb/s
    Stream #0.0: Video: mpeg1video, yuv420p, 320x200 [PAR 1:1 DAR 8:5], 104857 kb/s, 23.98 fps, 23.98 tbr, 1200k tbn, 23.98 tbc
Unknown encoder 'h264'
 
Old 04-05-2011, 07:53 PM   #6
skillednerd
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Ok the problem is that the encoder needed -vcodec libx264 and not -vcodec h264
 
Old 04-26-2011, 05:57 AM   #7
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,092

Rep: Reputation: 295Reputation: 295Reputation: 295
Quote:
Originally Posted by skillednerd View Post
Ok the problem is that the encoder needed -vcodec libx264 and not -vcodec h264
I see as well that you have used -acodec aac. FFmpeg should have warned you to use '-strict experimental' with this aac encoder and advise you to consider using libfaac instead. Mind you there is a new aac encoder available to FFmpeg called vo-aacenc which is well worth chasing up...
 
  


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
[SOLVED] ffmpeg script fails after Squeeze upgrade pljvaldez Linux - Software 1 04-06-2011 11:27 AM
ffmpeg Slackbuild fails in current multilib damgar Slackware 4 01-09-2010 10:12 PM
compile problem of ffmpeg fw12 Linux - Software 6 08-29-2009 09:46 AM
cant compile ffmpeg on FC5 aditya1 Linux - Software 1 09-19-2006 10:06 PM
ffmpeg compile help gfem Linux - Software 4 01-06-2006 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration