bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.47k stars 8.12k forks source link

偶尔遇到开始播放视频的时候不走IJKMPMoviePlaybackStatePlaying 这个 通知啊。。是什么原因导致的呢 #3448

Open shenmingyang opened 7 years ago

raymond1012 commented 7 years ago

need debug

shenmingyang commented 7 years ago

ijkmp_set_inject_opaque(0x158bd210) ijkmp_set_inject_opaque()=void ijkmp_set_ijkio_inject_opaque(0x158bd210) ijkmp_set_ijkio_inject_opaque()=void 2017-08-10 16:34:20.816478+0800 DYD[455:87518] OK setup GL ijkmp_ios_set_view(glView=0x15ac4ef0) ijkmp_ios_set_view(glView=0x15ac4ef0)=void 2017-08-10 16:34:20.836736+0800 DYD[455:87518] invalidateRenderBuffer ijkmp_set_data_source(url="http://music.diyidan.net/shortvideo/2017/8/10/LtTbRdjsSGd6YOrW.mp4") ijkmp_set_data_source(url="http://music.diyidan.net/shortvideo/2017/8/10/LtTbRdjsSGd6YOrW.mp4")=0 ijkmp_prepare_async() 2017-08-10 16:34:20.838361+0800 DYD[455:87812] IJKSDLGLView: setupDisplay not ready ijkmp_prepare_async()=0 aout_open_audio() 2017-08-10 16:34:21.296302+0800 DYD[455:87518] invalidateRenderBuffer 2017-08-10 16:34:21.296552+0800 DYD[455:87928] IJKSDLGLView:display: unable to tryLock GL active: 0 aout_pause_audio(0) aout_pause_audio(1) ijkmp_get_msg: FFP_MSG_PREPARED SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x15ac4530) Video: first frame decoded aout_pause_audio(0) [GLES2] Version = OpenGL ES 2.0 IMGSGX543-129 [GLES2] Vendor = Imagination Technologies [GLES2] Renderer = PowerVR SGX 543 [GLES2] Extensions = GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_read_format GL_IMG_texture_compression_pvrtc create render yuv420p use render yuv420p 2017-08-10 16:34:22.005370+0800 DYD[455:87952] IJKSDLGLView: renderbufferStorage fromDrawable IJK_GLES2_Renderer_TexCoords_cropRight avcodec/Audio: first frame decoded SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x15ac4530) SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x15ac4530) 2017-08-10 16:34:22.285046+0800 DYD[455:87518] FFP_MSG_VIDEO_DECODER_OPEN: false 2017-08-10 16:34:22.285559+0800 DYD[455:87518] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720 2017-08-10 16:34:22.286285+0800 DYD[455:87518] FFP_MSG_SAR_CHANGED: 1, 1 2017-08-10 16:34:22.286561+0800 DYD[455:87518] FFP_MSG_PREPARED: ijkmp_get_meta_l ijkmp_get_meta_l()=void 2017-08-10 16:34:22.287898+0800 DYD[455:87518] fps in meta 24.417000 ijkmp_set_playback_rate(1.000000) ijkmp_set_playback_rate()=void ijkmp_set_playback_volume(1.000000) ijkmp_set_playback_volume()=void

2017-08-10 08:34:22 +0000 function:-[PlayerViewController(Notification) moviePlayBackStateDidChange:] line:153 content:停止, class = PlayerView+Notification.m

2017-08-10 08:34:22 +0000 function:-[PlayerViewController(Notification) moviePlayBackStateDidChange:] line:153 content:停止, class = PlayerView+Notification.m 2017-08-10 16:34:22.292263+0800 DYD[455:87518] FFP_MSG_BUFFERING_START: 2017-08-10 16:34:22.293091+0800 DYD[455:87518] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720 2017-08-10 16:34:22.293282+0800 DYD[455:87518] FFP_MSG_BUFFERING_END:

2017-08-10 08:34:22 +0000 function:-[PlayerViewController(Notification) moviePlayBackStateDidChange:] line:153 content:停止, class = PlayerView+Notification.m 2017-08-10 16:34:22.294272+0800 DYD[455:87518] FFP_MSG_VIDEO_RENDERING_START: 2017-08-10 16:34:22.294630+0800 DYD[455:87518] FFP_MSG_AUDIO_RENDERING_START: 2017-08-10 16:34:22.294990+0800 DYD[455:87518] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720 2017-08-10 16:34:22.295244+0800 DYD[455:87518] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720 aout_close_audio() aout_set_volume()

dadadong commented 7 years ago

同样遇到过~

blueseaguo commented 6 years ago

同样遇到了,比较难解决

demoker commented 4 years ago

偶发 请问各位怎么解决的