Wowza Community

Stream smil file from our server

Hello ,

I want to stream smil file from our server but flv file from amazon s3 stroage using wowza streaming server.

Streaming server : rtmp://ec2-72-44-32-94.compute-1.amazonaws.com/vods3

Smil File : http://clients.basitsolutionsgroup.com/test/mediaplayer/test_mysmil.smil

Flv path: http://actionvideos.s3.amazonaws.com/scooby-theme.flv or (amazons3/actionvideos/scooby-theme.flv)

Html File : http://clients.basitsolutionsgroup.com/test/mediaplayer/readme.php

Embed Code :

<embed

type=“application/x-shockwave-flash”

id=“player2”

name=“player2”

src=“player-viral.swf”

width=“400”

height=“315”

allowscriptaccess=“always”

allowfullscreen=“true”

flashvars=“streamer=rtmp://ec2-72-44-32-94.compute-1.amazonaws.com/vods3&file=ttp://clients.basitsolutionsgroup.com/test/mediaplayer/test_mysmil.smil”

/>

Smil File : (test_mysmil.smil)

It won’t work. The smil file has to be alongside the content.

Richard

Right now, I don’t know. I’m working on this generally though and maybe I will be able to help more on this soon.

Richard

Oh, I do know this: width is required.

<video src=“amazons3/actionvideos/scooby-theme.flv” width=“320” system-bitrate=“128000” />

Richard

I’m not sure. The best I have achieved so far is to get it to play the first item in a smil file.

Use this one:

http://developer.longtailvideo.com/svn/trunk/fl5

For the 4.x use this one:

http://developer.longtailvideo.com/svn/trunk/as3

Richard

Sure, yes. I’m not sure if I can solve anything about it though.

Richard

So far, the way I have found that works is using FLVPLayback Component with smil file. And you can get a working example from the sample files on page one of the Adobe dynamic streaming guide:

http://www.adobe.com/devnet/flashmediaserver/articles/dynstream_advanced_pt1.html

Get the files from the package in this location:

dynstream_walkthrough_pt1\hands-on_pt1\completed\FLVPB - SMIL

Put the smil file alongside the html and swf file on web server, point to your wowza server in the smil, modify the smil for content on your Wowza server, and start it up. If the content is in order, it should work. Monitor Wowza console to see stream switching.

Richard

Using MediaCache you store the .smil file alongside the content and reference it with relative link.

<video src="abc1231" width="1280" system-bitrate="800000"/>
<video src="abc1232" width="768" system-bitrate="500000"/>

The playback the smil using the MediaCache prefix

Richard

Re adding extenstions, you can change that behavior:

The smil and the videos have to be in the same place, along-side each other, the same folder on the same web server, or a folder on that web server.

Richard

Absolute path to where, a web server? Is so, make that the MediaCache source and place the smil and files together there.

Richard

This might work with absolute paths if MediaCache is setup, though I have not tried it

https://www.wowza.com/docs/how-to-use-java-api-calls-to-resolve-smil-file-requests

Richard

Also, noticing that you have two threads at lease on this. Please don’t duplicate.

Richard

With this in place, Wowza will intercept smil (which is MediaList) requests and allow you to form the MediaList yourself. This way with MediaCache enabled Wowza does not have to get the smil from the MediaCache source, and you can reference the MediaCache assets with full url in the smil like

mp4:http/yourwebserver.com/sample.mp4

Seems like what you are asking for. That’s the only thing I can think of using MediaCache with your videos on a web server that you do not have access to upload a smil to

Richard

Hello ,

I have tried the following to stream smil from my server using wowza streaming server. It works fine normally without switching method.

My Embed code :

[HTML]<embed

type=“application/x-shockwave-flash”

id=“player2”

name=“player2”

src=“player-viral.swf”

width=“315”

height=“315”

allowscriptaccess=“always”

allowfullscreen=“true”

flashvars=“file=mysmil5.smil&provider=rtmp&rtmp.loadbalance=true”

/>[/HTML]

Note: I have added rtmp.loadbalance=true in flashvars and removed streamer in flashvars.

mysmil5.smil is stored in http://clients.basitsolutionsgroup.com/test/mediaplayer/

mysmil5.smil:

[HTML]

Please let me know whether the current version of JW player (5.0) supports the multibitrate switching. If not means, which player will support this functionality?

Hello Richard,

I have visited this page http://developer.longtailvideo.com/svn/trunk/fl5 , but it shows some files listing.

I have download the source from http://developer.longtailvideo.com/trac/browser/trunk/fl5. How can I stream the smil file by downloaded code. It has only swf,fla files , there is no html or embed code.

Can i show your output for smil file streaming using wowza streaming server with multi vibrate switching.

Hi,

I have a slightly different scenario. I upload 2 different bitrate video files and 1 smil file to an online storage which returns 3 permanent links for the files. For example:

smil: http://…/files/abc123

500.mp4: http://…/files/abc1231

800.mp4: http://…/files/abc1232

I would like to use my Wowza server running MediaCache to stream an adaptive bitrate stream with the above files.

The smil file content:

Dear Richard,

Thank you for your reply. I am not sure I understand what you mean by alongside: does the smil file have to be in the same “physical” location with the media files?

From your example, the smil file and the media files could be stored in different locations (e.g., different HDDs) but can be accessed by relative links. If so, I modified the smil file accordingly, and it still does not work.

Please, spend some time look at the logs from wowzamedia_error


MediaCacheItemHTTPImpl.getItemInfo[download.cloudvis.net/files/4b050e4077e60130cde1525400da24fa.smil]: HTTP response: 503

WARN server comment 2013-03-26 09:34:55 - - - - - 190585.593 - - - - - - - - MediaCacheItemBase.init: Item does not exist: http22/4b050e4077e60130cde1525400da24fa.smil

WARN server comment 2013-03-26 09:34:55 - - - - - 190585.593 - - - - - - - http22/4b050e4077e60130cde1525400da24fa open: java.io.IOException: MediaCacheRandomAccessReader.open: Item not in cache: http22/4b050e4077e60130cde1525400da24fa

WARN server comment 2013-03-26 09:34:55 - - - - - 190585.594 - - - - - - - - HTTPStreamerCupertinoIndexPlaylist.indexFile[mediacache/definst/smil:http22/4b050e4077e60130cde1525400da24fa]: MediaList is empty.

WARN server comment 2013-03-26 09:34:55 - - - - - 190585.617 - - - - - - - -


It seems to me that Wowza automatically inserts the file extension (.smil) into the url. If so, it can not get the correct file because the correct url is download.cloudvis.net/files/4b050e4077e60130cde1525400da24fa (without smil extension). This will explain “MediaList is empty”.

The whole smil file is below:

I understood. The files have to be physically in the same folder. The along-side virtual path to the files does not work.

Thank you Richard!

Anh.