live555 Live USB camera to realize streaming media service

Source: Internet
Author: User

Preface: This blog is based on http://blog.csdn.net/nieyongs/article/details/17919325, on the basis of its environment to do an elaboration, remember to prevent forgetting. First of all thank bloggers, to be able to debug their original code share, but the download code is not run, the lack of support for the library. The following will be the setting up of the environment including library function reference and header file, do a description.

1 Library files.

A: First you have to install FFmpeg and x264 encoding. There are a lot of tutorials on the internet, but I forgot which one to use, I suggest to find more and more detailed. Note The general installation after ffmpeg will be placed in the./usr/local/ffmpeg/. There are both a library file and a header file in this area. Also x.264 to uninstall and then compile (make) installation, there should be tutorials on the Internet.

B: After installing ffmpeg, you need to set the appropriate library file path in Eclipse's engineering settings. Set the result as follows, note that in libraries (-L) The order of the Live555 is not mistaken because it is an interdependent relationship, and the wrong order is the wrong procedure. My library of FFmpeg is a dynamic library placed in the./usr/local/ffmpeg/lib, about the other Live555 and x.264 of the static library is placed in the./usr/local/lib, if you don't understand about static libraries and dynamic libraries please see

The writing of the Eclipse Static library. Http://www.haogongju.net/art/2728386

Authoring http://blog.163.com/baosongliang@126/blog/static/19493570201372954930401/for Eclipse dynamic libraries



C: And then compile the time encountered some problems, for example, I encountered problems and solutions:

Problems 1:x264 and FFmpeg encountered after compiling some of the problems: Uint64_c. You can refer to http://blog.csdn.net/topurce/article/details/7258143

Http://www.cnblogs.com/dyllove98/archive/2013/06/07/3125111.html

Question 2: described below


Workaround:

$ gedit/etc/ld.so.conf, edit and then add a few lines of code here

Include/etc/ld.so.conf.d/*.conf
/usr/local/ffmpeg/lib
/usr/local/lib

And don't forget it. # ldconfig Use this command to take effect. can refer to: http://blog.csdn.net/ming470612141/article/details/3348063

Http://www.cnblogs.com/dyllove98/archive/2013/06/07/3125111.html

Question 3: As pictured on the right

Description x264 is not compiled and installed, enter the x264 directory, reference map http://blog.csdn.net/commshare/article/details/18453963 with the command./configure-- Enable-static--disable-opencl--disable-asm after recompiling the installation side to generate a new static library function, libx264.a, with the command cp-r./home/frank/x264/libx264.a./ usr/local/lib/copy to the appropriate directory. And then run down:


Run successfully, and then the LAN can pass.

Note that the above files need to be under the premise of Superuser, in order to facilitate the use of command sudo-i, you can become Superuser


2 header files. There are many reference headers in the program, and the program refers to the library function through a header file. The related. h files need to be added separately in./usr/local/include. Live contains all header files for four libraries.


The next task is to understand the code, and then this code based on the implementation of HiSilicon HI3518C platform to capture video with Live555 transmission

3 has been debugged before, and today there is a problem debugging

Directly above:

Follow the online method: Make clean in the corresponding debug directory but still not

Finally the/usr/local/lib under the Liblivemedia.a deleted, and then copied one over, you can


Related Article

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: info-contact@alibabacloud.com 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.