Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Need smil file tutorial for wowza server streaming


Hello ,

I have tried to ...Hello ,

I have tried to stream the smil file using jwplayer by wowza streaming server.

*My Embed Code*
bc.. <embed height="349" width="500" type="application/x-shockwave-flash" src="player.swf" quality="high" allowscriptaccess="always" allowfullscreen="false" wmode="opaque" flashvars="streamer=rtmp://mystreamername.amazonaws.com/vods3&file=smil:amazons3/actionvideos/mysmil.smil&provider=rtmp"/>


*mysmil.smil code :*

bc.. <smil>
<head>
</head>
<body>
<switch>
<video src="scooby-theme.flv" system-bitrate="700000"/>
<video src="scooby-theme.flv" system-bitrate="350000"/>
<video src="scooby-theme.flv" system-bitrate="200000"/>
</switch>
</body>
</smil>


Note :
1) Both mySmil.smil and scooby-theme.flv are in same bucket of amazaon s3 storage.
2) We are using new Wowza Streaming server 2.0
3) We are using JW player version 5.0

But it shows the follwoing error in wowza server error log file

bc.. ERROR server comment 2010-01-13 04:11:30 - - - - - 8736.262 - - - - - - - HTTPByteReader.sendRequest: java.net.SocketException: Connection reset
WARN server comment 2010-01-13 04:11:31 - - - - - 8737.011 - - - - - - - MediaReaderFLV.open: Metadata appears to be bad: amazons3/actionvideos/mysmil.smil
ERROR server comment 2010-01-13 04:11:31 - - - - - 8737.606 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
ERROR server comment 2010-01-13 04:11:32 - - - - - 8737.893 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
ERROR server comment 2010-01-13 04:11:32 - - - - - 8738.18 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil


Wowza support says the following

JW Player seems to be pre-pending smil: to the stream name. Wowza cannot handle the smil: prefix. JW Player should not be pre-pending smil: to the stream name.

So i have removed smil:from flashvars in file variable . Now my flashvars is

bc.. flashvars="streamer=rtmp://mystreamername.amazonaws.com/vods3&file=amazons3/actionvideos/mysmil.smil&provider=rtmp"


Still not works. Please let me know how to fix this issue.

11 Community Answers

JW Player

User  
0 rated :


See the RTMP documentation here:

*http://developer.longtailvideo.com/trac/wiki/Player5Formats#RTMPStreaming*

bc.. flashvars="file=http://mystreamername.amazonaws.com/vods3/amazons3/actionvideos/mysmil.smil&provider=rtmp&rtmp.loadbalance=true"



*_Adjust the file URI to be the correct and complete URI for your SMIL file._*

JW Player

User  
0 rated :

Thanks for your support.

I have tried this one, its working fine.

*New Embed Code :*

bc.. <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"
/>


*mysmil5.smil : *

bc.. <smil>
<head>
<meta base="rtmp://mywowzaserveraddress/vods3" />
<layout>
<root-layout width="240" height="180" />
</layout>
</head>
<body>

<video src="amazons3/mybucketname/scooby-theme.flv" system-bitrate="128000" />
<video src="amazons3/mybucketname/scooby-theme.flv" system-bitrate="56000" />

</body>
</smil>


It works fine because it don't has switch streaming. *But it need to implement switch streaming*. So i have added the switch tag in smil file. It not works.

bc.. <switch>
<video src="amazons3/mybucketname/scooby-theme.flv" system-bitrate="128000" />
<video src="amazons3/mybucketname/scooby-theme.flv" system-bitrate="56000" />
</switch>


Please let me know whether i did anything wrong.

JW Player

User  
0 rated :

Bitrate Switching will be available in the v5.1 JW Player to be released soon.

JW Player

User  
0 rated :

Ok.
Again Thanks for your great support.

JW Player

User  
0 rated :

Hello Noodle,

We have purchased the Licensed JW Player 5.1. Please let me know how to stream the videos with *multibitrate *streaming using *smil *file.

I have posted my embed and smil file code in above post. Please check it.

I have done the* Multibitrate Streaming *using *Xml *is working fine. But dont know how to stream the video by using smil file.

Please guide me in right way.

JW Player

User  
0 rated :

In JW Plauer 5.1 the same issue still appears... So still no multibitrate streaming.

Still got the error on Wowza:
ERROR server comment 2010-01-13 04:11:32 - - - - - 8738.18 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil

Wowza setup:
https://wowzamedia.com/forums/showthread.php?t=6466

Same error and reference to this forum:
http://www.wowzamedia.com/forums/showthread.php?t=7304

It would be nice if somebody of JW Player can make a working demo page.

I got a server at Jet-Stream to test with if you want.

JW Player

User  
0 rated :

Here I got a testing page for Wowza2 server. As you can see, the smil code for the 4.5 version player is working like a charm. The same movie in 5.1 player does not work.

http://dev1.jet-stream.nl/wowza2/VODPlayers.html

Please take a look at it, and try to fix the JW player that it will play the smil file. Also, I added the option to disable the prepend option but that is not working. It put it to false, and still I got the error that the file mp4:filename does not exist. So JW Player is still prepending the extention to the movie.

Kind regards,
Joshua
Jet Stream BV

JW Player

User  
0 rated :

You got it to work yet Yosh??

JW Player

User  
0 rated :


*_Oops! This link appears to be broken._*

*http://dev1.jet-stream.nl/wowza2/big_buck_bunny_JW5.1.smil*

JW Player

User  
0 rated :

Response from Ethan from Longtail:

Hi Piet,

You are correct. SMIL does not work with Bitrate Switching.

Best Regards,
-Ethan

So now what?

Pablo

JW Player Support Agent  
0 rated :

@Piet -

Please see my comment on 3/26:

http://www.longtailvideo.com/support/forum/Setup-Problems/23181/Wowza-Dynamic-Bitrate-Switching-with-5-1-licensed#msg152439

This question has received the maximum number of answers.