Using IIS Live Smooth streaming technology to build a streaming media live system _win Server

Source: Internet
Author: User
Tags silverlight

The IIS live Smooth streaming (real-time smooth streaming) is Microsoft's next generation streaming media solution. The technology is to integrate the media transport platform IIS Media Services in the IIS Web to enable the use of standard HTTP Web technology and advanced Silverlight functionality to ensure the best quality and smooth audio and video broadcasts on the interconnect.

This technique has the following advantages:

1, smooth flow processing is an adaptive streaming technology, through dynamic monitoring of local bandwidth and video rendering performance, smooth streaming processing can real-time switch video quality to optimize the content of playback, with high-bandwidth connections and advanced computer viewers can experience Full HD quality streaming, Other audiences with low bandwidth or older computers can receive streams that fit their functionality.

2, can transmit full HD on-demand and real-time streaming without intermittent problems.

3. The IIS bit rate throttling extension controls the rate at which media can be transferred over HTTP, thereby saving network bandwidth costs.

4, smooth streaming processing can be applied to on-demand (provided by the IIS smooth streaming extension) and real-time broadcast (provided by the IIS real-time smooth streaming processing extension) two different application requirements.

Disadvantage: Using smooth streaming technology to implement live broadcast is not a completely free solution, it must use Microsoft Expression Encoder Pro as a streaming media encoder (in the previous streaming media server solution, Windows Meida Encode is completely free of charge. The free Microsoft Expression Encoder does not support smooth streaming, which is integrated in Microsoft Expression and is charged.

Solution Layout Diagram:

First, preparation and installation

1. Because IIS Live Smooth streaming only supports IIS 7 and above, the server operating system that we use must be Windows 7, Windows Server 2008, Windows Server 2008 R2.

This experimental environment is a Windows Server 2008 R2.

To add a Web server (IIS) to the Server Manager

2. Download IIS Media Services 4.1 and install IIS Media Services 4.1 (on the server)

Download Link:

http://www.microsoft.com/zh-cn/download/details.aspx?id=27955

3. Prepare Microsoft Expression Encoder Pro 4.0 and install Microsoft Expression Encoder Pro 4.0 (on a video capture computer)

Reference Address:

Http://www.microsoft.com/expression/products/Purchase.aspx

Installation can refer to the steps in the previous WMS 2008

Second, configure live Smooth streaming, create live publishing point

can refer to:

Http://www.iis.net/learn/media/live-smooth-streaming/getting-started-with-iis-live-smooth-streaming

1, open start-management tools-internat Information Service Management program

In the Open Hypervisor interface, select the site or virtual directory you want to set, and double-click the live Smooth streaming Publishing points icon.

After opening, there will be alert prompts, click Update application pool settings

2, on the right side of the "Operations" Panel under the publishing point, click Add.

3, in the pop-up "Add Publishing Point" dialog box, select the Basic Settings tab.

Enter the following information:

FileName: Enter a name for the definition file for the live Smooth streaming publishing point

The file name used here is "Livesmoothstream" (customizable).

Estimated duration: The duration of live broadcasts

So that the client Silverlight player can display the appropriate progress time range for the playback content.

2 hours of continuous live time are available here.

Real-time Source type: Here our live Smooth streaming server as a live source server, it received from the Expression Encoder Pro program content. So, we choose the default push option.

The "pull" option is to get the program source content from another live Smooth streaming server, so that the workload can be distributed across multiple servers to form a service cluster.

4. Switch to the Advanced Settings tab and select the Automatically start publishing point on the first client request selection box. This setting is to allow the editor to connect to the publishing point when the broadcast begins. If you do not allow this setting, a connection error may occur.

5. If you want Livesmoothstream to support Apple's mobile digital devices to play live video broadcasts, on the Mobile Devices tab, select the "Allow output to the Apple Digital mobile device (E)" selection box.

6, click OK after completion.

A new live Smooth streaming publishing point file Livesmoothstream.isml is added to the root directory of the network.

7, in the middle of the "real-time smooth streaming publishing point" operator panel, select the publishing point has been joined, and then on the right

Side of the "Operations" Panel, click Start Publishing Point

8. The publishing point state changes from idle to "starting", which means that it is waiting for external data to be passed in.

This is a live streaming streaming media data waiting to be sent from the Expression Encoder Pro Editor.

When the data from the Expression Encoder Pro Editor is accepted from the publishing point, its status becomes state. You need to refresh the live Smooth streaming Publishing point page in IIS Manager to see this state change.

Third, configure Expression Encoder Pro Video acquisition computer

1. Open Microsoft Expression Encoder Pro 4.0 on the video capture computer and select live Broadcast project in the Load New Project dialog box.

2, open the Expression Enconder 4.0 Working window, first click on the middle preview to add real time source

Select a live source video device and audio device in the live source pane on the left

3, click on the right "preset" panel, for live Smooth streaming live broadcast scheme to choose the adjustable encoding rate and encoding format. On the Encoding tab, select IIS smooth streaming. You can customize the output format, video, audio format.

4, click the "Output" tab, select the "Streaming" selection box, and then click "Publishing Point", in the "location"

Enter the URL of the publishing point for the valid live video. The general format of the URL is:

Http://ServerName/SiteName/DirectoryName/PublishingPointDefinitionFileName.isml

The smooth streaming publishing point here is the publishing point we created above, the format is:

Http://192.168.1.104/LiveSmoothStream.isml

Click the "Connect" button to test whether the publishing point is connected properly. For the connection to be valid, you must start the publishing point set up on the server.

5, if you want to add digital copyright in the program, select the "Digital Rights Management" option in the "Output" tab. However, if you want programs to support Apple devices, you cannot choose Digital Rights management protection.

6, in the Real-time Source tab click "Positioning", so that your real-time broadcast source began to work.

7, click the "Start" button, start live broadcast.

Install the live Live Web page sample on the Web server.

To see live video streaming through a Web server, you must have a Web page with a tab embedded in the Silverligh player page. Microsoft provides an example of a Web page.

Download Address: http://go.microsoft.com/?linkid=9738294

Extract the downloaded SmoothStreamingPlayer.exe file to the folder, and you can see the following three files.

and copy three files to the default root directory of the IIS Web site C:\inetpub\wwwroot

Smooth streaming Player-readme.doc, configuration specification documentation.

smoothstreamingplayer.html, embed the sample Web document for the Slilverligh player.

Smoothstreamingplayer.xap,smooth Streaming player example.

You can see the following code in the smoothstreamingplayer.html file:

Copy Code code as follows:

<object data= "data:application/x-silverlight-2," type= "Application/x-silverlight-2" 100% "height=" 100% ">
<param name= "source" value= "smoothstreamingplayer.xap"/>
<param name= "OnError" value= "Onsilverlighterror"/>
<param name= "Background" value= "white"/>
<param name= "minRuntimeVersion" value= "4.0.50401.0"/>
<param name= "AutoUpgrade" value= "true"/>
<param name= "InitParams" value= "selectedcaptionstream=textstream_eng,mediaurl=http:// Streams.smooth.vertigo.com/elephantsdream/elephants_dream_1024-h264-st-aac.ism/manifest "/>
<a href= "http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style= "Text-decoration:none" >


</object>


Open the smoothstreamingplayer.html file in the editor and modify the URL of the Mediaurl property to the live Smooth streaming publishing point.

Here is: Http://192.168.1.104/LiveSmoothStream.isml/manifest.

If you want, you can adjust the width and Height property to modify the size of the play box.

The audience computer installs the Silverlight player plug-in to watch the program.

Install the Silverlight player plugin on the computer that you want to watch live live online (Windows7 is already with you, not installed; Windowxp must be installed)

Download Address:

Http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx

Open in Browser

Http://192.168.1.104/SmoothStreamingPlayer.html, you can see the live radio program.

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.