SS之创建Smooth Streaming web server

Smooth Streaming is the Microsoft implementation of adaptive streaming technology, which is a form of Web-based media content delivery that uses standard HTTP. Instead of delivering media as full-file downloads, or as persistent (and thus stateful) streams, the content is delivered to clients as a series of MPEG-4 (MP4) fragments that can be cached at edge servers. Smooth Streaming-compatible clients use special heuristics to dynamically monitor current network and local PC conditions and seamlessly switch the video quality of the Smooth Streaming presentation that they receive. As clients play the fragments, network conditions may change (for example, bandwidth may decrease) or video processing may be impacted by other applications that are running. Clients can immediately request that the next fragment come from a stream that is encoded at a different bit rate to accommodate the changing conditions. This enables clients to play the media without stuttering, buffering, or freezing. As a result, users experience the highest-quality playback available, with no interruptions in the stream.

SS的源是很多个不同比特率的视频文件,client播放时不是把整个视频都download下来,而是一个fragment一个fragment的请求,如果网络状况好,可以请求bit rate高的视频fragment,用户看的就是比较清晰的画面,如果网络比较烂,client请求bit rate低的fragment,用户看到的画质没那么好,但是至少整个视频的播放是流畅的,不会出现缓冲、画面暂停、抖动等不太好的体验。

 

Getting Started with IIS Smooth Streaming

http://learn.iis.net/page.aspx/558/getting-started-with-iis-smooth-streaming/

这篇文章介绍了怎么从头自己搭建一个SS web server。

1. 安装IIS:IIS Management Console, 启用ASP.NET for IIS.

2. 安装 IIS Media Services 4.0。随便选择一个webstie或者Virtual directory,在IIS Manager的Media Services区域能看见Smooth Streaming Presentations,就说明装好了。

3. 下载sample content,比如Big Buck Bunny H.264 720p.zip。解压在D:\SmoothStreaming\SS_BigBuckBunny目录下。

4. 在IIS上创建一个应用Default Web Site -> Add Application, Alias 写 BigBuckBunny,物理路径选D:\SmoothStreaming\SS_BigBuckBunny。在IIS Manager -> Smooth Streaming presentations -> Content View 下面能看到上面这些文件。

5. Sample client:SmoothStreamingPlayer.exe,下载解压后,放到SS_BigBuckBunny目录下。一共3个文件:

Smooth Streaming Player-ReadMe.doc:指导如何配置html文件。

Smooth Streaming Player.xap:A sample webpage in which you must update the media reference to the on-demand SS presentation.

Smooth Streaming Player.html: The sample Smooth Streaming player.

6. 用编辑器打开Smooth Streaming Player.html,将“mediarul”属性的内容改成:http://[server_name]/BigBuckBunny/BigBuckBunny.ism/manifest

7. 在浏览器中打开:http://[server_name]/BigBuckBunny/Smooth Streaming Player.html 可以观看SS了。

 

如果想创建自己的SS流,可以看这个:

Smooth Streaming Deployment Guide( 可以下载成pdf)

http://learn.iis.net/page.aspx/689/smooth-streaming-deployment-guide/

1. 安装Microsoft Expression Encoder 4

2. 打开,选择Silverlight Project

3. File -> Import... 选择一个wmv文件

4. 在presets标签(就是预设),Encoding for Silverlight -> IIS Smooth Streaming,这里已经有一个各种参数的list了,选择一个比如:VC-1 IIS Smooth Streaming-HD 720p VBR,点击Apply(应用)

5. Templates tab选一个Silverlight player, 比如Smooth streaming Graphing Player。待会儿生成完SS的流以后,会自带一个player。

6. Job Output,选择Directory,输出目录。

7. 在Source tab 点 Encode等一会儿就编码完毕了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值