# Streaming from S3: spaces in object names

**URL:** <https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563>\
**Category:** Wowza Streaming Engine\
**Created:** [February 24, 2009, 8:32am UTC](https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563 "2009-02-24T08:32:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [February 24, 2009, 8:32am UTC](https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563/1 "2009-02-24T08:32:56Z")

</div>

I am trying out streaming from S3 at the moment and noticed one thing I want to ask you about. Whenever an s3 object has a space in its name it fails to stream. I get a “Stream not found” error.

The connection strings are as follows:

Streamer: rtmp:///vods3

File: flv:amazons3//name with spaces.flv

However, when trying to stream object without space in the name it works fine - both my files or wowza example files (Streamer.mov, .mp3 and m4v).

Am I missing something ?

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [February 23, 2009, 10:36pm UTC](https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563/2 "2009-02-23T22:36:22Z")

</div>

This will work:

File: flv:amazons3//name+with+spaces.flv

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [February 23, 2009, 10:55pm UTC](https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563/3 "2009-02-23T22:55:00Z")

</div>

Hmm. Try these two links, with and without space.

space, stream not found

mp4:amazons3/com.lakesidetechnical.content/otto lake.m4v

space replaced, okay

mp4:amazons3/com.lakesidetechnical.content/otto+lake.m4v

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [February 23, 2009, 11:06pm UTC](https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563/4 "2009-02-23T23:06:49Z")

</div>

What is the “streamer” Flashvar in JW player?

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [February 23, 2009, 11:30pm UTC](https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563/5 "2009-02-23T23:30:02Z")

</div>

I’m testing. Does seem to be a problem with JW player, which does have a few quirks. I’ll dig into it more.

Richard

---

<div class="post-metadata">

**Author:** ![Anton\_Z](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Anton\_Z](https://community.wowza.com/u/Anton_Z)\
**Post date:** [February 24, 2009, 8:45am UTC](https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563/6 "2009-02-24T08:45:14Z")

</div>

It did not work unfortunately. Still say “steram not found”. All permissions are correct. It should work with “+” instead of space but it does not ☹

---

<div class="post-metadata">

**Author:** ![Anton\_Z](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Anton\_Z](https://community.wowza.com/u/Anton_Z)\
**Post date:** [February 24, 2009, 8:59am UTC](https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563/7 "2009-02-24T08:59:49Z")

</div>

Got “stream not found” for both. I am using jw player 4.3. Will investigate the player side of things now.

---

<div class="post-metadata">

**Author:** ![Anton\_Z](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Anton\_Z](https://community.wowza.com/u/Anton_Z)\
**Post date:** [February 24, 2009, 9:10am UTC](https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563/8 "2009-02-24T09:10:02Z")

</div>

yeah its a flashvar that specifies streaming server: protocol, server address and a bucket - for S3 case

---

<div class="post-metadata">

**Author:** ![Anton\_Z](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Anton\_Z](https://community.wowza.com/u/Anton_Z)\
**Post date:** [February 24, 2009, 9:15am UTC](https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563/9 "2009-02-24T09:15:36Z")

</div>

found this:

[http://www.longtailvideo.com/support/forum/Bug-Reports/16041/Spaces-not-allowed-in-filenames-even-URL-encoded-](http://www.longtailvideo.com/support/forum/Bug-Reports/16041/Spaces-not-allowed-in-filenames-even-URL-encoded-)

---

<div class="post-metadata">

**Author:** ![Anton\_Z](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Anton\_Z](https://community.wowza.com/u/Anton_Z)\
**Post date:** [February 24, 2009, 9:59am UTC](https://community.wowza.com/t/streaming-from-s3-spaces-in-object-names/563/10 "2009-02-24T09:59:28Z")

</div>

Ok here is the solution that worked for me:

I am using PHP and JW Player 4.3. The problem is due to JW player not encoding url when rtmp protocol is used (specifically in RTMPTModel.as file). So to fix the problem with playing files that have spaces you need to either:

- Replace spaces with “+” and urlencode() the whole url after that. For example: [PHP]urlencode(“mp4:amazons3//file+name+with+spaces.m4v”);[/PHP]

- Double urlencode() the whole url. For example: [PHP]urlencode(urlencode(“mp4:amazons3//file name with spaces.m4v”));[/PHP]
