Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install ffmpeg on ubuntu. and following this article but when m doing make after config

Then go to the ffmpeg folder.
cd ffmpeg
Start the installation
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc \
--enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \
--enable-libopencore-amrwb --enable-libtheora --enable-libvorbis \
--enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab

giving this error

/home/reach121/ffmpeg/libavcodec/x86/cabac.h:93: undefined reference to `ff_h264_norm_shift'
/home/reach121/ffmpeg/libavcodec/x86/cabac.h:93: undefined reference to `ff_h264_lps_range'
/home/reach121/ffmpeg/libavcodec/x86/cabac.h:93: undefined reference to `ff_h264_norm_shift'
/home/reach121/ffmpeg/libavcodec/x86/cabac.h:93: undefined reference to `ff_h264_mlps_state'
/home/reach121/ffmpeg/libavcodec/x86/cabac.h:93: undefined reference to `ff_h264_norm_shift'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1

Please suggest why this error is coming and what to do to solve this problem

share|improve this question

migrated from Jun 25 '11 at 10:57

This question came from our site for professional and enthusiast programmers.

For licensing reasons, FFmpeg does not include all codec libraries. You have to download, compile and install them separately. This is the case for MP3 and H.264 codecs.

A great guide that deals with this can be found here:

Compilation Guide Ubuntu

share|improve this answer
sorry i didnt able to get you , please suggest what i need to do – Rahul Mehta Jun 24 '11 at 8:33
You have to install libx264. Some indications can be found at – mouviciel Jun 24 '11 at 9:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.