bilibili / ijkplayer

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

RTSP播放一段时间卡住不动,求解决方法 #2113

Closed kQly closed 3 years ago

kQly commented 7 years ago

以下是log:

===== custom modules begin ===== register demuxer : ijklivehook ===== custom modules end ===== av_version_info: ff3.1--ijk0.6.0--20160715--001 ijkmp_set_inject_opaque(0x100c37dd0) ijkmp_set_inject_opaque()=void 2016-10-14 18:00:12.962021 IJKMediaDemo[12125:4248735] Metal GPU Frame Capture Enabled 2016-10-14 18:00:12.962785 IJKMediaDemo[12125:4248735] Metal API Validation Enabled 2016-10-14 18:00:13.072836 IJKMediaDemo[12125:4248735] OK setup GL

ijkmp_ios_set_view(glView=0x100c334a0) ijkmp_ios_set_view(glView=0x100c334a0)=void 2016-10-14 18:00:13.155943 IJKMediaDemo[12125:4248735] invalidateRenderBuffer

2016-10-14 18:00:13.157505 IJKMediaDemo[12125:4248907] IJKSDLGLView: setupDisplay not ready

ijkmp_set_data_source(url="rtsp://192.168.42.1/live") ijkmp_set_data_source(url="rtsp://192.168.42.1/live")=0 ijkmp_prepare_async() remove 'timeout' option for rtmp. ===== versions ===== FFmpeg : ff3.1--ijk0.6.0--20160715--001 libavutil : 55.27.100 libavcodec : 57.48.101 libavformat : 57.40.101 libswscale : 4.1.100 libswresample: 2.1.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 : ijkinject-opaque = 4307779024 format-opts : ijkapplication = 4307784176 format-opts : user-agent = ijkplayer format-opts : auto_convert = 0 format-opts : max-buffer-size = 1048576 format-opts : safe = 0

format-opts : reconnect = 1

ijkmp_prepare_async()=0 remove 'timeout' option for rtmp. 2016-10-14 18:00:13.206899 IJKMediaDemo[12125:4248735] invalidateRenderBuffer

2016-10-14 18:00:13.207042 IJKMediaDemo[12125:4248907] IJKSDLGLView: setupDisplay not ready

No default whitelist set SDP: v=0

o=- 1472814023013705 1 IN IP4 192.168.42.1

s=Ambarella streaming

i=Ambarella streaming

t=0 0

a=tool:Ambarella streaming 2012.03.12

a=type:broadcast

a=control:*

a=range:npt=0-

a=x-qt-text-nam:Ambarella streaming

a=x-qt-text-inf:Ambarella streaming

m=video 0 RTP/AVP 96

c=IN IP4 0.0.0.0

b=AS:10000

a=rtpmap:96 H264/90000

a=fmtp:96 packetization-mode=1;profile-level-id=4D402A;sprop-parameter-sets=J01AKppkBqHtNQEBAUAAAPpAADqYOhgB6EAB6ErvLjQwA9CAA9CV3lwoAAA=,KO44gA==

a=control:track1

Failed to parse interval end specification '' video codec set to: h264 RTP Packetization Mode: 1 RTP Profile IDC: 4d Profile IOP: 40 Level: 2a Extradata set to 0x1700b7280 (size: 56) No default whitelist set No default whitelist set end receive buffer size reported is 65536 No default whitelist set end receive buffer size reported is 65536 setting jitter buffer size to 500 hello state=0 Failed to parse interval end specification '' Option ijkinject-opaque not found. nal_unit_type: 7, nal_ref_idc: 1 nal_unit_type: 8, nal_ref_idc: 1 nal_unit_type: 7, nal_ref_idc: 1 nal_unit_type: 8, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 Frame num gap 1 511 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 7, nal_ref_idc: 1 nal_unit_type: 8, nal_ref_idc: 1 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 5, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 All info found max_frame_duration: 10.000 Input #0, rtsp, from 'rtsp://192.168.42.1/live': Metadata: title : Ambarella streaming comment : Ambarella streaming Duration: N/A, start: 1.803511, bitrate: N/A Stream #0:0, 57, 1/90000: Video: h264, 1 reference frame, yuv420p(tv, bt709, left), 848x480, 0/1, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc detected 2 logical cores nal_unit_type: 7, nal_ref_idc: 1 nal_unit_type: 8, nal_ref_idc: 1 vtb fail!!! switch to ffmpeg decode!!!! VideoCodec: avcodec, h264 fps: 29.970030 (normal) fps: 29.970030 (normal) 2016-10-14 18:00:15.823702 IJKMediaDemo[12125:4248735] FFP_MSG_VIDEO_DECODER_OPEN: false 2016-10-14 18:00:15.824190 IJKMediaDemo[12125:4248735] FFP_MSG_VIDEO_SIZE_CHANGED: 848, 480 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 Frame num gap 1 511 2016-10-14 18:00:15.836489 IJKMediaDemo[12125:4248735] FFP_MSG_SAR_CHANGED: 0, 1 ijkmp_get_msg: FFP_MSG_PREPARED 2016-10-14 18:00:15.838062 IJKMediaDemo[12125:4248735] FFP_MSG_PREPARED:

ijkmp_get_meta_l ijkmp_get_meta_l()=void 2016-10-14 18:00:15.838323 IJKMediaDemo[12125:4248735] fps in meta 29.970030 2016-10-14 18:00:15.838445 IJKMediaDemo[12125:4248735] mediaIsPreparedToPlayDidChange

2016-10-14 18:00:15.838530 IJKMediaDemo[12125:4248735] loadStateDidChange: IJKMPMovieLoadStatePlaythroughOK: 3 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 2016-10-14 18:00:15.841672 IJKMediaDemo[12125:4248735] IJKMPMoviePlayBackStateDidChange 1: playing nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 7, nal_ref_idc: 1 nal_unit_type: 8, nal_ref_idc: 1 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 5, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 SDL_VoutFFmpeg_CreateOverlay(w=848, h=480, fmt=I420(0x30323449, dp=0x170272640) Video: first frame decoded 2016-10-14 18:00:15.958270 IJKMediaDemo[12125:4248735] FFP_MSG_VIDEO_SIZE_CHANGED: 848, 480 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 SDL_VoutFFmpeg_CreateOverlay(w=848, h=480, fmt=I420(0x30323449, dp=0x170272640) 2016-10-14 18:00:15.958440 IJKMediaDemo[12125:4248735] FFP_MSG_VIDEO_SIZE_CHANGED: 848, 480 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 SDL_VoutFFmpeg_CreateOverlay(w=848, h=480, fmt=I420(0x30323449, dp=0x170272640) 2016-10-14 18:00:15.962113 IJKMediaDemo[12125:4248735] FFP_MSG_VIDEO_SIZE_CHANGED: 848, 480 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 [GLES2] Version = OpenGL ES 2.0 Metal - 33 [GLES2] Vendor = Apple Inc. [GLES2] Renderer = Apple A9 GPU [GLES2] Extensions = GL_OES_depth_texture GL_OES_depth_texture_cube_map 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 ct_type:1 pic_struct:0 2016-10-14 18:00:15.982729 IJKMediaDemo[12125:4248930] IJKSDLGLView: renderbufferStorage fromDrawable

IJK_GLES2_Renderer_TexCoords_cropRight 2016-10-14 18:00:15.994067 IJKMediaDemo[12125:4248735] FFP_MSG_VIDEO_RENDERING_START:

nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0

... ... ...

nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 max delay reached. need to consume packet RTP: missed 4 packets ct_type:1 pic_struct:0 unknown SEI type 128 unknown SEI type 70 unknown SEI type 66 unknown SEI type 150 unknown SEI type 191 unknown SEI type 196 unknown SEI type 117 unknown SEI type 130 unknown SEI type 62 unknown SEI type 199 unknown SEI type 189 unknown SEI type 33 unknown SEI type 67 unknown SEI type 254 unknown SEI type 74 user data:"/\356r^}ϠKit\247\346\3652J\350\275Q\241\267\365\207\256<\303s=\305a\266\346C ;\342$\275ܑ\361\271" unknown SEI type 115 unknown SEI type 211 unknown SEI type 188 unknown SEI type 204 unknown SEI type 85 unknown SEI type 62 unknown SEI type 177 unknown SEI type 70 unknown SEI type 143 unknown SEI type 245 unknown SEI type 182 unknown SEI type 114 unknown SEI type 70 unknown SEI type 150 unknown SEI type 68 unknown SEI type 21 unknown SEI type 128 unknown SEI type 36 unknown SEI type 134 unknown SEI type 67 unknown SEI type 155 unknown SEI type 187 unknown SEI type 165 unknown SEI type 150 unknown SEI type 55 unknown SEI type 19 unknown SEI type 209 unknown SEI type 125 unknown SEI type 175 unknown SEI type 233 unknown SEI type 181 SEI type 31 size 1392 truncated at 848 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 max delay reached. need to consume packet RTP: missed -1 packets ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 ct_type:1 pic_struct:0 nal_unit_type: 7, nal_ref_idc: 1 nal_unit_type: 8, nal_ref_idc: 1 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 unknown SEI type 128 unknown SEI type 70 unknown SEI type 66 unknown SEI type 150 unknown SEI type 191 unknown SEI type 196 unknown SEI type 117 unknown SEI type 130 unknown SEI type 62 unknown SEI type 199 unknown SEI type 189 unknown SEI type 33 unknown SEI type 67 unknown SEI type 254 unknown SEI type 74 user data:"/\356r^}ϠKit\247\346\3652J\350\275Q\241\267\365\207\256<\303s=\305a\266\346C ;\342$\275ܑ\361\271" unknown SEI type 115 unknown SEI type 211 unknown SEI type 188 unknown SEI type 204 unknown SEI type 85 unknown SEI type 62 unknown SEI type 177 unknown SEI type 70 unknown SEI type 143 unknown SEI type 245 unknown SEI type 182 unknown SEI type 114 unknown SEI type 70 unknown SEI type 150 unknown SEI type 68 unknown SEI type 21 unknown SEI type 128 unknown SEI type 36 unknown SEI type 134 unknown SEI type 67 unknown SEI type 155 unknown SEI type 187 unknown SEI type 165 unknown SEI type 150 unknown SEI type 55 unknown SEI type 19 unknown SEI type 209 unknown SEI type 125 unknown SEI type 175 unknown SEI type 233 unknown SEI type 181 SEI type 31 size 1392 truncated at 834 ct_type:1 pic_struct:0 Frame num gap 1 511 no picture ooo ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo ct_type:1 pic_struct:0 nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo concealing 365 DC, 365 AC, 365 MV errors in P frame nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo bytestream overread -3 bytestream overread -5 error while decoding MB 1 5, bytestream -5 concealing 1373 DC, 1373 AC, 1373 MV errors in P frame ffp_toggle_buffering_l: start aout_pause_audio(1) nal_unit_type: 1, nal_ref_idc: 1 no picture ooo 2016-10-14 18:05:30.679767 IJKMediaDemo[12125:4248735] FFP_MSG_BUFFERING_START:

2016-10-14 18:05:30.679854 IJKMediaDemo[12125:4248735] loadStateDidChange: IJKMPMovieLoadStateStalled: 4 ct_type:1 pic_struct:0 mmco: unref short failure illegal short term buffer state detected nal_unit_type: 6, nal_ref_idc: 0 nal_unit_type: 1, nal_ref_idc: 1 ct_type:1 pic_struct:0 no picture ooo

kQly commented 7 years ago

ios

bbcallen commented 7 years ago

Sorry, not familiar with RTSP

seanLee commented 7 years ago

it seems that i met the same problem.

===== custom modules begin =====
register demuxer : ijklivehook
===== custom modules end =====
av_version_info: ff3.2--ijk0.7.2-20161107--001
ijk_version_info: k0.7.4
ijkmp_set_inject_opaque(0x170204910)
ijkmp_set_inject_opaque()=void
2016-11-26 16:08:52.114807 Sports[1180:419220] OK setup GL

ijkmp_ios_set_view(glView=0x13fdd3510)
ijkmp_ios_set_view(glView=0x13fdd3510)=void
2016-11-26 16:08:52.137670 Sports[1180:419220] invalidateRenderBuffer

ijkmp_set_data_source(url="http://r.2048tv.com/dn/ttzb3.m3u8?key=6272a7502e21f1be44aa41d69c6e426c&id=8536&tm=1480147731")
ijkmp_set_data_source(url="http://r.2048tv.com/dn/ttzb3.m3u8?key=6272a7502e21f1be44aa41d69c6e426c&id=8536&tm=1480147731")=0
ijkmp_prepare_async()
ijkmp_prepare_async()=0
2016-11-26 16:08:52.143665 Sports[1180:419220] invalidateRenderBuffer

2016-11-26 16:08:52.145610 Sports[1180:419353] IJKSDLGLView: setupDisplay not ready

2016-11-26 16:08:52.145889 Sports[1180:419353] IJKSDLGLView: setupDisplay not ready

aout_open_audio()
aout_pause_audio(0)
aout_pause_audio(1)
2016-11-26 16:08:53.570441 Sports[1180:419220] FFP_MSG_VIDEO_DECODER_OPEN: false
2016-11-26 16:08:53.614918 Sports[1180:419220] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720
2016-11-26 16:08:53.615281 Sports[1180:419220] FFP_MSG_SAR_CHANGED: 0, 1
ijkmp_get_msg: FFP_MSG_PREPARED
2016-11-26 16:08:53.615510 Sports[1180:419220] FFP_MSG_PREPARED:

ijkmp_get_meta_l
ijkmp_get_meta_l()=void
2016-11-26 16:08:53.615708 Sports[1180:419220] fps in meta 25.000000
2016-11-26 16:08:53.615935 Sports[1180:419220] PlayerLoadState:3
2016-11-26 16:08:53.669362 Sports[1180:419220] PlaybackState:2
2016-11-26 16:08:53.669913 Sports[1180:419220] PlaybackState:2
ijkmp_start()
ijkmp_start()=0
ijkmp_get_msg: FFP_REQ_START
aout_pause_audio(0)
2016-11-26 16:08:55.445226 Sports[1180:419220] PlaybackState:1
ijkmp_get_msg: FFP_REQ_START
aout_pause_audio(0)
2016-11-26 16:08:55.490266 Sports[1180:419220] PlaybackState:1
SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x170a61dc0)
Video: first frame decoded
SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x170a61dc0)
2016-11-26 16:08:55.523248 Sports[1180:419220] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720
2016-11-26 16:08:55.523384 Sports[1180:419220] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720
SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x170a61dc0)
avcodec/Audio: first frame decoded
[GLES2] Version = OpenGL ES 2.0 Apple A7 GPU - 95.16
[GLES2] Vendor = Apple Inc.
[GLES2] Renderer = Apple A7 GPU
[GLES2] Extensions = GL_OES_depth_texture GL_OES_depth_texture_cube_map 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_multi2016-11-26 16:08:55.547207 Sports[1180:419220] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720
2016-11-26 16:08:55.547667 Sports[1180:419220] FFP_MSG_AUDIO_RENDERING_START:

sample 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
2016-11-26 16:08:55.567268 Sports[1180:419404] IJKSDLGLView: renderbufferStorage fromDrawable

IJK_GLES2_Renderer_TexCoords_cropRight
2016-11-26 16:08:55.582437 Sports[1180:419220] FFP_MSG_VIDEO_RENDERING_START:

aout_pause_audio(1)
2016-11-26 16:09:07.382516 Sports[1180:419220] FFP_MSG_BUFFERING_START:

2016-11-26 16:09:07.382854 Sports[1180:419220] PlayerLoadState:4

Then the player paused all the time.

seanLee commented 7 years ago

the same situation when I played the url in ijkplayerDemo.it can be our problem,but i am not sure whose the problem is.

liang10294036 commented 4 years ago

请问解决了吗,我播放rtmp也是一段时间卡住不动

lovederh commented 3 years ago

同上问题

lovederh commented 3 years ago

按这篇文章, 修改原码重新编译, 测试没有卡住了 https://www.jianshu.com/p/36bb6946d7b1 image