Yet Another Bulletin Board

Welcome, Guest. Please Login or Register.
05/21/13 at 17:48:51

Home Home Help Help Search Search Members Members Login Login Register Register
iLab Forum « couldn't find ffmpeg libraries »


   iLab Forum
   C++ Neuromorphic Vision Toolkit
   Bugs
(Moderators: Forum Admin, Laurent Itti)
   couldn't find ffmpeg libraries
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: couldn't find ffmpeg libraries  (Read 1646 times)
czhang
YaBB Newbie
*



I love YaBB 1G - SP1!

   


Posts: 5
couldn't find ffmpeg libraries
« on: 06/22/12 at 13:45:21 »
Quote Quote Modify Modify

Hi there,
 
I compiled the code in Fedora 17 with 'make'. I then run some tests in README file.
I pass ./bin/ezvision --in=/home/cheng/builds/saliency-20120616/tests/inputs/ezframe#.pnm -T --out=display
However, when I tried to process movies, I got a core-dumped (see the details below).  It seems the program couldn't find ffmpeg libs that is in /usr/include/ffmpeg in my machine.
 
 [cheng@salsa ffmpeg]$ pwd
/usr/include/ffmpeg
[cheng@salsa ffmpeg]$ ls
libavcodec  libavdevice  libavfilter  libavformat  libavutil  libpostproc  libswresample  libswscale
 
I modified configure.ac and changed ADDINC = "-I${source}" into this
ADDINC="-I${source} -I/usr/include/ffmpeg -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat -I/usr/include/ffmpeg/libavdevice -I/usr/include/ffmpeg/libavfilter -I/usr/include/ffmpeg/libavutil ....
 
but didn't work.  
 
I wonder if anyone has suggestion for me to fix this.
 
Thanks,
 
czhang
---------
 
[cheng@salsa saliency]$ ./bin/ezvision --in=/home/cheng/builds/saliency-20120616/tests/inputs/mpegclip1.mpg -T --out=display
segmentImageMC2::segmentImageMC2: CREATED
SimEventQueueConfigurator::paramChanged: Selected SimEventQueue of type Std
PrefrontalCortex::paramChanged: Selected PFC of type Stub
Retina::paramChanged: Selected RET of type Std
EyeHeadControllerConfigurator::paramChanged: Selected Eye/Head Controller of type None
HandControllerConfigurator::paramChanged: Selected Hand Controller of type None
VisualCortexConfigurator::paramChanged: Configuring VC of type Std
VisualCortexConfigurator::paramChanged: Resetting VisualCortex...
RawVisualCortex::paramChanged: Using a Double Opponent ColorChannel with weight 1.000000
RawVisualCortex::paramChanged: Using a FlickerChannel with weight 1.000000
RawVisualCortex::paramChanged: Using an IntensityChannel with weight 1.000000
RawVisualCortex::paramChanged: Using an OrientationChannel with weight 1.000000
OrientationChannel::buildSubChans: Using 4 orientations spanning [0..180]deg
RawVisualCortex::paramChanged: Using a MotionChannel with weight 1.000000
MotionChannel::buildSubChans: Using 4 directions spanning [0..360]deg
RawVisualCortex::paramChanged: RawVisualCortex loaded with 5 top-level channels.
SaliencyMapConfigurator::paramChanged: Selected SM of type Std
GistEstimatorConfigurator::paramChanged: Selected GE of type None
TaskRelevanceMap::paramChanged: Selected TRM of type None
AttentionGuidanceMap::paramChanged: Selected AGM of type Std
AttentionGate::paramChanged: Selected AG of type None
WinnerTakeAllConfigurator::paramChanged: Selected WTA of type Std
InferoTemporalConfigurator::paramChanged: Configuring IT of type None
InferoTemporalConfigurator::paramChanged: Resetting InferoTemporal...
VisualBuffer::paramChanged: Selected VB of type Stub
SimulationViewerConfigurator::paramChanged: Selected SV of type Std
ModelManager::start1: Debug: OFF, FPE: ON, FpuPrecision: extended, FpuRounding: nearest, TestMode: OFF, AtomicIntType: rutz::ix86_atomic_int
error context follows (innermost last):
==> while starting ModelManager 'model':
==> while starting SimInputFrameSeries 'SimInputFrameSeries':
==> while starting InputFrameSeries 'InputFrameSeries':
MpegInputStream::createDecoder: you must have an movie-reading library (such as ffmpeg or QuickTime) installed in order to be able to read movie files
-- ABORT.
./bin/ezvision[0xa5cfb6]
/lib64/libstdc++.so.6[0x341d05ecf6]
/lib64/libstdc++.so.6[0x341d05ed23]
/lib64/libstdc++.so.6(__cxa_rethrow+0x46)[0x341d05ef96]
./bin/ezvision[0x554a8e]
./bin/ezvision[0x416050]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x340fc21735]
./bin/ezvision[0x4211b5]
terminate called after throwing an instance of '(anonymous namespace)::real_lfatal_exception'
  what():  error context follows (innermost last):
==> while starting ModelManager 'model':
==> while starting SimInputFrameSeries 'SimInputFrameSeries':
==> while starting InputFrameSeries 'InputFrameSeries':
MpegInputStream::createDecoder: you must have an movie-reading library (such as ffmpeg or QuickTime) installed in order to be able to read movie files
Aborted (core dumped)
Logged
Laurent Itti
YaBB Moderator
YaBB God
*****




iLab rocks!

   
WWW

Gender: male
Posts: 550
Re: couldn't find ffmpeg libraries
« Reply #1 on: 06/25/12 at 10:20:52 »
Quote Quote Modify Modify

Hi -
 
sorry about that, ffmpeg is quite hard to get to work because it changes all the time, so depending on which exact version you are running some adjustments are often necessary.
 
We usually have 2 tests for each library in configure.ac: one that tests for include files, and the other that actually compiles a little piece of code using the library. It looks like the second one may be failing in your case.
 
after you run configure, have a look at config.log and search for avcodec and similar. You will see which one failed. In configure.ac, search for AC_CHECK_LIB(avcodec
 
maybe the avcodec function we use in the small piece of test code does not exist in your version of ffmpeg, hence the code fails, and the configure script thinks ffmpeg is not installed.
 
best
 
  -- laurent
Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

iLab Forum » Powered by YaBB !
YaBB © 2000-2002,
Xnull. All Rights Reserved.