Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IJKPLAYER已经配置好,但是有些RTSP地址播放不了 #2741

Open
wangwtotao opened this issue Feb 25, 2017 · 6 comments
Open

IJKPLAYER已经配置好,但是有些RTSP地址播放不了 #2741

wangwtotao opened this issue Feb 25, 2017 · 6 comments

Comments

@wangwtotao
Copy link

两个地址:第一:rtsp://192.168.1.20:554/live1.sdp 第二个地址:rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov
这两个地址用VLC播放都可以,没问题。但是用xcode + ijkplayer,就只能播放第二个视频,第一个播放不了。第一个贴下日志:
===== custom modules begin =====
register demuxer : ijklivehook
===== custom modules end =====
av_version_info: ff3.1--ijk0.6.0--20160715--001
ijkmp_set_inject_opaque(0x7f9691d07900)
ijkmp_set_inject_opaque()=void
2017-02-25 13:16:42.666 RTSP[732:20701] OK setup GL
ijkmp_ios_set_view(glView=0x7f9691d0c0d0)
ijkmp_ios_set_view(glView=0x7f9691d0c0d0)=void
2017-02-25 13:16:42.679 RTSP[732:20701] invalidateRenderBuffer
2017-02-25 13:16:42.679 RTSP[732:20784] IJKSDLGLView: setupDisplay not ready
ijkmp_set_data_source(url="rtsp://192.168.1.20:554/live1.sdp")
ijkmp_set_data_source(url="rtsp://192.168.1.20:554/live1.sdp")=0
ijkmp_prepare_async()
ijkmp_prepare_async()=0
2017-02-25 13:16:42.683376 RTSP[732:20815] [] nw_host_stats_add_src recv too small, received 24, expected 28
2017-02-25 13:16:42.690 RTSP[732:20701] invalidateRenderBuffer
2017-02-25 13:16:42.705 RTSP[732:20784] IJKSDLGLView: setupDisplay not ready
2017-02-25 13:16:42.807218 RTSP[732:20815] [] nw_host_stats_add_src recv too small, received 24, expected 28
aout_open_audio()
2017-02-25 13:16:53.497031 RTSP[732:20954] [aqme] 255: AQDefaultDevice (1): skipping input stream 0 0 0x0
aout_pause_audio(0)
vtb fail!!! switch to ffmpeg decode!!!!
ijkmp_get_msg: FFP_MSG_PREPARED
2017-02-25 13:16:53.534 RTSP[732:20701] FFP_MSG_VIDEO_DECODER_OPEN: false
2017-02-25 13:16:53.535 RTSP[732:20701] FFP_MSG_VIDEO_SIZE_CHANGED: 0, 0
2017-02-25 13:16:53.535 RTSP[732:20701] FFP_MSG_SAR_CHANGED: 0, 1
2017-02-25 13:16:53.535 RTSP[732:20701] FFP_MSG_PREPARED:
ijkmp_get_meta_l
ijkmp_get_meta_l()=void
2017-02-25 13:16:55.497760 RTSP[732:20954] [aqme] 255: AQDefaultDevice (172): skipping input stream 0 0 0x0

@raymond1012
Copy link
Member

raymond1012 commented Feb 26, 2017 via email

@wangwtotao
Copy link
Author

@raymond1012 谢谢您的回复,现在好像视频解码可以了,但是还是没有画面,您看下,是什么问题?

2017-02-27 11:22:44.962894 RTSP[767:200291] [DYMTLInitPlatform] platform initialization successful
2017-02-27 11:22:45.278111 RTSP[767:200229] [Accessibility] ****************** Loading GAX Client Bundle ****************
===== custom modules begin =====
register demuxer : ijklivehook
===== custom modules end =====
av_version_info: ff3.1--ijk0.6.0--20160715--001
ijkmp_set_inject_opaque(0x101f25850)
ijkmp_set_inject_opaque()=void
2017-02-27 11:22:45.688777 RTSP[767:200229] OK setup GL

ijkmp_ios_set_view(glView=0x101f06db0)
ijkmp_ios_set_view(glView=0x101f06db0)=void
2017-02-27 11:22:45.720207 RTSP[767:200229] invalidateRenderBuffer

ijkmp_set_data_source(url="rtsp://192.168.1.20:554/live1.sdp")
ijkmp_set_data_source(url="rtsp://192.168.1.20:554/live1.sdp")=0
ijkmp_prepare_async()
ijkmp_prepare_async()=0
2017-02-27 11:22:45.729222 RTSP[767:200229] invalidateRenderBuffer

2017-02-27 11:22:45.731898 RTSP[767:200282] IJKSDLGLView: setupDisplay not ready

2017-02-27 11:22:45.732053 RTSP[767:200281] IJKSDLGLView: setupDisplay not ready

aout_open_audio()
aout_pause_audio(0)
vtb fail!!! switch to ffmpeg decode!!!!
2017-02-27 11:22:50.892221 RTSP[767:200229] FFP_MSG_VIDEO_DECODER_OPEN: false
2017-02-27 11:22:50.894383 RTSP[767:200229] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720
2017-02-27 11:22:50.895985 RTSP[767:200229] FFP_MSG_SAR_CHANGED: 0, 1
ijkmp_get_msg: FFP_MSG_PREPARED
2017-02-27 11:22:50.897377 RTSP[767:200229] FFP_MSG_PREPARED:

ijkmp_get_meta_l
ijkmp_get_meta_l()=void
2017-02-27 11:22:50.898103 RTSP[767:200229] fps in meta 25.000000
aout_pause_audio(1)
2017-02-27 11:22:50.955986 RTSP[767:200229] FFP_MSG_BUFFERING_START:

SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x170279d00)
Video: first frame decoded
2017-02-27 11:22:51.028724 RTSP[767:200229] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720
SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x170279d00)
2017-02-27 11:22:51.030672 RTSP[767:200229] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720
SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x170279d00)
2017-02-27 11:22:51.041845 RTSP[767:200229] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720

到这儿一直,卡着不动。我感觉好像是音频解码到问题,看了看api,没找到 怎么关闭音频处理 的函数啊

@yippeesoft
Copy link

yippeesoft commented Mar 1, 2017

对比vlc抓包看看

@WilsonCP
Copy link

Hi, this may be somehow not related to the question, but I just wanted to ask, have you found a way to check how many channel/program a rtsp stream has using ijk?

@camelsmith
Copy link

need to enable sdp demux 指的是 哪个? 能给出完整配置语句嘛?谢谢

@southbaird
Copy link

楼主 请问是怎么配置的 我配置了 还是不能播放这个格式的直播流 求指点

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants