Results 1 to 10 of 10

Thread: RTMPStreamPlayer returns stream not opened

  1. #1

    Default RTMPStreamPlayer returns stream not opened

    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 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,

    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 How to fix this? Any help appreciated.

    Thanks in Advance.
    Last edited by praveenkchimera; 08-06-2014 at 11:51 PM. Reason: Mentioned exact log

  2. #2

    Default

    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

  3. #3

    Default

    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

  4. #4
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    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

  5. #5

    Default

    Hello Jason,

    I'm using MediaLibDemos 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
    Last edited by praveenkchimera; 08-06-2014 at 11:50 PM.

  6. #6
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    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

  7. #7

    Default

    Hello Jason,

    Thanks for your reply. Did you use that MediaLibDemos player or anyother else?
    And, also i have already posted an issue in their code section But, no reply yet.

  8. #8
    Join Date
    May 2013
    Posts
    680

    Default

    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:
    [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 to see if this can compensate for this shortcoming in the rtmp player presented by the library.

    Thanks,

    Matt

  9. #9

    Default

    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
    2) 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 Getting problem with FFMPEG Libraries on XCode. So, currently i'm working on it to fix that. Do you have an idea for this?
    Last edited by praveenkchimera; 08-12-2014 at 12:46 AM.

  10. #10
    Join Date
    May 2013
    Posts
    680

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •