# RTMPStreamPlayer returns stream not opened

**URL:** https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378
**Category:** Wowza Streaming Engine
**Created:** [August 4, 2014, 3:15pm UTC](https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378 "2014-08-04T15:15:04Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Praveenkumar\_S](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@Praveenkumar\_S](https://community.wowza.com/u/Praveenkumar_S)
#### Post date: [August 4, 2014, 3:15pm UTC](https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378/1 "2014-08-04T15:15:04Z")

</div>

Hello Wowza,

I am working with an application which would be play or stream an video through RTMP protocol using Wowza Media server. I am able to stream a video from device to wowza server using [MediaLibDemos](https://github.com/slavavdovichenko/MediaLibDemos3x) Everything is fine while streaming a video.

But, while playing a video from Wowza media server i am unable to play that video. It prints below log,

```auto
2014-08-04 16:31:36.585 RTMPStreamPlayer[3841:60b] ******************************************** connectControl: host = rtmp://58.68.93.211:1935/coder/
2014-08-04 16:31:36.589 RTMPStreamPlayer[3841:4a03] MPMediaDecoder -> playing: try to open the stream rtmp://58.68.93.211:1935/coder//Mobile27 ...
2014-08-04 16:31:36.591 RTMPStreamPlayer[3841:4a03] @@@@@@@@@@@@@@@@@@>>>> MPMediaDecoder -> openStream: (BEGIN)
[flv @ 0x13f4a00] Stream discovered after head already parsed
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[flv @ 0x13f4a00] negative cts, previous timestamps might be wrong
[h264 @ 0xc02200] AVC: nal size 21102622
[h264 @ 0xc02200] missing picture in access unit with size 40
[h264 @ 0xc02200] AVC: nal size 21102622
[h264 @ 0xc02200] missing picture in access unit with size 40
[h264 @ 0xc02200] AVC: nal size 21102622
[h264 @ 0xc02200] missing picture in access unit with size 40
[h264 @ 0xc02200] AVC: nal size 21102622
[h264 @ 0xc02200] missing picture in access unit with size 40
[h264 @ 0xc02200] AVC: nal size 21102622
[h264 @ 0xc02200] missing picture in access unit with size 40
[h264 @ 0xc02200] AVC: nal size 21102622
[h264 @ 0xc02200] missing picture in access unit with size 40
[h264 @ 0xc02200] AVC: nal size 21102622
[h264 @ 0xc02200] missing picture in access unit with size 40
[flv @ 0x13f4a00] Could not find codec parameters for stream 1 (Audio: none, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
----------------------------------- FORMAT --------------------------------------------------
Input #0, flv, from 'rtmp://58.68.93.211:1935/coder//Mobile27':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p(tv), 320x240 [SAR 1:1 DAR 4:3], 24.42 fps, 24 tbr, 1k tbn, 48 tbc
    Stream #0:1: Audio: none, 0 channels
    Stream #0:2: Data: none
---------------------------------------------------------------------------------------------
[NULL @ 0xc09600] No codec provided to avcodec_open2()
2014-08-04 16:31:39.785 RTMPStreamPlayer[3841:4a03] MPMediaDecoder -> ERROR avcodec_open2() <audio> : Invalid argument
2014-08-04 16:31:39.786 RTMPStreamPlayer[3841:4a03] MPMediaDecoder -> playing: stream is not opened, wait about 1 sec
2014-08-04 16:31:40.349 RTMPStreamPlayer[3841:60b] ******************************************** connectControl: host = rtmp://58.68.93.211:1935/coder/
2014-08-04 16:31:40.856 RTMPStreamPlayer[3841:4a03] MPMediaDecoder -> playing: try to open the stream (null) ...
2014-08-04 16:31:40.858 RTMPStreamPlayer[3841:4a03] @@@@@@@@@@@@@@@@@@>>>> MPMediaDecoder -> openStream: (BEGIN)
2014-08-04 16:31:40.860 RTMPStreamPlayer[3841:4a03] MPMediaDecoder -> ERROR avformat_open_input() : Protocol not found
2014-08-04 16:31:40.861 RTMPStreamPlayer[3841:4a03] DEALLOC MPMediaDecoder

```

But, the streaming video plays fine through [FlashRTMPPlayer](https://www.wowza.com/resources/3.5.0/examples/LiveVideoStreaming/FlashRTMPPlayer/player.html) How to fix this? Any help appreciated.

Thanks in Advance.

---

<div class="post-metadata">

### Author: ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)
#### Post date: [August 5, 2014, 10:35am UTC](https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378/2 "2014-08-05T10:35:34Z")

</div>

Hi,

Looks like it may be a problem with the source. Do you have a small sample available of the video that you’re playing through Wowza? Anything interesting being written to the Wowza logs at that time?

Paul

---

<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: [August 5, 2014, 1:36pm UTC](https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378/3 "2014-08-05T13:36:53Z")

</div>

Hi,

I’m able to play the stream “rtmp://58.68.93.211:1935/vod/Mobile73” using the RTMP player in the [Wowza-Install]/examples/ directory and VLC player.

Which RTMP player are you using?

Regards,

Jason

---

<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: [August 11, 2014, 8:10am UTC](https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378/4 "2014-08-11T08:10:19Z")

</div>

Hi,

As I was able to play the stream with 2 RTMP players without issue, I would say this is a player problem and/or source.

I recommend contacting the owner of the publisher and player and seeing if they have any updates you could use or if they can fix this.

Regards.

Jason

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [August 12, 2014, 2:30am UTC](https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378/5 "2014-08-12T02:30:22Z")

</div>

Hello

I compiled and tested that library and it would work when attempting to playback the sample.mp4 file (as provided with your default install ex. rtmp://[my-wowza-ip]:1935/vod/mp4:sample.mp4). I also tested a vanilla h264/aac audio live stream and it played that back as well. The one major difference between my test-cases and your stream is that your stream didn’t seem to have any audio. I tested without audio and saw the same issue as well.

You can see the debugger repeating over and over the following error:

```auto
[NULL @ 0x114f600] No codec provided to avcodec_open2()
2014-08-12 03:28:30.813 RTMPStreamPlayer[1409:1803] MPMediaDecoder -> ERROR avcodec_open2() <audio> : Invalid argument

```

You might try to [add an audio track](https://www.wowza.com/docs/how-to-add-an-audio-track-to-a-video-only-stream-moduleaddaudiotrack%28ModuleAddAudioTrack%29) to see if this can compensate for this shortcoming in the rtmp player presented by the library.

Thanks,

Matt

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [August 13, 2014, 1:06am UTC](https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378/6 "2014-08-13T01:06:05Z")

</div>

Hello

I haven’t really jumped into that project that much but at a glance I was able to playback sample.mp4 via rtsp albeit there were some intermittent playback issues and missing references displayed in the xcode console. I didn’t see any related ffmpeg issues as you’ve suggested. So unfortunately I’m not sure why you are getting these ffmpeg related errors. It may be best to try to contact the developer to obtain some specifications and documentation.

Thanks,

Matt

---

<div class="post-metadata">

### Author: ![Praveenkumar\_S](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@Praveenkumar\_S](https://community.wowza.com/u/Praveenkumar_S)
#### Post date: [August 5, 2014, 5:16pm UTC](https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378/7 "2014-08-05T17:16:33Z")

</div>

Yes, i can provide you already streamed video from my database. Even, this video also can’t stream with my player :

rtmp://58.68.93.211:1935/vod/Mobile73

But, the player streaming below video :

rtmp://hsn.mpl.miisolutions.net/hsn-live01/mp4:420p500kB31

And, i didn’t see any other logs. Kindly, guide me to fix this

---

<div class="post-metadata">

### Author: ![Praveenkumar\_S](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@Praveenkumar\_S](https://community.wowza.com/u/Praveenkumar_S)
#### Post date: [August 6, 2014, 10:07am UTC](https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378/8 "2014-08-06T10:07:56Z")

</div>

Hello Jason,

I’m using [MediaLibDemos](https://github.com/slavavdovichenko/MediaLibDemos3x/) for iOS to stream this video. The video was recorded one. And, also it doesn’t support to play my current streaming video too.

Any help would be appreciated.

Praveen

---

<div class="post-metadata">

### Author: ![Praveenkumar\_S](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@Praveenkumar\_S](https://community.wowza.com/u/Praveenkumar_S)
#### Post date: [August 11, 2014, 2:55pm UTC](https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378/9 "2014-08-11T14:55:12Z")

</div>

Hello Jason,

Thanks for your reply. Did you use that [MediaLibDemos](https://github.com/slavavdovichenko/MediaLibDemos3x/) player or anyother else?

And, also i have already posted an issue in their [code section](https://github.com/slavavdovichenko/MediaLibDemos/issues/36) But, no reply yet.

---

<div class="post-metadata">

### Author: ![Praveenkumar\_S](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@Praveenkumar\_S](https://community.wowza.com/u/Praveenkumar_S)
#### Post date: [August 12, 2014, 1:10pm UTC](https://community.wowza.com/t/rtmpstreamplayer-returns-stream-not-opened/43378/10 "2014-08-12T13:10:03Z")

</div>

Hello Matt,

Let me try with this and get back to you. And, anyhow my streams are working fine when i renamed the protocol from **RTMP** to **RTSP** (Just by renaming only, none of any other changes) And, tried with below players,

1. [RtspFrames-test](https://github.com/mooncatventures-group/RtspFrames-test)

2. [DFURTSPPlayer](https://github.com/durfu/DFURTSPPlayer)

Working smoothly and getting only 1-2 seconds of delay. Its weird and amazing 🙂

But, now the main problem is, when i tried to integrate this any of one RTSP Player into my app with [MediaLibDemos3x](https://github.com/slavavdovichenko/MediaLibDemos3x) Getting problem with **FFMPEG** Libraries on XCode. So, currently i’m working on it to fix that. Do you have an idea for this?
