• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Streaming Engine /
  • Wowza Streaming Engine in the Cloud /
avatar image
Question by Ryan Robinson · Mar 26, 2013 at 12:58 PM · wowza streaming engine in the cloud

smil on s3 with JWPlayer 6

I have set up a Wowza instance on EC2 and I can stream the sample file. I can even stream one of my own files from my s3bucket using JWPlayer 6. But, I cannot get adaptive bitrate to work. When I look at the network console in Firebug, the player is requesting crossdomain.xml from the root of my instance which fails because it doesn't exist.

I followed the instructions here and edited vhost.xml (although I tried it without the edit because it looked to me like the second to last entry already had the required entry).

I have 4 videos in my s3 bucket and a smil manifest (video.smil) that looks like this:

<smil>
  <head>
  </head>
  <body>
    <switch>
        <video src="mp4:video_320X180.mp4" system-bitrate="250000" width="320"/>
        <video src="mp4:video_480X270.mp4" system-bitrate="400000" width="480"/>
        <video src="mp4:video_960X540.mp4" system-bitrate="1000000" width="960"/>
        <video src="mp4:video_1280X720.mp4" system-bitrate="1400000" width="1280"/>
    </switch>
  </body>
</smil>


my JWPlayer urls are:

http://my-instance-dns.compute.amazonaws.com/vods3/_definst_/smil:amazons3/mybucket/assets/video/test/video.smil/jwplayer.smil

http://my-instance-dns.compute.amazonaws.com/vods3/_definst_/smil:amazons3/mybucket/assets/video/test/video.smil/playlist.m3u8

The player loads, but when I press play (on a pc or ios device) the "loading" spinner runs for about 15 seconds and the player displays the error "manifest not found". In the console on chrome I can see that as soon as I click play the browser makes a request to:

Request URL: http://my-instance-dns.compute.amazonaws.com/crossdomain.xml which eventually fails with with no response code.

This URL plays fine, but it is not adaptive which is what we are after: rtmp://my-instance-dns.compute.amazonaws.com/vods3/_definst_/mp4:amazons3/mybucket/assets/video/test/video_1280X720.mp4

What am I doing wrong?

EDIT: For what it is worth, I have a local smil. When I load it into the flash player it works fine.

<smil>
  <head>
    <meta base="rtmp://my-instance-dns.compute.amazonaws.com/vods3/_definst_"/>
  </head>
  <body>
    <switch>
        <video src="amazons3/mybucket/assets/video/test/video_320X180.mp4" system-bitrate="250000" width="320"/>
        <video src="amazons3/mybucket/assets/video/test/video_480X270.mp4" system-bitrate="400000" width="480"/>
        <video src="amazons3/mybucket/assets/video/test/video_960X540.mp4" system-bitrate="1000000" width="960"/>
        <video src="amazons3/mybucket/assets/video/test/video_1280X720.mp4" system-bitrate="1400000" width="1280"/>
    </switch>
  </body> 
</smil>
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Richard Lanham · Mar 26, 2013 at 09:53 PM

How were these videos encoded, what encoder did you use? Each video must be key frame aligned for switching to work. The Expression 4 Encoder is known to do this as required, there are pre-set examples in this article:

http://www.wowza.com/forums/content.php?192-How-to-encode-video-on-demand-content

The only way to debug alignment of vod assets in Wowza is to stream them live like this:

http://www.wowza.com/forums/content.php?224-How-to-do-scheduled-adaptive-bitrate-streaming-using-Stream-class-streams

Then enable this debug property:

http://www.wowza.com/forums/content.php?77-How-to-debug-encoder-multi-bitrate-key-frame-alignment

Also, for testing, you might try ABR streaming with .smil in the Wowza /examples/VideoOnDemandStreaming/FlashHTTPPlayer, or Silverlight player.

Richard
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ryan Robinson · Mar 26, 2013 at 08:41 PM 0
Share
They are key frame aligned. The were encoded with Adobe Media Encoder CS6. Like I mentioned at the end of the post, I can stream them using ABR in flash if I put a smil (video.smil) on my server in the same directory as the page that contains my JWPlayer that looks like this:

<smil>
  <head>
    <meta base="rtmp://my-instance-dns.compute.amazonaws.com/vods3/_definst_"/>
  </head>
  <body>
    <switch>
        <video src="amazons3/mybucket/assets/video/test/video_320X180.mp4" system-bitrate="250000" width="320"/>
        <video src="amazons3/mybucket/assets/video/test/video_480X270.mp4" system-bitrate="400000" width="480"/>
        <video src="amazons3/mybucket/assets/video/test/video_960X540.mp4" system-bitrate="1000000" width="960"/>
        <video src="amazons3/mybucket/assets/video/test/video_1280X720.mp4" system-bitrate="1400000" width="1280"/>
    </switch>
  </body> 
</smil>


I can then load it with a setup like this:

<script type="text/javascript">
 jwplayer('player').setup({
                autostart: false,
        sources: [
                { file: "video.smil"}
            ],
        rtmp: {
                bufferlength: 5
        },
        width: "480",
        height: "270",
        primary: "flash",
        });
</script>


But, when I try to do anything with server side ABR playback nothing happens. The video won't even start. And, like I mentioned, the network traffic shows a request to

my-ec2-dns/crossdomain.xml
which it willnot find since there is no crossdomain.xml file in the root directory on my ec2 instance. Because that request fails, playback fails. Let me know if you want a link to the test player so you can see what I mean. Any other ideas on what the problem might be?
avatar image

Answer by Richard Lanham · Mar 27, 2013 at 12:19 PM

Right, JW Player does not use the server-side smil. JW Player uses a local .smil. You can leverage the server-side smil for JW Player 6:

http://www.wowza.com/forums/content.php?343-How-to-use-LongTail-JW-Player-with-adaptive-bitrate-streaming-from-Wowza-Media-Server

There is an example here:

http://www.wowza.com/forums/content.php?484-How-to-use-Longtail-JW-Player-6-x-with-Wowza-Media-Server

Richard
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Richard Lanham · Mar 27, 2013 at 04:35 PM 0
Share
Corrected the first link in previous post, changed to:

http://www.wowza.com/forums/content.php?343-How-to-use-LongTail-JW-Player-with-adaptive-bitrate-streaming-from-Wowza-Media-Server

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

ec2- loadbalancer - how to check ports are open for 1934 1 Answer

Wowza + CloudFront (RTMP) 1 Answer

how many individual streams can be run through Wowza on an EC2 instance? 6 Answers

Dynamic instance in EC2 questions 1 Answer

Subscription to ProductCode 8ED157F9 required 4 Answers

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges