If the paper is original articles, reprint please indicate the original source This article blog: blog.csdn.net/qq21497936/… Long term continue to bring more projects and technology to share, consulting please add QQ:21497936, wechat: Yangsir198808 red fatty (red imitate) blog: Development technology set (including Qt practical technology, raspberry PI, 3D, OpenCV, OpenGL, FFMPEG, OSG, SCM, soft and hard combination, etc.) continue to update… (Click on the portal)

FFmpeg, SDL, and streaming media development columns


preface

Build streaming media server software on PC, open video to accept push streaming, and use Live555 scheme.


Live555 introduction

Live555 is a cross-platform C++ open source project to provide solutions for streaming media, which realizes the standard streaming media transmission. It is a cross-platform C++ open source project to provide solutions for streaming media, which realizes the support of standard streaming media transmission protocols such as RTP/RTCP, RTSP, SIP, etc. Live555 supports streaming, receiving and processing of audio and video data in a variety of audio and video encoding formats, including MPEG, H.263+, DV, JPEG video and a variety of audio encoding. And because of its good design, Live555 is very easy to extend support for other formats. Live555 has been used in many players such as VLC(VideoLan) and MPlayer. Live555 can develop client pull stream, push stream and Live555 streaming media server.

Live555 download

Official website address: www.live555.com/ QQ group: 1047134658 (click “file” to search “Live555”, group and blog post update)


Live555 in Windows 10 system vs2017 compiler

Step 1: Download and decompress

  

Step 2: Create an empty project using VS2017

  

Step 3: Copy the source code of Live555 and add it to the project

        The header file path needs to be included

Step 4: Change the target of the project to a static library

  

Step 5: Problems such as _CRT_SECURE_NO_WARINGS occur during compilation

  Add two macros

_CRT_SECURE_NO_WARNINGS
_WINSOCK_DEPRECATED_NO_WARNINGS
Copy the code

  

Step 6: Compile successfully, continue to generate the release library

After switching release, you need to add the library path and macro again, and repeat steps 3, 4 and 5.

Step 7: Organize the four versions of libraries and header files

  


modular

  


Demo

void Live555Manager::testEnv()
{
    qDebug() << __FILE__ << __LINE__ << BASICUSAGEENVIRONMENT_LIBRARY_VERSION_STRING;
    qDebug() << __FILE__ << __LINE__ << USAGEENVIRONMENT_LIBRARY_VERSION_STRING;
    qDebug() << __FILE__ << __LINE__ << GROUPSOCK_LIBRARY_VERSION_STRING;
}
Copy the code


The results

  


Project template V1.0.0

Project template: Live555demo_V1.0.0 _ Basic template _ Running Environment test.rar


If this article is the original article, please indicate the original source of this article blog address:Blog.csdn.net/qq21497936/…