Analysis on getting started compilation and use of live555 Library

Source: Internet
Author: User

Analysis on getting started compilation and use of live555 Library

Introduction

Live555 is a cross-platform C ++ open-source project that provides solutions for streaming media. It implements standard streaming media transmission as a cross-platform C ++ open-source project that provides solutions for streaming media, it supports standard streaming media transmission protocols such as RTP/RTCP, RTSP, and SIP. Live555 provides streaming, receiving, and processing support for audio and video data in multiple audio and video encoding formats, including MPEG, H.263 +, DV, JPEG videos, and multiple audio encodings. At the same time, due to its good design, Live555 is very easy to extend its support for other formats.

Main Branch

Live555 mainly includes four important Libraries: UsageEnvironment, groupsock, liveMedia, and BasicUsageEnvironment. live555 is the interface implementation we need in the secondary development process. There is also a testProgs Directory, which contains some basic demo programs. You can start from here.

Source code download

Here we can download the latest liv555's related source code, all of which end with .tar.gz. This is also downloaded in windows. I downloaded the latest.

Compile

The official website also provides detailed descriptions of different platforms, which are described as follows:

// Linux platform How to configure and build the code on Unix (including Linux, Mac OS X, QNX, and other Posix-compliant systems) the source code package can be found (as a ".tar.gz" file) here. use "tar-x" and "gunzip" (or "tar-xz", if available) to extract the package; then cd to the "live" directory. then run. /genMakefiles <OS-platform> where <OS-platform> is your target platform-e.g ., "linux" or "solaris"-defined by a "config. <OS-platform> "file. this will generate a Makefile in the "live" directory and each subdirectory. then run "make ". // Windows platform How to configure and build the code on WindowsUnpack and extract the '.tar.gz 'file (using an application such as "WinZip "). if the 'tool' directory on your Windows machine is something other than "c: \ Program Files \ DevStudio \ Vc", change the "TOOLS32 =" line in the file "win32config ". in a command shell, 'cd' to the "live" directory, and run genWindowsMakefilesThis will generate-in each subdirectory-"*. mak "makefile suitable for use by (e.g .) microsoft Visual Studio.

Because I studied live555 in ubuntu, I mentioned the error during compilation,

After you run./genMakefiles linux, the following error occurs when you run make:


The above is mainly because the development environment of ubuntu is not installed properly (a disadvantage of the ubuntu system, you have to come to everything yourself)
Sudo apt-get install build-essential // <if dependency is prompted during installation, install the corresponding file package. if the version does not match, remove it first, and then install>
After successful installation, run make. After successful installation, the required. a file is generated in the corresponding BasicUsageEnvironment, groupsock, liveMedia, and UsageEnvironment folders. We recommend that you do not use make install to install it on the system. It is unnecessary. You can click make install to install it. After using make, go to the mediaSever directory and you will find that the live555mediaServer executable file is generated. Yes, this is a simple rtsp service program that comes with live555, let's take a rough look at the live555 features before using them, as shown in after running
In this case, the rtsp service is running normally. in the red box, it is the url address of a request file stream of the live555 Library Automatic System, change <filename> to the corresponding h264 playback file under the mediaSever directory. For example, if the stream playback address below is rtsp: // 10.0.2.15: 8554/test10.264, the effect is as follows:


After getting started with the live555 compilation, I will continue to introduce the relevant knowledge in the following sections, including the functions of the four libraries, the playback of file streams by myself, and the playback of real-time video streams.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.