新足迹

 找回密码
 注册

精华好帖回顾

· 肌肤补水之源 -----------【美肌之志--Beauty mate】 ------魔头的面膜REVIEW (一)====全文完 (2012-5-6) 魔头 · *^_^*大战饼干*^_^* (2007-8-12) 紫雪花
· 南澳阿德,袋鼠岛,蓝湖9日游(完结) (2011-10-27) kate555 · 【美食接龙】 - 猪血粉丝汤 和 红油牛百叶。下一棒,魔公。材料 - 鸡肫(鸭肫也可以) (2009-9-15) 老陶
Advertisement
Advertisement
查看: 1780|回复: 12

On-demand Video From IIS7 to IOS Devices and Silverlight Client [复制链接]

2010年度奖章获得者

发表于 2010-11-9 11:41 |显示全部楼层
此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
这个有意思。

http://www.hanselman.com/blog/St ... ed:+ScottHanselman+(Scott+Hanselman+-+ComputerZen.com)

First, I've got this file on my hard drive called ScottGuHDTest1. It's a picture in picture (PIP) test that ScottGu and I did a while ago while looking into new ways to deliver educational video content. Consider this my stock video for this example.

If I want to deliver this content to the web over Silverlight Adaptive Smooth Streaming PLUS I want it to look great on an iPhone or iPad regardless of bandwidth, and I want it all done automatically, I'll need these things.

IIS7 - If you Windows 7 or Windows Server 2008 you already have this.
You may need to check a box under Programs and Features. Easiest way is to install all this stuff with the Web Platform Installer and it'll enable IIS for you.
IIS Media Services 4
IIS Transform Manager 1.0 Alpha
Expression Encoder 4 - You can use the Trial version for VC-1 content, but you'll need the Pro version for H.264. I think it's $199.
For existing videos or videos you're making on a regular basis, the idea is that you'll just drop them in a folder and a task will automatically kick off. You have total control over everything, to be clear, but for the out of the box example, I'm going to drop my ScottGu WMV into a folder and two things will pop out:

A folder with HTML page with a Silverlight media player that supports Smooth Streaming. The ScottGu video will be encoded in various bit rates and be all set for adaptive Smooth Streaming
A folder with MPEG-2 TS format files with .m3u8 manifests that conform to the Apple Live Streaming Protocol.
Here's what you do. Once you've installed the Transform Manager, it'll show up in your IIS Manager as a node. You'll setup account credentials (an account with some power, as it'll need to run stuff and copy files into IIS folders. I used my own. Naughty.)

Now, go to Job Templates and notice there are a bunch of built-in templates. You can create whatever you want to encode video in whatever way makes you happy.

I double-clicked on them and checked all the paths and stuff. You'll need to change the templatePath property to decide on your input and output directories.




I have my input folder here, in c:\inetpub\media\Transform Manager, and there's sub-folders beneath that as seen in this screenshot. Notice that tasks can do multiple things, so mine takes an input file and "fans out" into multiple tasks.


If I drop my ScottGu file in, a task immediately starts up (it's watching the folder) and I can see the progress from the IIS manager. Here it is in the middle of encoding.


The Transforms Manager has lots of interesting parameters that you can set, basically using simple template expansion. It'll make a folder with the Date and Time and a Unique Number, but again, you control all this.

Now I have two folders, one for the Silverlight format...
...and one for the Apple format:



I'll add a HTML page for an iOS device to hit. NOTE: You'll be pointing the iPhone/iPad to this m3u8.ism file and it'll decide what streams to watch:

<html>
    <head>
        <title>iPhone page</title>
    </head>
    <body>
        <h1>Encoded stream</h1>
        <video width="640"
               height="480"
               src="ScottGu720pTest1-m3u8-aapl.ism/manifest(format=m3u8-aapl).m3u8"
               poster="ScottGuSplashPage.png"
               autoplay="true"
               controls="true" >Live</video>
    </body>
</html>

I've also added splashscreen "poster" that's just a PNG frame from the video. Here's a photograph of my iPhone 3G, iPad and iPhone 4 with the video..


...and here it is in Silverlight. Note the chart showing the smooth streaming bandwidth adjusting.

足迹 Reader is phenomenal. If you never used, you never lived 火速下载
Advertisement
Advertisement

发表于 2010-11-9 11:48 |显示全部楼层
此文章由 典 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 典 所有!转贴必须注明作者、出处和本声明,并保持内容完整
Tell you a bad news
With IE10(plus html5.1),
you don't need any SilverLight, the javascript engine can do that.

2010年度奖章获得者

发表于 2010-11-9 11:52 |显示全部楼层

回复 2# 的帖子

此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
This is HTML 5 :)  got nothing to do width silverlight.

IE10? are you from the furture ?:)

发表于 2010-11-9 12:09 |显示全部楼层
此文章由 典 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 典 所有!转贴必须注明作者、出处和本声明,并保持内容完整
I saw some "SilverLight" word there...I thought it's about silverlight.

So  ScottGu was telling the world, while silverlight will be dead in the future, silverlight player will remain...

2010年度奖章获得者

发表于 2010-11-9 12:16 |显示全部楼层
此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
讨论正题吧。我挺有兴趣setup 一个 live streaming.

放在客厅, 或孩子的房间里。 然后你打开iPhone/iPad/Windows Phone 不管你是在家里还是家外, 都能直接看到那边的情况。
足迹 Reader is phenomenal. If you never used, you never lived 火速下载

发表于 2010-11-9 12:43 |显示全部楼层
此文章由 乱码 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 乱码 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 dalaohu 于 2010-11-9 13:16 发表
讨论正题吧。我挺有兴趣setup 一个 live streaming.

放在客厅, 或孩子的房间里。 然后你打开iPhone/iPad/Windows Phone 不管你是在家里还是家外, 都能直接看到那边的情况。 ...


我知道北美有的child care有这种live service,家长可以login in去看自己孩子的情况。

不知道悉尼有没有
Advertisement
Advertisement

2010年度奖章获得者

发表于 2010-11-9 12:47 |显示全部楼层

回复 6# 的帖子

此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
我们可以给悉尼的child care 安装。 一定受欢迎。

发表于 2010-11-9 12:48 |显示全部楼层
此文章由 edwardt 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 edwardt 所有!转贴必须注明作者、出处和本声明,并保持内容完整
webcam+msn不行吗?

发表于 2010-11-9 12:50 |显示全部楼层
此文章由 乱码 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 乱码 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 dalaohu 于 2010-11-9 13:47 发表
我们可以给悉尼的child care 安装。 一定受欢迎。


嗯,good idea!!

不过北美那边用这个的child care都是top ones,对自己的service有很充分的信心才敢装这个,而且是private的.

我们这边好的child care都是当地council run的,相信没有很多人给自己找这个不痛快。

发表于 2010-11-9 12:52 |显示全部楼层
此文章由 典 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 典 所有!转贴必须注明作者、出处和本声明,并保持内容完整
4 years ago I met somebody in Mel he can monitor his shop through internet
10 years ago the company (Japan) I worked for can monitor staff through internet (the quality wasn't good)

2010年度奖章获得者

发表于 2010-11-9 12:52 |显示全部楼层

回复 8# 的帖子

此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
live steam 跟msn, keype 两个概念。

msn 要装客户端,大家都等登录,加好友,坐在电脑前。
而且移动设备上没有msn视频。

live steam 你只要有上网设备, 和一个浏览器就好。 其他啥都不要。
足迹 Reader is phenomenal. If you never used, you never lived 火速下载
Advertisement
Advertisement

2010年度奖章获得者

发表于 2010-11-9 12:59 |显示全部楼层
此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
足迹 Reader is phenomenal. If you never used, you never lived 火速下载

发表于 2010-11-9 12:59 |显示全部楼层
此文章由 edwardt 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 edwardt 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 dalaohu 于 2010-11-9 13:52 发表
live steam 跟msn, keype 两个概念。

msn 要装客户端,大家都等登录,加好友,坐在电脑前。
而且移动设备上没有msn视频。

live steam 你只要有上网设备, 和一个浏览器就好。 其他啥都不要。 ...


哦,我以为是想要在办公室看家里的情况呢。

发表回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Advertisement
Advertisement
返回顶部