Live555 + v4l2 + ffmpeg + x264 Development Environment on ubuntu12.04, live555v4l2

Source: Internet
Author: User

Live555 + v4l2 + ffmpeg + x264 Development Environment on ubuntu12.04, live555v4l2

I upload the main resources that might be used to the dial:

The main steps for installing ubuntu are decompression, configure, make, and sudo make install.

Live555 installation can be viewed here:

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:

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.