Live555 + v4l2 + ffmpeg + x264 Development Environment on ubuntu12.04, live555v4l2
I upload the main resources that might be used to the dial: http://pan.baidu.com/s/1i38AleP
The main steps for installing ubuntu are decompression, configure, make, and sudo make install.
Live555 installation can be viewed here: http://www.live555.com/liveMedia/#config-unix
The libx264 installation is to decompress the package directly, and then configure, make, and sudo make install. The configure command is as follows:
./Configure -- disable-asm -- enable-static -- enable-shared
The key is ffmpeg, you can see here: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
There are some libraries that you don't think are necessary or you really don't think can be installed on them (after all, they mainly use x264). For example, I didn't compile and install them -- enable-libvpx.
Put the related ffmpeg libraries together. In fact, it is okay not to specify a prefix or something. Depending on your preferences, it is installed to/usr/local/lib by default.
My final configure statement is:
. /Configure -- enable-gpl -- enable-libass -- enable-libfdk-aac -- enable-libfreetype -- enable-libmp3lame -- enable-libopus -- enable-libtheora -- enable-libvorbis -- enable-libx264 -- enable-nonfree -enable-x11grab -- enable-shared
This is not complete yet. You may report an error when compiling and running your own code.
/usr/local/include/libavutil/common.h:30:2: error: #error missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
/usr/local/include/libavutil/common.h:192:47: error: ‘UINT64_C’ was not declared in this scope
The fix method is directly added at the beginning of common. h:
#ifdef __cplusplus#define __STDC_CONSTANT_MACROS#ifdef _STDINT_H#undef _STDINT_H#endif# include <stdint.h>#endif
#ifndef UINT64_C#define UINT64_C(value)__CONCAT(value,ULL)#endif
If the database cannot be found:
Error while loading shared libraries: libavdevice. so.55: cannot open shared object file: No such file or directory
First, confirm that the inventory is in the installation path. If the inventory exists, edit/etc/ld. so. conf file, add the installation path, for example, my installation path is/usr/local/lib. After the modification, the entire file is
Include/etc/ld. so. conf. d/*. conf
/Usr/local/lib
End