Ijkplayer: 请问 invalidateRenderBuffer setupDisplay not ready

Created on 7 Apr 2017  ·  8Comments  ·  Source: bilibili/ijkplayer

===== custom modules begin =====
register demuxer : ijklivehook
===== custom modules end =====
av_version_info: ff3.2--ijk0.7.6--20170203--001
ijk_version_info: k0.7.7.1
ijkmp_set_inject_opaque(0x60800001aa00)
ijkmp_set_inject_opaque()=void
ijkmp_set_ijkio_inject_opaque(0x60800001aa00)
ijkmp_set_ijkio_inject_opaque()=void
2017-04-07 13:39:18.397 VideoT[1583:26499] OK setup GL
ijkmp_ios_set_view(glView=0x7fa233c1bf20)
ijkmp_ios_set_view(glView=0x7fa233c1bf20)=void
2017-04-07 13:39:18.406 VideoT[1583:26499] invalidateRenderBuffer
2017-04-07 13:39:18.406 VideoT[1583:26632] IJKSDLGLView: setupDisplay not ready
ijkmp_set_data_source(url="/Users/xx/Library/Developer/CoreSimulator/Devices/9D279C2F-F464-4115-AC27-F04AED750F5E/data/Containers/Data/Application/66531A86-FEC8-4F10-872D-EE3CC767879C/Documents/1584f2d5r3t2y23FLV-HD.concat")
ijkmp_set_data_source(url="/Users/xxx/Library/Developer/CoreSimulator/Devices/9D279C2F-F464-4115-AC27-F04AED750F5E/data/Containers/Data/Application/66531A86-FEC8-4F10-872D-EE3CC767879C/Documents/1584f2d5r3t2y23FLV-HD.concat")=0
ijkmp_prepare_async()
===== versions =====
ijkplayer : k0.7.7.1
FFmpeg : ff3.2--ijk0.7.6--20170203--001
libavutil : 55.34.100
libavcodec : 57.64.100
libavformat : 57.56.100
libswscale : 4.2.100
libswresample: 2.3.100
===== options =====
player-opts : video-pictq-size = 3
player-opts : overlay-format = fcc-_es2
player-opts : max-fps = 30
player-opts : framedrop = 0
player-opts : videotoolbox-max-frame-width = 960
player-opts : videotoolbox = 0
player-opts : start-on-prepared = 1
format-opts : ijkapplication = 140334629779536
format-opts : ijkiomanager = 106102872451632
format-opts : user-agent = ijkplayer
format-opts : auto_convert = 0
format-opts : timeout = 30000000
format-opts : reconnect = 1

format-opts : safe = 0

ijkmp_prepare_async()=0
Setting default whitelist 'file,crypto'
Format concat probed with size=2048 and score=100
Protocol not on whitelist 'file,crypto'!
Impossible to open 'http://k.youku.com/player/getFlvPath/sid/049154279362312d6cf50/st/flv/fileid/03008003005889F39DE83A31904CB25675A-4E20-2466-62D3-409649FF9D0A?k=7ec6bcbde07c27192412f748&hd=3&myp=0&ts=145&ctype=12&ev=1&token=0519&oip=1696927879&ep=ciadG0yJVMkJ5iXdiz8bMyqxInIPXP4J9h%2BNgdJhALshQOC27z3Ys%2Bi4TY5BF%2FAZdlF0Eu73rNLh%0AaEVlYfQ2q2gQ3UquP%2Frm%2FITg5alTzZYEb29Ae7nXxVSeRjH4&ccode=0401&duration=144&expire=18000&psid=02111d567d0500b7b7862bac90145c10&ups_client_netip=101.37.16.135&ups_ts=1491542793&ups_userid=&utid=QNjFEGeMZxACAbemsL6Obqbd&vid=XMjQ4NzA4MjI4OA%3D%3D&vkey=Ab2131d5b4e6e5c95413c200745909b0c'
Statistics: 1875 bytes read, 0 seeks
/Users/xxx/Library/Developer/CoreSimulator/Devices/9D279C2F-F464-4115-AC27-F04AED750F5E/data/Containers/Data/Application/66531A86-FEC8-4F10-872D-EE3CC767879C/Documents/1584f2d5r3t2y23FLV-HD.concat: Invalid argument
2017-04-07 13:39:18.419 VideoT[1583:26499] FFP_MSG_ERROR: 0
2017-04-07 13:39:18.419 VideoT[1583:26499] IJKMPMoviePlayBackStateDidChange 2: paused
2017-04-07 13:39:18.420 VideoT[1583:26499] playbackStateDidChange: IJKMPMovieFinishReasonPlaybackError: 1
2017-04-07 13:39:18.427 VideoT[1583:26499] invalidateRenderBuffer
2017-04-07 13:39:18.427 VideoT[1583:26658] IJKSDLGLView: setupDisplay not ready

Most helpful comment

第一种方法:不要直接拖入framework,把源码拖入项目中(ps:待验证,之前的一个项目从来没有出现过这种问题)
第二种方法:直接拖入framework,自己项目的other linker flags,里面加入-all_load(ps:我这边有效,用了framework)

All 8 comments

我也有同样的问题 请问你找到原因了么

第一种方法:不要直接拖入framework,把源码拖入项目中(ps:待验证,之前的一个项目从来没有出现过这种问题)
第二种方法:直接拖入framework,自己项目的other linker flags,里面加入-all_load(ps:我这边有效,用了framework)

@tivon-lee 谢谢你 我试试 @beydeng 试试这种方法

@beydeng 我尝试使用tivon-lee的第二种方法后,就再没有出现了。 之后我再去掉-all_load, 也没问题了。

@tivon-lee answer not working too me

answer not working too me

这个问题我试了第二种方式,可是还是会出现同样的问题

The 2nd answer does not work for me.
If I enable -all_load linker flag, the linking will fail and produce "duplicate symbols" error here on XCode 10.2.1.

But I can build the IJKPlayerDemo and make it work just fine.
Does anyone can share further insight about this issue?
Thank you.

Was this page helpful?
0 / 5 - 0 ratings