slavavdovichenko / MediaLibDemos

98 stars 25 forks source link

RTMPStreamPlayer returns stream not opened #36

Open spraveenk91 opened 10 years ago

spraveenk91 commented 10 years ago

Hello,

First thanks for your library. I'm trying to play the RTMP video which is playing through wowza media server with your player code. Player is working fine when the below RTMP video initialized,

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

But, the same is not working with my case. I am getting below as log,


2014-08-04 15:35:01.039 RTMPStreamPlayer[3775:400f] MPMediaDecoder -> playing: try to open the stream rtmp://58.68.93.211:1935/coder/Mobile8 ...
2014-08-04 15:35:01.042 RTMPStreamPlayer[3775:400f] @@@@@@@@@@@@@@@@@@>>>> MPMediaDecoder -> openStream: (BEGIN)
[flv @ 0x1168e00] Stream discovered after head already parsed
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[flv @ 0x1168e00] negative cts, previous timestamps might be wrong
[h264 @ 0x983800] AVC: nal size 21102622
[h264 @ 0x983800] missing picture in access unit with size 40
[h264 @ 0x983800] AVC: nal size 21102622
[h264 @ 0x983800] missing picture in access unit with size 40
[h264 @ 0x983800] AVC: nal size 21102622
[h264 @ 0x983800] missing picture in access unit with size 40
[h264 @ 0x983800] AVC: nal size 21102622
[h264 @ 0x983800] missing picture in access unit with size 40
[h264 @ 0x983800] AVC: nal size 21102622
[h264 @ 0x983800] missing picture in access unit with size 40
[h264 @ 0x983800] AVC: nal size 21102622
[h264 @ 0x983800] missing picture in access unit with size 40
[h264 @ 0x983800] AVC: nal size 21102622
[h264 @ 0x983800] missing picture in access unit with size 40
[flv @ 0x1168e00] 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/Mobile8':
  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 @ 0x982000] No codec provided to avcodec_open2()
2014-08-04 15:35:03.748 RTMPStreamPlayer[3775:400f] MPMediaDecoder -> ERROR avcodec_open2() <audio> : Invalid argument
2014-08-04 15:35:03.749 RTMPStreamPlayer[3775:400f] MPMediaDecoder -> playing: stream is not opened, wait about 1 sec
2014-08-04 15:35:04.840 RTMPStreamPlayer[3775:400f] MPMediaDecoder -> playing: try to open the stream rtmp://58.68.93.211:1935/coder/Mobile8 ...
2014-08-04 15:35:04.842 RTMPStreamPlayer[3775:400f] @@@@@@@@@@@@@@@@@@>>>> MPMediaDecoder -> openStream: (BEGIN)
[flv @ 0x96a800] Stream discovered after head already parsed
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[flv @ 0x96a800] negative cts, previous timestamps might be wrong
[h264 @ 0x11ec000] AVC: nal size 21102622
[h264 @ 0x11ec000] missing picture in access unit with size 40
[h264 @ 0x11ec000] AVC: nal size 21102622
[h264 @ 0x11ec000] missing picture in access unit with size 40
[h264 @ 0x11ec000] AVC: nal size 21102622
[h264 @ 0x11ec000] missing picture in access unit with size 40
[h264 @ 0x11ec000] AVC: nal size 21102622
[h264 @ 0x11ec000] missing picture in access unit with size 40
[h264 @ 0x11ec000] AVC: nal size 21102622
[h264 @ 0x11ec000] missing picture in access unit with size 40
[h264 @ 0x11ec000] AVC: nal size 21102622
[h264 @ 0x11ec000] missing picture in access unit with size 40
[h264 @ 0x11ec000] AVC: nal size 21102622
[h264 @ 0x11ec000] missing picture in access unit with size 40
[flv @ 0x96a800] 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/Mobile8':
  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 @ 0x11ec800] No codec provided to avcodec_open2()
2014-08-04 15:35:06.994 RTMPStreamPlayer[3775:400f] MPMediaDecoder -> ERROR avcodec_open2() <audio> : Invalid argument
2014-08-04 15:35:06.995 RTMPStreamPlayer[3775:400f] MPMediaDecoder -> playing: stream is not opened, wait about 1 sec
2014-08-04 15:35:07.857 RTMPStreamPlayer[3775:60b] ******************************************** connectControl: host = rtmp://58.68.93.211:1935/coder
2014-08-04 15:35:08.096 RTMPStreamPlayer[3775:400f] MPMediaDecoder -> playing: try to open the stream (null) ...
2014-08-04 15:35:08.098 RTMPStreamPlayer[3775:400f] @@@@@@@@@@@@@@@@@@>>>> MPMediaDecoder -> openStream: (BEGIN)
2014-08-04 15:35:08.100 RTMPStreamPlayer[3775:400f] MPMediaDecoder -> ERROR avformat_open_input() : Protocol not found
2014-08-04 15:35:08.101 RTMPStreamPlayer[3775:400f] DEALLOC MPMediaDecoder

Kindly, provide how to set a video stream to play video through Wowza media server using your player.

Thanks & Regards

Waiting for your reply been long time??