# iPhone streaming from rtmp

**URL:** https://community.wowza.com/t/iphone-streaming-from-rtmp/37411
**Category:** Wowza Streaming Engine
**Created:** [October 12, 2011, 1:11pm UTC](https://community.wowza.com/t/iphone-streaming-from-rtmp/37411 "2011-10-12T13:11:41Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Traian\_Ciobanu](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@Traian\_Ciobanu](https://community.wowza.com/u/Traian_Ciobanu)
#### Post date: [October 12, 2011, 1:11pm UTC](https://community.wowza.com/t/iphone-streaming-from-rtmp/37411/1 "2011-10-12T13:11:41Z")

</div>

Hello Wowza gurus,

I am trying to build a configuration that will allow publishing live video from a flash client and stream it to flash, iOS devices, Android. Due to flash limitations I am not able to stream to iOS based devices. I have tried to trans code using ffmpeg but I receive errors. Has some one done this before? Any suggestion is accepted.

---

<div class="post-metadata">

### Author: ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)
#### Post date: [October 12, 2011, 11:42am UTC](https://community.wowza.com/t/iphone-streaming-from-rtmp/37411/2 "2011-10-12T11:42:26Z")

</div>

Hi

Flash player 11 plays H.264 here is the link,

[http://sonnati.wordpress.com/2011/05/14/a-dream-comes-true-h-264-encoding-into-flash-player-11/](http://sonnati.wordpress.com/2011/05/14/a-dream-comes-true-h-264-encoding-into-flash-player-11/)

Jason

---

<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: [October 12, 2011, 1:36pm UTC](https://community.wowza.com/t/iphone-streaming-from-rtmp/37411/3 "2011-10-12T13:36:55Z")

</div>

But you will still need to transcode the audio. You will want to use Speex instead of NellyMoser. Try these settings:

```auto
microphone.rate = 11;
microphone.setSilenceLevel(0);
microphone.codec = SoundCodec.SPEEX;
microphone.encodeQuality = 5;
microphone.framesPerPacket = 2;

```

In the transcoder, use PassThru for the video and AAC for the audio.

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: [October 12, 2011, 7:47pm UTC](https://community.wowza.com/t/iphone-streaming-from-rtmp/37411/4 "2011-10-12T19:47:02Z")

</div>

That and the Wowza transcoder should be able to stream from a Flash application to iOS. I have not tried this yet.

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: [October 12, 2011, 7:54pm UTC](https://community.wowza.com/t/iphone-streaming-from-rtmp/37411/5 "2011-10-12T19:54:07Z")

</div>

It’s normal for Cupertino. You can mitigate by adjust key frame frequency and cupertinoChunkDurationTarget

[https://www.wowza.com/docs/how-to-configure-apple-hls-packetization-cupertinostreaming](https://www.wowza.com/docs/how-to-configure-apple-hls-packetization-cupertinostreaming))

Richard

---

<div class="post-metadata">

### Author: ![Daniel\_Mahoney](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Daniel\_Mahoney](https://community.wowza.com/u/Daniel_Mahoney)
#### Post date: [October 18, 2011, 1:30pm UTC](https://community.wowza.com/t/iphone-streaming-from-rtmp/37411/6 "2011-10-18T13:30:39Z")

</div>

I believe the stream player in the iPhone is responsible for that due to buffering.

---

<div class="post-metadata">

### Author: ![Steve\_McFarlin](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Steve\_McFarlin](https://community.wowza.com/u/Steve_McFarlin)
#### Post date: [October 18, 2011, 12:10pm UTC](https://community.wowza.com/t/iphone-streaming-from-rtmp/37411/7 "2011-10-18T12:10:04Z")

</div>

> But you will still need to transcode the audio. You will want to use Speex instead of NellyMoser. Try these settings:
> 
> ```auto
> microphone.rate = 11;
> microphone.setSilenceLevel(0);
> microphone.codec = SoundCodec.SPEEX;
> microphone.encodeQuality = 5;
> microphone.framesPerPacket = 2;
> 
> ```
> 
> In the transcoder, use PassThru for the video and AAC for the audio.
> 
> Richard

Hi Richard - So Wowza 3 will transcode Speex without having to use FFmpeg? If this is the case I really need to read the docs.

**EDIT**

Read the docs. This is fantastic. This saves me a lot of work writing a FFmpeg JNI bridge. A huge thanks to you guys.

**EDIT 2**

Just in case someone is having issues targeting Flash 11.

[http://videometry.blogspot.com/2011/07/setting-up-cs5-and-cs55-to-target-flash.html](http://videometry.blogspot.com/2011/07/setting-up-cs5-and-cs55-to-target-flash.html)

[http://www.adobe.com/support/flashplayer/downloads.html#fp11](http://www.adobe.com/support/flashplayer/downloads.html#fp11)

[http://blog.magicalhobo.com/2011/05/14/publishing-h-264-encoded-video-using-flash-player/](http://blog.magicalhobo.com/2011/05/14/publishing-h-264-encoded-video-using-flash-player/)

---

<div class="post-metadata">

### Author: ![Traian\_Ciobanu](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@Traian\_Ciobanu](https://community.wowza.com/u/Traian_Ciobanu)
#### Post date: [October 12, 2011, 9:44pm UTC](https://community.wowza.com/t/iphone-streaming-from-rtmp/37411/8 "2011-10-12T21:44:19Z")

</div>

So basically I need to ask flash developer to make new application which will stream using capability of Flash 11 of streaming h.264, is this corect?

---

<div class="post-metadata">

### Author: ![Traian\_Ciobanu](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@Traian\_Ciobanu](https://community.wowza.com/u/Traian_Ciobanu)
#### Post date: [October 12, 2011, 9:52pm UTC](https://community.wowza.com/t/iphone-streaming-from-rtmp/37411/9 "2011-10-12T21:52:07Z")

</div>

OK. Will try this in the morning because it’s already late here.

Succeed streaming to iPhone with Wirecast streaming a h.264 stream to Wowza but the delay was about 20-30 seconds and the stream started on iPhone with a delay of 20 seconds from the moment of what we were really doing in front of the camera at the moment. What can this be caused by?
