Skip to content

关于rtmp视频流在iOS18下播放异常的问题 #108

Description

@ztywhy001

rtmp视频流,iOS18下播放10秒左右就会自动断开,但是在iOS15却可以持续播放20分钟以上 。以下是日志:

IJK_GLES2_Renderer_TexCoords_cropRight
FFP_MSG_VIDEO_SIZE_CHANGED: 960, 540
FFP_MSG_VIDEO_DECODED_START:
FFP_MSG_VIDEO_SIZE_CHANGED: 960, 540
FFP_MSG_VIDEO_SIZE_CHANGED: 960, 540
FFP_MSG_AUDIO_DECODED_START:
FFP_MSG_VIDEO_RENDERING_START:
FFP_MSG_FIND_STREAM_INFO:
aout_open_audio()
aout_pause_audio(0)
FFP_MSG_AUDIO_RENDERING_START:
FFP_MSG_VIDEO_DECODER_OPEN: false
ijkmp_get_msg: FFP_MSG_PREPARED
FFP_MSG_COMPONENT_OPEN:
FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720
FFP_MSG_SAR_CHANGED: 0, 1
FFP_MSG_PREPARED:
ijkmp_get_meta_l
ijkmp_get_meta_l()=void
ijkmp_set_playback_rate(1.000000)
ijkmp_set_playback_rate()=void
ijkmp_set_playback_volume(1.000000)
ijkmp_set_playback_volume()=void

IJKMPMovieLoadState -> 3

invalidateRenderBuffer
IJKSDLGLView: setupDisplay not ready
SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x110680cc0)
Video: first frame decoded
SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x110680cc0)
SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x110680cc0)
invalidateRenderBuffer
IJKSDLGLView: setupDisplay not ready
FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720
FFP_MSG_VIDEO_DECODED_START:
FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720
FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720
[GLES2] Version = OpenGL ES 2.0 Metal - 101
[GLES2] Vendor = Apple Inc.
[GLES2] Renderer = Apple A14 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
IJKSDLGLView: renderbufferStorage fromDrawable
IJK_GLES2_Renderer_TexCoords_cropRight
FFP_MSG_VIDEO_RENDERING_START:
aout_close_audio()
aout_set_volume()
avcodec/Audio: first frame decoded
FFP_MSG_AUDIO_DECODED_START:
aout_pause_audio(1)
aout_pause_audio(1)
FFP_MSG_BUFFERING_START:

IJKMPMovieLoadState -> 4

FFP_MSG_BUFFERING_START:

IJKMPMovieLoadState -> 4

FFP_MSG_ERROR: 0

reason -> 1 , notfication = NSConcreteNotification 0x14a48e320 {name = IJKMPMoviePlayerPlaybackDidFinishNotification; object = <IJKFFMoviePlayerController: 0x144022580>; userInfo = {

IJKMPMoviePlayerPlaybackDidFinishReasonUserInfoKey = 1;
error = 0;

}}
FFP_MSG_ERROR: 0

reason -> 1 , notfication = NSConcreteNotification 0x14a48e320 {name = IJKMPMoviePlayerPlaybackDidFinishNotification; object = <IJKFFMoviePlayerController: 0x144020f00>; userInfo = {

IJKMPMoviePlayerPlaybackDidFinishReasonUserInfoKey = 1;
error = 0;

}}
aout_pause_audio(0)
aout_pause_audio(0)
FFP_MSG_BUFFERING_END:

IJKMPMovieLoadState -> 3

FFP_MSG_BUFFERING_END:

IJKMPMovieLoadState -> 3

aout_pause_audio(1)
FFP_MSG_ERROR: 0

reason -> 1 , notfication = NSConcreteNotification 0x14a48e520 {name = IJKMPMoviePlayerPlaybackDidFinishNotification; object = <IJKFFMoviePlayerController: 0x144022100>; userInfo = {

IJKMPMoviePlayerPlaybackDidFinishReasonUserInfoKey = 1;
error = 0;

}}
aout_pause_audio(1)
FFP_MSG_ERROR: 0

reason -> 1 , notfication = NSConcreteNotification 0x14a48e520 {name = IJKMPMoviePlayerPlaybackDidFinishNotification; object = <IJKFFMoviePlayerController: 0x144022280>; userInfo = {

IJKMPMoviePlayerPlaybackDidFinishReasonUserInfoKey = 1;
error = 0;

}}

请问是什么解决方案么?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions