Live555-based live video

Source: Internet
Author: User
Live555-based live video



I have always wanted to live streaming media. Recently I spent some time reading code about live555. Here I would like to recommend two articles:

Http://blog.csdn.net/nkmnkm (long article, analysis is very good)

Http://blog.csdn.net/gavinr (this article is easy to clarify the ideas)


In fact, it is difficult to read these two posts at the beginning. Let's take a look at the content in the folder after live555 compilation to help us understand.

1 worker has a live555mediaserver.exe under the mediaseverdirectory. This is the server generated by live555. We can perform a simple test:

Copy A 264 file, such as test.264, to the directory where the EXE file is located (under the mediasever directory );

Double-click the EXE server;

Open VLC on another machine, use "media --> Open Network streaming", and enter the URL in the DOS window of the server, such as rtsp: // 192.168.1.110/filename, this filename is the name of the video file you copied, and then you can play it.

This is also a server, and there are many other ways to study it by yourself. The live555-Based Live Broadcast Server is designed later to be rewritten based on testondemandrtspserver. cpp.


Live555-based live streaming also found a lot of information on the Internet and read many previous blog posts. Here, we use DirectShow to collect camera videos and then use x264 for encoding. For the server side, refer to testondemandrtspserver. CPP was rewritten to implement live broadcasting ,:



Post work:

Here, we use the video collected by DirectShow without audio collection. Later we can add the audio collection part, encode it, and add the audio stream in testondemandrtspserver. cpp through SMS-> addsubsession;

DirectShow cannot be used across platforms. Therefore, you can consider using opencv to collect videos;

There is an RTSP client developed based on live555 on the Internet. You have the opportunity to study it.

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.