Fixing ‘[libavutil/] Error 1’ in ffmpeg make for openCV 2.3.1 install

Screenshot-cw418@hud-desktop: ~-Documents-OpenCV-2.3.1-build-1

Screenshot-cw418@hud-desktop: ~-Documents-OpenCV-2.3.1-build-1

This post describes an error and its solution in ffmpeg make for openCV install. It is based on Osman’s comprehensive troubleshooting of openCV 2.3.1 installing and configuring, but adds an additional error – ‘[libavutil/] Error 1‘ and the solution.

This error happens when running ‘make’ command after the ffmpeg configuration. It is a fatal error which directly stops the make process and fails the ffmpeg install.

why ‘[libavutil/] Error 1’ happens

Osman’s configurations for ffmpeg install are like this:

./configure –enable-gpl –enable-libfaac –enable-libmp3lame –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libtheora –enable-libvorbis –enable-libx264 –enable-libxvid –enable-nonfree –enable-postproc –enable-version3 –enable-x11grab

This was used in my first ffmpeg install, and was added with another line as:

–enable-shared –enable-pic #sorry forgot which prior error this line addressed

But the result turned out this error – [libavutil/] Error 1

The solution

It was suggested over the internet that this problem was caused by the lack of ‘libvpx’ – this was essential to be used with ‘–enable-shared’.

So, clean the previous make using ‘make clean’ or ‘make distclean’, then re-configure the install as:

./configure –enable-shared –enable-libvpx –enable-pic –enable-gpl –enable-libfaac –enable-libmp3lame –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libtheora –enable-libvorbis –enable-libx264 –enable-libxvid –enable-nonfree –enable-postproc –enable-version3 –enable-x11grab

Then ‘make’ – bingo~ errors gone!

Author: Andol Li

A HCI researcher, a digital media lecturer, an information product designer, and a python/php/java coder.

One Comment On “ Fixing ‘[libavutil/] Error 1’ in ffmpeg make for openCV 2.3.1 install”

Leave a comment
Due to technical adjustments, the comment function is shortly closed and will be re-openning soon. Thanks.

Copyrights 2006-2018 © All rights reserved
Theme Tree2, re-designed by Andol Li, powered by WordPress and Bootsrap
WWW.ANDOL.ME | 浙ICP备15040508号-1
公安备案图标 浙公网安备33010602004018号
Back to top