• 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 Hugo De Zela · Mar 31, 2011 at 03:30 PM · wowza streaming engine in the cloud

Streaming files from S3, all protocols possible?

This is what we have:

1.- Amazon EC2 Instance with Wowza Media Server.

2.- Amazon S3 Bucket with media files arranged in directories.

This is what we need: Stream those files into Android & Blackberry (RTSP), iPod, iPad & iPhone (HTTPS), Web Browser (RTMP). We have tested the videos in all apps directly from Amazon S3 (through HTTP), and they work fine.

For the sake of argument, let's say:

Bucket name: theBucket

Directory name: theDirectory

Video file: theVideo.mp4

Server Address: theServer.com

So, from what I can glean in these forums:

RTSP = rtsp://theServer.com:1935/vods3/mp4:theBucket/theDirectory/theVideo.mp4

Result: Doesn't work on Android, works on VLC, works on Blackberry

HTTPS = http://theServer.com:1935/vods3/_definst_/mp4:theBucket/theDirectory/theVideo.mp4/playlist.m3u8

Result: Doesn't work.

RTMP =

Streamer: rtmp://theServer.com:1935/vods3/

File: mp4:theBucket/theDirectory/theVideo.mp4

Result: Works on VLC, doesn't work on JWPlayer nor FlowPlayer

I have gone through all the steps I can find in the forum (which consists of mounting the S3 bucket, adding PlayMethod:none and restarting Wowza) and can't get it to work. What am I doing wrong here?
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 31, 2011 at 10:07 PM

You should add _definst_ to the rtsp url also. And to rule out encoding problems, test with the Wowza sample.mp4 file

rtsp://theServer.com:1935/vods3/_definst_/mp4:theBucket/theDirectory/sample.mp4


For RTMP, test with Wowza SimpleVideoStreaming player:

Server: rtmp://theServer.com:1935/vods3/

Stream: mp4:theBucket/theDirectory/sample.mp4

Follow the mobile trouble shooting guide:

http://www.wowza.com/forums/content.php?62-Mobile-streaming-troubleshooting-guide-(RTSP-RTP-out)

There is a mobile test linked above, and RTSP guide:

http://www.wowza.com/forums/content.php?45-How-to-best-setup-an-application-for-RTSP-RTP-streaming

Richard
Comment

People who like this

0 Show 2 · 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 Hugo De Zela · Mar 31, 2011 at 06:40 PM 0
Share
Wowza is definitely doing something to the video file when sending it through RTSP. I have tested my video, a random MP4 from the web and the Wowza sample.mp4 and they work in all Androids (Samsung Galaxy S, Samsung Galaxy Tab, Sony Xperia 1100, Motorola Xoom) through regular HTTP, but when sending the same exact videos through RTSP it only works on the Galaxy S and the others give a "video not supported" error.

I don't know how to fix this since it seems to be something inside Wowza itself.

This is my Application.xml just in case.

<Root>
	<Application>
		<!-- Uncomment to set application level timeout values
		<ApplicationTimeout>60000</ApplicationTimeout>
		<PingTimeout>12000</PingTimeout>
		<ValidationFrequency>8000</ValidationFrequency>
		<MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
		<MaximumSetBufferTime>60000</MaximumSetBufferTime>
		<MaximumStorageDirDepth>25</MaximumStorageDirDepth>
		-->
		<Connections>
			<AutoAccept>true</AutoAccept>
			<AllowDomains></AllowDomains>
		</Connections>
		<!--
			StorageDir path variables
			
			${com.wowza.wms.AppHome} - Application home directory
			${com.wowza.wms.ConfigHome} - Configuration home directory
			${com.wowza.wms.context.VHost} - Virtual host name
			${com.wowza.wms.context.VHostConfigHome} - Virtual host config directory
			${com.wowza.wms.context.Application} - Application name
			${com.wowza.wms.context.ApplicationInstance} - Application instance name
			
		-->
		<Streams>
			<StreamType>default</StreamType>
			<StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>
			<KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
			<!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater, sanjosestreamingrepeater -->
			<LiveStreamPacketizers></LiveStreamPacketizers>			
			<Properties>
			</Properties>
		</Streams>
		<!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming, sanjosestreaming -->
		<HTTPStreamers>cupertinostreaming,smoothstreaming,sanjosestreaming</HTTPStreamers>			
		<SharedObjects>
			<StorageDir></StorageDir>
		</SharedObjects>
		<Client>
			<IdleFrequency>-1</IdleFrequency>
			<Access>
				<StreamReadAccess>*</StreamReadAccess>
				<StreamWriteAccess>*</StreamWriteAccess>
				<StreamAudioSampleAccess></StreamAudioSampleAccess>
				<StreamVideoSampleAccess></StreamVideoSampleAccess>
				<SharedObjectReadAccess>*</SharedObjectReadAccess>
				<SharedObjectWriteAccess>*</SharedObjectWriteAccess>
			</Access>
		</Client>
		<RTP>
			<!-- RTP/Authentication/[type]Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
			<Authentication>
				<PublishMethod>digest</PublishMethod>
				<PlayMethod>none</PlayMethod>
			</Authentication>
			<!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->
			<AVSyncMethod>senderreport</AVSyncMethod>
			<MaxRTCPWaitTime>12000</MaxRTCPWaitTime>
			<IdleFrequency>75</IdleFrequency>
			<RTSPSessionTimeout>90000</RTSPSessionTimeout>
			<RTSPMaximumPendingWriteBytes>0</RTSPMaximumPendingWriteBytes>
			<RTSPBindIpAddress></RTSPBindIpAddress>
			<RTSPConnectionIpAddress>0.0.0.0</RTSPConnectionIpAddress>
			<RTSPOriginIpAddress>127.0.0.1</RTSPOriginIpAddress>
			<IncomingDatagramPortRanges>*</IncomingDatagramPortRanges>
			<Properties>
			</Properties>
		</RTP>
		<MediaCaster>
			<Properties>
			</Properties>
		</MediaCaster>
		<MediaReader>
			<Properties>
				<Property>
					<Name>randomAccessReaderClass</Name>
					<Value>com.wowza.wms.plugin.amazonaws.ec2.mediacache.MediaCacheRandomAccessReaderAmazonEC2</Value>
				</Property>
				<Property>
					<Name>bufferSeekIO</Name>
					<Value>true</Value>
					<Type>Boolean</Type>
				</Property>
			</Properties>
		</MediaReader>
		<MediaWriter>
			<Properties>
			</Properties>
		</MediaWriter>
		<LiveStreamPacketizer>
			<Properties>
			</Properties>
		</LiveStreamPacketizer>
		<HTTPStreamer>
			<Properties>
			</Properties>
		</HTTPStreamer>
		<Repeater>
			<OriginURL></OriginURL>
			<QueryString><![CDATA[]]></QueryString>
		</Repeater> 
		<Modules>
			<Module>
				<Name>base</Name>
				<Description>Base</Description>
				<Class>com.wowza.wms.module.ModuleCore</Class>
			</Module>
			<Module>
				<Name>properties</Name>
				<Description>Properties</Description>
				<Class>com.wowza.wms.module.ModuleProperties</Class>
			</Module>
			<Module>
				<Name>logging</Name>
				<Description>Client Logging</Description>
				<Class>com.wowza.wms.module.ModuleClientLogging</Class>
			</Module>
			<Module>
				<Name>flvplayback</Name>
				<Description>FLVPlayback</Description>
				<Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
			</Module> 
			<Module>
				<Name>ModuleStreamNameAlias</Name>
				<Description>ModuleStreamNameAlias</Description>
				<Class>com.wowza.wms.plugin.streamnamealias.ModuleStreamNameAlias</Class>
			</Module>
		</Modules>
		<Properties>
			<Property>
				<Name>aliasMapFileStream</Name>
				<Value>${com.wowza.wms.context.VHostConfigHome}/conf/aliasmap.stream.txt</Value>
			</Property>
			<Property>
				<Name>aliasMapFilePlay</Name>
				<Value>${com.wowza.wms.context.VHostConfigHome}/conf/aliasmap.play.txt</Value>
			</Property>
			<Property>
				<Name>aliasMapPathDelimiter</Name>
				<Value>/</Value>
			</Property>
			<Property>
				<Name>aliasMapNameDelimiter</Name>
				<Value>=</Value>
			</Property>
			<Property>
				<Name>aliasMapDebug</Name>
				<Value>true</Value>
				<Type>Boolean</Type>
			</Property>
		</Properties>
	</Application>
</Root>


I haven't changed anything else, its a clean Wowza EC2 which I started up this morning.
avatar image Hugo De Zela Hugo De Zela · Mar 31, 2011 at 08:57 PM 0
Share
More information:

From this page:

Direct RTSP URL:

rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov

- Works on Galaxy 9000

- Does not work on Galaxy Tab

- Does not work on Xperia 1100

- Does not work on Motorola Xoom

Direct HTTP URL to sample file:

http://www.wowza.com/_h264/BigBuckBunny_175k.mov

- Works on Galaxy 9000

- Works on Galaxy Tab

- Does not work on Xperia 1100

- Works on Motorola Xoom

I am assuming this is always the exact same file, served over different protocols, so it is something with Wowza's RTSP protocol that's weird.

Is there a place I can file a bug report with more details?
avatar image

Answer by Richard Lanham · Apr 01, 2011 at 01:26 PM

RTSP streaming to mobile devices is difficult. Not all devices/carriers work. Some work on wifi but not 3g. That's why this test page is provided. The idea is if you cannot stream from the Wowza rtsp example, it is probably not going to work from your server either.

Some of these devices support Flash 10.1+, so you have the option of doing RTMP or San Jose (Flash HTTP) streaming, which is easier, more reliable and has many more features from security to multi-bitrate streaming.

Richard
Comment

People who like this

0 Show 0 · 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

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

1 Person is following this question.

avatar image

Related Questions

Live Switching Between Multiple Streams - Possible? 4 Answers

Extron SME 100 Encoder & Wowza 4.1 at EC2 1 Answer

Amazon Cloudfront Signed URL 1 Answer

Access to wowza ec2 using ftp 8 Answers

Wowza media server 3 on Amazon EC2 pricing discussion 0 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