目前现象是设置过小会出现无声,必须设置到一定阈值后才出现声音,请问是什么问题,如何解决?感谢抽空看一下,非常感谢!
[bilibili/ijkplayer]probesize 设置的大小影响到音频播放
回答
我觉得你总得提供一个可以测试的 url 吧? 或者你把日志贴上了,要不别人怎么帮你看
1024L * 33情况下有声 ,日志:
2020-01-19 10:00:32.604 26828-26828 D/J4A: J4ALoader: OK: 'tv.danmaku.ijk.media.player.IjkMediaPlayer' loaded 2020-01-19 10:00:32.607 26828-26828 D/IJKMEDIA: ijkmediaplayer version : k0.8.8 2020-01-19 10:00:32.619 26828-26828 D/IJKMEDIA: IjkMediaPlayer_native_profileBegin 2020-01-19 10:00:32.619 26828-26828 D/IJKMEDIA: monstartup: libijkplayer.so 2020-01-19 10:00:33.979 26828-26828 D/IJKMEDIA: IjkMediaPlayer_native_init 2020-01-19 10:00:33.979 26828-26828 D/IJKMEDIA: IjkMediaPlayer_native_setup 2020-01-19 10:00:33.979 26828-26828 I/IJKMEDIA: av_version_info: ff3.4--ijk0.8.7--20180103--001 2020-01-19 10:00:33.979 26828-26828 I/IJKMEDIA: ijk_version_info: k0.8.8 2020-01-19 10:00:33.979 26828-26828 D/IJKMEDIA: ffpipeline_create_from_android() 2020-01-19 10:00:33.979 26828-26828 D/IJKMEDIA: ijkmp_set_inject_opaque(0x26c2) 2020-01-19 10:00:33.979 26828-26828 D/IJKMEDIA: ijkmp_set_inject_opaque()=void 2020-01-19 10:00:33.979 26828-26828 D/IJKMEDIA: ijkmp_set_ijkio_inject_opaque(0x26c2) 2020-01-19 10:00:33.980 26828-26828 D/IJKMEDIA: ijkmp_set_ijkio_inject_opaque()=void 2020-01-19 10:00:33.980 26828-26828 D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback() 2020-01-19 10:00:33.980 26828-26828 D/IJKMEDIA: ffpipeline_set_mediacodec_select_callback 2020-01-19 10:00:33.980 26828-26828 D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback()=void 2020-01-19 10:00:33.980 26828-26828 D/IJKMEDIA: IjkMediaPlayer_native_setLogLevel(3) 2020-01-19 10:00:33.980 26828-26828 D/IJKMEDIA: moncleanup 2020-01-19 10:00:33.980 26828-26828 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:00:33.981 26828-26828 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:00:33.981 26828-26828 D/IJKMEDIA: IjkMediaPlayer_setOption 2020-01-19 10:00:33.981 26828-26828 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:00:33.981 26828-26828 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:00:33.981 26828-26828 D/IJKMEDIA: IjkMediaPlayer_setOption 2020-01-19 10:00:33.981 26828-26828 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:00:33.981 26828-26828 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:00:33.982 26828-26828 D/tv.danmaku.ijk.media.player.IjkMediaPlayer: Couldn't open file on client side, trying server side 2020-01-19 10:00:33.982 26828-26828 D/IJKMEDIA: IjkMediaPlayer_setDataSourceAndHeaders 2020-01-19 10:00:33.982 26828-26828 V/IJKMEDIA: setDataSource: path rtmp://avatar-live.xfyousheng.com:20008/live/be9349f3-11eb-4a08-b3fc-50669eac6068 2020-01-19 10:00:33.982 26828-26828 D/IJKMEDIA: ijkmp_set_data_source(url="rtmp://avatar-live.xfyousheng.com:20008/live/be9349f3-11eb-4a08-b3fc-50669eac6068") 2020-01-19 10:00:33.982 26828-26828 D/IJKMEDIA: ijkmp_set_data_source(url="rtmp://avatar-live.xfyousheng.com:20008/live/be9349f3-11eb-4a08-b3fc-50669eac6068")=0 2020-01-19 10:00:33.983 26828-26828 D/IJKMEDIA: IjkMediaPlayer_setVideoSurface 2020-01-19 10:00:33.983 26828-26828 D/IJKMEDIA: ijkmp_set_android_surface(surface=0xffebaec0) 2020-01-19 10:00:33.983 26828-26828 D/IJKMEDIA: ffpipeline_set_surface() 2020-01-19 10:00:33.983 26828-26828 D/IJKMEDIA: ijkmp_set_android_surface(surface=0xffebaec0)=void 2020-01-19 10:00:33.983 26828-26828 D/IJKMEDIA: IjkMediaPlayer_prepareAsync 2020-01-19 10:00:33.983 26828-26828 D/IJKMEDIA: ijkmp_prepare_async() 2020-01-19 10:00:33.983 26828-26828 W/IJKMEDIA: remove 'timeout' option for rtmp. 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: ===== versions ===== 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: ijkplayer : k0.8.8 2020-01-19 10:00:33.983 26828-26968 I/IJKMEDIA: SDL_RunThread: [26968] ff_msg_loop 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: FFmpeg : ff3.4--ijk0.8.7--20180103--001 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: libavutil : 55.78.100 2020-01-19 10:00:33.983 26828-26968 D/IJKMEDIA: message_loop 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: libavcodec : 57.107.100 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: libavformat : 57.83.100 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: libswscale : 4.8.100 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: libswresample: 2.9.100 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: ===== options ===== 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : mediacodec = 0 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : opensles = 0 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : overlay-format = 842225234 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : packet-buffering = 0 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : start-on-prepared = 0 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : reconnect = 5 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : mediacodec-hevc = 1 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : fast = 1 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : mediacodec-auto-rotate = 0 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : mediacodec-handle-resolution-change = 0 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : min-frames = 2 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : max_cached_duration = 3 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : infbuf = 1 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: player-opts : framedrop = 5 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: format-opts : ijkapplication = -789694736 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: format-opts : ijkiomanager = -514908928 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: format-opts : probesize = 33792 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: format-opts : analyzemaxduration = 100 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: format-opts : flush_packets = 1 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: format-opts : analyzeduration = 1 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: format-opts : rtsp_transport = tcp 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: format-opts : max-buffer-size = 0 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: format-opts : fflags = nobuffer 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: format-opts : http-detect-range-support = 0 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: codec-opts : skip_loop_filter = 48 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: codec-opts : skip_frame = 0 2020-01-19 10:00:33.983 26828-26828 I/IJKMEDIA: =================== 2020-01-19 10:00:33.984 26828-26968 D/IJKMEDIA: FFP_MSG_FLUSH: 2020-01-19 10:00:33.984 26828-26828 D/IJKMEDIA: ijkmp_prepare_async()=0 2020-01-19 10:00:33.984 26828-26969 I/IJKMEDIA: SDL_RunThread: [26969] ff_vout 2020-01-19 10:00:33.984 26828-26970 I/IJKMEDIA: SDL_RunThread: [26970] ff_read 2020-01-19 10:00:33.984 26828-26970 W/IJKMEDIA: remove 'timeout' option for rtmp. 2020-01-19 10:00:33.984 26828-26970 D/IJKMEDIA: Opening 'rtmp://avatar-live.xfyousheng.com:20008/live/be9349f3-11eb-4a08-b3fc-50669eac6068' for reading 2020-01-19 10:00:33.984 26828-26970 D/IJKMEDIA: No default whitelist set 2020-01-19 10:00:33.984 26828-26970 D/IJKMEDIA: No default whitelist set 2020-01-19 10:00:33.987 26828-26970 I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 131073 2020-01-19 10:00:34.010 26828-26970 I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 131074 2020-01-19 10:00:34.010 26828-26970 I/IJKMEDIA: Add dns cache hostname = avatar-live.xfyousheng.com, ip = 42.62.116.135 2020-01-19 10:00:34.010 26828-26970 D/IJKMEDIA: Handshaking... 2020-01-19 10:00:34.047 26828-26970 D/IJKMEDIA: Type answer 3 2020-01-19 10:00:34.047 26828-26970 D/IJKMEDIA: Server version 1.0.5.4 2020-01-19 10:00:34.047 26828-26970 D/IJKMEDIA: Proto = rtmp, path = /live/be9349f3-11eb-4a08-b3fc-50669eac6068, app = live, fname = be9349f3-11eb-4a08-b3fc-50669eac6068 2020-01-19 10:00:34.099 26828-26970 D/IJKMEDIA: Window acknowledgement size = 2500000 2020-01-19 10:00:34.139 26828-26970 D/IJKMEDIA: Max sent, unacked = 2500000 2020-01-19 10:00:34.139 26828-26970 D/IJKMEDIA: New incoming chunk size = 60000 2020-01-19 10:00:34.139 26828-26970 D/IJKMEDIA: Creating stream... 2020-01-19 10:00:34.227 26828-26970 D/IJKMEDIA: Sending play command for 'be9349f3-11eb-4a08-b3fc-50669eac6068' 2020-01-19 10:00:35.476 26828-26970 D/IJKMEDIA: Format flv probed with size=2048 and score=100 2020-01-19 10:00:35.477 26828-26970 E/IJKMEDIA: Option ijkiomanager not found. 2020-01-19 10:00:35.477 26828-26968 D/IJKMEDIA: FFP_MSG_OPEN_INPUT: 2020-01-19 10:00:35.477 26828-26970 D/IJKMEDIA: Before avformat_find_stream_info() pos: 13 bytes read:32768 seeks:0 nb_streams:0 2020-01-19 10:00:35.477 26828-26970 D/IJKMEDIA: Unknown type |RtmpSampleAccess 2020-01-19 10:00:35.477 26828-26970 D/IJKMEDIA: Unknown type onStatus 2020-01-19 10:00:35.479 26828-26970 D/IJKMEDIA: Probe buffer size limit of 33792 bytes reached 2020-01-19 10:00:35.479 26828-26970 W/IJKMEDIA: Stream #0: not enough frames to estimate rate; consider increasing probesize 2020-01-19 10:00:35.479 26828-26970 D/IJKMEDIA: After avformat_find_stream_info() pos: 34641 bytes read:34641 seeks:0 frames:2 2020-01-19 10:00:35.479 26828-26970 I/IJKMEDIA: max_frame_duration: 10.000 2020-01-19 10:00:35.479 26828-26968 D/IJKMEDIA: FFP_MSG_FIND_STREAM_INFO: 2020-01-19 10:00:35.479 26828-26970 I/IJKMEDIA: Input #0, flv, from 'rtmp://avatar-live.xfyousheng.com:20008/live/be9349f3-11eb-4a08-b3fc-50669eac6068': 2020-01-19 10:00:35.479 26828-26970 I/IJKMEDIA: Metadata: 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: encoder : 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: Lavf58.29.100 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: server : 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: SRS/2.0.255(ZhouGuowen) 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: srs_primary : 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: SRS/2.0release 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: srs_authors : 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: winlin,wenjie.zhao 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: server_version : 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: 2.0.255 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: Duration: 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: N/A 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: , start: 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: 0.000000 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: , bitrate: 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: 328 kb/s 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: Stream #0:0 2020-01-19 10:00:35.480 26828-26970 D/IJKMEDIA: , 1, 1/1000 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: : Video: flv1, 1 reference frame, yuv420p, 720x1280, 0/1, 200 kb/s 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: , 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: 1k tbr, 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: 1k tbn 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: Stream #0:1 2020-01-19 10:00:35.480 26828-26970 D/IJKMEDIA: , 1, 1/1000 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: : Audio: adpcm_swf, 22050 Hz, mono, s16, 88 kb/s 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: SDL_Android_AudioTrack: CHANNEL_OUT_MONO 2020-01-19 10:00:35.480 26828-26970 I/IJKMEDIA: SDL_Android_AudioTrack: ENCODING_PCM_16BIT 2020-01-19 10:00:35.491 26828-26970 I/IJKMEDIA: SDL_Android_AudioTrack_new_from_spec: init volume as 1.000000/(0.000000,1.000000) 2020-01-19 10:00:35.491 26828-26970 I/IJKMEDIA: audio_session_id = 1353 2020-01-19 10:00:35.491 26828-26970 I/IJKMEDIA: AudioCodec: avcodec, adpcm_swf 2020-01-19 10:00:35.491 26828-26973 I/IJKMEDIA: SDL_RunThread: [26973] ff_aout_android 2020-01-19 10:00:35.491 26828-26974 I/IJKMEDIA: SDL_RunThread: [26974] ff_audio_dec 2020-01-19 10:00:35.491 26828-26970 D/IJKMEDIA: ffpipenode_create_video_decoder_from_android_mediacodec() 2020-01-19 10:00:35.492 26828-26970 I/IJKMEDIA: API-Level: 28 2020-01-19 10:00:35.492 26828-26970 E/IJKMEDIA: ffpipenode_create_video_decoder_from_android_mediacodec:create: not H264 or H265/HEVC, codec_id:22 2020-01-19 10:00:35.492 26828-26970 I/IJKMEDIA: VideoCodec: avcodec, flv1 2020-01-19 10:00:35.492 26828-26970 W/IJKMEDIA: fps: 1000.000000 (normal) 2020-01-19 10:00:35.492 26828-26968 D/IJKMEDIA: FFP_MSG_COMPONENT_OPEN: 2020-01-19 10:00:35.492 26828-26975 I/IJKMEDIA: SDL_RunThread: [26975] ff_video_dec 2020-01-19 10:00:35.492 26828-26968 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:00:35.492 26828-26968 D/IJKMEDIA: FFP_MSG_SAR_CHANGED: 0, 1 2020-01-19 10:00:35.492 26828-26968 D/IJKMEDIA: ijkmp_get_msg: FFP_MSG_PREPARED 2020-01-19 10:00:35.492 26828-26968 D/IJKMEDIA: FFP_MSG_PREPARED: 2020-01-19 10:00:35.492 26828-26968 D/IJKMEDIA: FFP_MSG_VIDEO_ROTATION_CHANGED: 0 2020-01-19 10:00:35.494 26828-26828 D/IJKMEDIA: IjkMediaPlayer_start 2020-01-19 10:00:35.494 26828-26828 D/IJKMEDIA: ijkmp_start() 2020-01-19 10:00:35.494 26828-26828 D/IJKMEDIA: ijkmp_start()=0 2020-01-19 10:00:35.494 26828-26968 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START 2020-01-19 10:00:35.494 26828-26968 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START: start on fly 2020-01-19 10:00:35.513 26828-26975 E/IJKMEDIA: warning: first frame is no keyframe 2020-01-19 10:00:35.518 26828-26975 D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=720, h=1280, fmt=RV32(0x32335652, dp=0xd0f0f6c0) 2020-01-19 10:00:35.521 26828-26975 D/IJKMEDIA: Video: first frame decoded 2020-01-19 10:00:35.524 26828-26975 D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=720, h=1280, fmt=RV32(0x32335652, dp=0xd0f0f6c0) 2020-01-19 10:00:35.525 26828-26968 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START 2020-01-19 10:00:35.525 26828-26968 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START: start on fly 2020-01-19 10:00:35.525 26828-26969 D/IJKMEDIA: ANativeWindow_setBuffersGeometry: w=1080, h=1842, f=(0x4) => w=720, h=1280, f=RV32(0x32335652) 2020-01-19 10:00:35.526 26828-26973 D/IJKMEDIA: avcodec/Audio: first frame decoded 2020-01-19 10:00:35.526 26828-26968 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:00:35.526 26828-26968 D/IJKMEDIA: FFP_MSG_VIDEO_DECODED_START: 2020-01-19 10:00:35.526 26828-26968 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:00:35.526 26828-26968 D/IJKMEDIA: FFP_MSG_AUDIO_DECODED_START: 2020-01-19 10:00:35.526 26828-26968 D/IJKMEDIA: FFP_MSG_AUDIO_RENDERING_START: 2020-01-19 10:00:35.529 26828-26968 D/IJKMEDIA: FFP_MSG_VIDEO_RENDERING_START: 2020-01-19 10:00:35.530 26828-26975 D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=720, h=1280, fmt=RV32(0x32335652, dp=0xd0f0f6c0) 2020-01-19 10:00:35.530 26828-26968 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:00:35.537 26828-26828 I/tv.danmaku.ijk.media.player.IjkMediaPlayer: Info: MEDIA_INFO_VIDEO_RENDERING_START
1024L * 10情况下无声 ,日志:
2020-01-19 10:04:01.378 27311-27311 D/J4A: J4ALoader: OK: 'tv.danmaku.ijk.media.player.IjkMediaPlayer' loaded 2020-01-19 10:04:01.381 27311-27311 D/IJKMEDIA: ijkmediaplayer version : k0.8.8 2020-01-19 10:04:01.389 27311-27311 D/IJKMEDIA: IjkMediaPlayer_native_profileBegin 2020-01-19 10:04:01.389 27311-27311 D/IJKMEDIA: monstartup: libijkplayer.so 2020-01-19 10:04:02.725 27311-27311 D/IJKMEDIA: IjkMediaPlayer_native_init 2020-01-19 10:04:02.725 27311-27311 D/IJKMEDIA: IjkMediaPlayer_native_setup 2020-01-19 10:04:02.725 27311-27311 I/IJKMEDIA: av_version_info: ff3.4--ijk0.8.7--20180103--001 2020-01-19 10:04:02.725 27311-27311 I/IJKMEDIA: ijk_version_info: k0.8.8 2020-01-19 10:04:02.725 27311-27311 D/IJKMEDIA: ffpipeline_create_from_android() 2020-01-19 10:04:02.725 27311-27311 D/IJKMEDIA: ijkmp_set_inject_opaque(0x26c6) 2020-01-19 10:04:02.726 27311-27311 D/IJKMEDIA: ijkmp_set_inject_opaque()=void 2020-01-19 10:04:02.726 27311-27311 D/IJKMEDIA: ijkmp_set_ijkio_inject_opaque(0x26c6) 2020-01-19 10:04:02.726 27311-27311 D/IJKMEDIA: ijkmp_set_ijkio_inject_opaque()=void 2020-01-19 10:04:02.726 27311-27311 D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback() 2020-01-19 10:04:02.726 27311-27311 D/IJKMEDIA: ffpipeline_set_mediacodec_select_callback 2020-01-19 10:04:02.726 27311-27311 D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback()=void 2020-01-19 10:04:02.726 27311-27311 D/IJKMEDIA: IjkMediaPlayer_native_setLogLevel(3) 2020-01-19 10:04:02.726 27311-27311 D/IJKMEDIA: moncleanup 2020-01-19 10:04:02.726 27311-27311 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:04:02.727 27311-27311 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:04:02.727 27311-27311 D/IJKMEDIA: IjkMediaPlayer_setOption 2020-01-19 10:04:02.727 27311-27311 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:04:02.727 27311-27311 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:04:02.727 27311-27311 D/IJKMEDIA: IjkMediaPlayer_setOption 2020-01-19 10:04:02.727 27311-27311 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:04:02.727 27311-27311 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:04:02.728 27311-27311 D/tv.danmaku.ijk.media.player.IjkMediaPlayer: Couldn't open file on client side, trying server side 2020-01-19 10:04:02.728 27311-27311 D/IJKMEDIA: IjkMediaPlayer_setDataSourceAndHeaders 2020-01-19 10:04:02.728 27311-27311 V/IJKMEDIA: setDataSource: path rtmp://avatar-live.xfyousheng.com:20008/live/d0eb3e4a-6371-4bfc-8c53-2d11abed5980 2020-01-19 10:04:02.728 27311-27311 D/IJKMEDIA: ijkmp_set_data_source(url="rtmp://avatar-live.xfyousheng.com:20008/live/d0eb3e4a-6371-4bfc-8c53-2d11abed5980") 2020-01-19 10:04:02.728 27311-27311 D/IJKMEDIA: ijkmp_set_data_source(url="rtmp://avatar-live.xfyousheng.com:20008/live/d0eb3e4a-6371-4bfc-8c53-2d11abed5980")=0 2020-01-19 10:04:02.729 27311-27311 D/IJKMEDIA: IjkMediaPlayer_setVideoSurface 2020-01-19 10:04:02.729 27311-27311 D/IJKMEDIA: ijkmp_set_android_surface(surface=0xffebaec0) 2020-01-19 10:04:02.729 27311-27311 D/IJKMEDIA: ffpipeline_set_surface() 2020-01-19 10:04:02.729 27311-27311 D/IJKMEDIA: ijkmp_set_android_surface(surface=0xffebaec0)=void 2020-01-19 10:04:02.729 27311-27311 D/IJKMEDIA: IjkMediaPlayer_prepareAsync 2020-01-19 10:04:02.729 27311-27311 D/IJKMEDIA: ijkmp_prepare_async() 2020-01-19 10:04:02.729 27311-27311 W/IJKMEDIA: remove 'timeout' option for rtmp. 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: ===== versions ===== 2020-01-19 10:04:02.729 27311-27427 I/IJKMEDIA: SDL_RunThread: [27427] ff_msg_loop 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: ijkplayer : k0.8.8 2020-01-19 10:04:02.729 27311-27427 D/IJKMEDIA: message_loop 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: FFmpeg : ff3.4--ijk0.8.7--20180103--001 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: libavutil : 55.78.100 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: libavcodec : 57.107.100 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: libavformat : 57.83.100 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: libswscale : 4.8.100 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: libswresample: 2.9.100 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: ===== options ===== 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : mediacodec = 0 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : opensles = 0 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : overlay-format = 842225234 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : packet-buffering = 0 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : start-on-prepared = 0 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : reconnect = 5 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : mediacodec-hevc = 1 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : fast = 1 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : mediacodec-auto-rotate = 0 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : mediacodec-handle-resolution-change = 0 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : min-frames = 2 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : max_cached_duration = 3 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : infbuf = 1 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: player-opts : framedrop = 5 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: format-opts : ijkapplication = -785908336 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: format-opts : ijkiomanager = -784792320 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: format-opts : probesize = 10240 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: format-opts : analyzemaxduration = 100 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: format-opts : flush_packets = 1 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: format-opts : analyzeduration = 1 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: format-opts : rtsp_transport = tcp 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: format-opts : max-buffer-size = 0 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: format-opts : fflags = nobuffer 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: format-opts : http-detect-range-support = 0 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: codec-opts : skip_loop_filter = 48 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: codec-opts : skip_frame = 0 2020-01-19 10:04:02.729 27311-27311 I/IJKMEDIA: =================== 2020-01-19 10:04:02.730 27311-27427 D/IJKMEDIA: FFP_MSG_FLUSH: 2020-01-19 10:04:02.730 27311-27428 I/IJKMEDIA: SDL_RunThread: [27428] ff_vout 2020-01-19 10:04:02.730 27311-27311 D/IJKMEDIA: ijkmp_prepare_async()=0 2020-01-19 10:04:02.731 27311-27429 I/IJKMEDIA: SDL_RunThread: [27429] ff_read 2020-01-19 10:04:02.731 27311-27429 W/IJKMEDIA: remove 'timeout' option for rtmp. 2020-01-19 10:04:02.731 27311-27429 D/IJKMEDIA: Opening 'rtmp://avatar-live.xfyousheng.com:20008/live/d0eb3e4a-6371-4bfc-8c53-2d11abed5980' for reading 2020-01-19 10:04:02.731 27311-27429 D/IJKMEDIA: No default whitelist set 2020-01-19 10:04:02.731 27311-27429 D/IJKMEDIA: No default whitelist set 2020-01-19 10:04:02.770 27311-27429 I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 131073 2020-01-19 10:04:02.796 27311-27429 I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 131074 2020-01-19 10:04:02.796 27311-27429 I/IJKMEDIA: Add dns cache hostname = avatar-live.xfyousheng.com, ip = 42.62.116.135 2020-01-19 10:04:02.796 27311-27429 D/IJKMEDIA: Handshaking... 2020-01-19 10:04:02.839 27311-27429 D/IJKMEDIA: Type answer 3 2020-01-19 10:04:02.839 27311-27429 D/IJKMEDIA: Server version 1.0.5.4 2020-01-19 10:04:02.839 27311-27429 D/IJKMEDIA: Proto = rtmp, path = /live/d0eb3e4a-6371-4bfc-8c53-2d11abed5980, app = live, fname = d0eb3e4a-6371-4bfc-8c53-2d11abed5980 2020-01-19 10:04:02.890 27311-27429 D/IJKMEDIA: Window acknowledgement size = 2500000 2020-01-19 10:04:02.931 27311-27429 D/IJKMEDIA: Max sent, unacked = 2500000 2020-01-19 10:04:02.931 27311-27429 D/IJKMEDIA: New incoming chunk size = 60000 2020-01-19 10:04:02.931 27311-27429 D/IJKMEDIA: Creating stream... 2020-01-19 10:04:03.021 27311-27429 D/IJKMEDIA: Sending play command for 'd0eb3e4a-6371-4bfc-8c53-2d11abed5980' 2020-01-19 10:04:04.168 27311-27429 D/IJKMEDIA: Format flv probed with size=2048 and score=100 2020-01-19 10:04:04.170 27311-27427 D/IJKMEDIA: FFP_MSG_OPEN_INPUT: 2020-01-19 10:04:04.170 27311-27429 E/IJKMEDIA: Option ijkiomanager not found. 2020-01-19 10:04:04.170 27311-27429 D/IJKMEDIA: Before avformat_find_stream_info() pos: 13 bytes read:32768 seeks:0 nb_streams:0 2020-01-19 10:04:04.170 27311-27429 D/IJKMEDIA: Unknown type |RtmpSampleAccess 2020-01-19 10:04:04.170 27311-27429 D/IJKMEDIA: Unknown type onStatus 2020-01-19 10:04:04.171 27311-27429 D/IJKMEDIA: Probe buffer size limit of 10240 bytes reached 2020-01-19 10:04:04.171 27311-27429 W/IJKMEDIA: Stream #0: not enough frames to estimate rate; consider increasing probesize 2020-01-19 10:04:04.171 27311-27429 D/IJKMEDIA: After avformat_find_stream_info() pos: 34110 bytes read:34110 seeks:0 frames:1 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: max_frame_duration: 10.000 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: Input #0, flv, from 'rtmp://avatar-live.xfyousheng.com:20008/live/d0eb3e4a-6371-4bfc-8c53-2d11abed5980': 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: Metadata: 2020-01-19 10:04:04.172 27311-27427 D/IJKMEDIA: FFP_MSG_FIND_STREAM_INFO: 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: encoder : 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: Lavf58.29.100 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: server : 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: SRS/2.0.255(ZhouGuowen) 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: srs_primary : 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: SRS/2.0release 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: srs_authors : 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: winlin,wenjie.zhao 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: server_version : 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: 2.0.255 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: Duration: 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: N/A 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: , start: 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: 0.000000 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: , bitrate: 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: 200 kb/s 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: Stream #0:0 2020-01-19 10:04:04.172 27311-27429 D/IJKMEDIA: , 1, 1/1000 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: : Video: flv1, 1 reference frame, yuv420p, 720x1280, 0/1, 200 kb/s 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: , 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: 1k tbr, 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: 1k tbn 2020-01-19 10:04:04.172 27311-27429 D/IJKMEDIA: ffpipenode_create_video_decoder_from_android_mediacodec() 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: API-Level: 28 2020-01-19 10:04:04.172 27311-27429 E/IJKMEDIA: ffpipenode_create_video_decoder_from_android_mediacodec:create: not H264 or H265/HEVC, codec_id:22 2020-01-19 10:04:04.172 27311-27429 I/IJKMEDIA: VideoCodec: avcodec, flv1 2020-01-19 10:04:04.172 27311-27429 W/IJKMEDIA: fps: 1000.000000 (normal) 2020-01-19 10:04:04.172 27311-27431 I/IJKMEDIA: SDL_RunThread: [27431] ff_video_dec 2020-01-19 10:04:04.172 27311-27427 D/IJKMEDIA: FFP_MSG_COMPONENT_OPEN: 2020-01-19 10:04:04.173 27311-27427 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:04:04.173 27311-27427 D/IJKMEDIA: FFP_MSG_SAR_CHANGED: 0, 1 2020-01-19 10:04:04.173 27311-27427 D/IJKMEDIA: ijkmp_get_msg: FFP_MSG_PREPARED 2020-01-19 10:04:04.173 27311-27427 D/IJKMEDIA: FFP_MSG_PREPARED: 2020-01-19 10:04:04.173 27311-27427 D/IJKMEDIA: FFP_MSG_VIDEO_ROTATION_CHANGED: 0 2020-01-19 10:04:04.175 27311-27311 D/IJKMEDIA: IjkMediaPlayer_start 2020-01-19 10:04:04.175 27311-27311 D/IJKMEDIA: ijkmp_start() 2020-01-19 10:04:04.175 27311-27311 D/IJKMEDIA: ijkmp_start()=0 2020-01-19 10:04:04.175 27311-27427 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START 2020-01-19 10:04:04.175 27311-27427 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START: start on fly 2020-01-19 10:04:04.193 27311-27427 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START 2020-01-19 10:04:04.193 27311-27427 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START: start on fly 2020-01-19 10:04:04.194 27311-27431 E/IJKMEDIA: warning: first frame is no keyframe 2020-01-19 10:04:04.198 27311-27431 D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=720, h=1280, fmt=RV32(0x32335652, dp=0xd11a03c0) 2020-01-19 10:04:04.198 27311-27427 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:04:04.202 27311-27431 D/IJKMEDIA: Video: first frame decoded 2020-01-19 10:04:04.202 27311-27427 D/IJKMEDIA: FFP_MSG_VIDEO_DECODED_START: 2020-01-19 10:04:04.204 27311-27431 D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=720, h=1280, fmt=RV32(0x32335652, dp=0xd11a03c0) 2020-01-19 10:04:04.204 27311-27427 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:04:04.210 27311-27431 D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=720, h=1280, fmt=RV32(0x32335652, dp=0xd11a03c0) 2020-01-19 10:04:04.210 27311-27427 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:04:04.211 27311-27428 D/IJKMEDIA: ANativeWindow_setBuffersGeometry: w=1036, h=1842, f=�(0x4) => w=720, h=1280, f=RV32(0x32335652) 2020-01-19 10:04:04.215 27311-27427 D/IJKMEDIA: FFP_MSG_VIDEO_RENDERING_START: 2020-01-19 10:04:04.217 27311-27311 I/tv.danmaku.ijk.media.player.IjkMediaPlayer: Info: MEDIA_INFO_VIDEO_RENDERING_START
我觉得你总得提供一个可以测试的 url 吧? 或者你把日志贴上了,要不别人怎么帮你看
日志已贴,感谢
看你这个是 rtmp 网络协议,但是封装格式全靠猜,所以需要较大的 probesize。 你试试加上option 参数 iformat。
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "iformat", "flv");
看你这个是 rtmp 网络协议,但是封装格式全靠猜,所以需要较大的 probesize。 你试试加上option 参数 iformat。
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "iformat", "flv");
你好,试了,还是无声
@zhaoweizhen 加上之后的日志看一下呢
@befovy
2020-01-19 10:54:07.094 955-955 D/J4A: J4ALoader: OK: 'tv.danmaku.ijk.media.player.IjkMediaPlayer' loaded 2020-01-19 10:54:07.096 955-955 D/IJKMEDIA: ijkmediaplayer version : k0.8.8 2020-01-19 10:54:07.103 955-955 D/IJKMEDIA: IjkMediaPlayer_native_profileBegin 2020-01-19 10:54:07.103 955-955 D/IJKMEDIA: monstartup: libijkplayer.so 2020-01-19 10:54:08.104 955-955 D/IJKMEDIA: IjkMediaPlayer_native_init 2020-01-19 10:54:08.104 955-955 D/IJKMEDIA: IjkMediaPlayer_native_setup 2020-01-19 10:54:08.104 955-955 I/IJKMEDIA: av_version_info: ff3.4--ijk0.8.7--20180103--001 2020-01-19 10:54:08.104 955-955 I/IJKMEDIA: ijk_version_info: k0.8.8 2020-01-19 10:54:08.104 955-955 D/IJKMEDIA: ffpipeline_create_from_android() 2020-01-19 10:54:08.104 955-955 D/IJKMEDIA: ijkmp_set_inject_opaque(0x26b6) 2020-01-19 10:54:08.104 955-955 D/IJKMEDIA: ijkmp_set_inject_opaque()=void 2020-01-19 10:54:08.104 955-955 D/IJKMEDIA: ijkmp_set_ijkio_inject_opaque(0x26b6) 2020-01-19 10:54:08.105 955-955 D/IJKMEDIA: ijkmp_set_ijkio_inject_opaque()=void 2020-01-19 10:54:08.105 955-955 D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback() 2020-01-19 10:54:08.105 955-955 D/IJKMEDIA: ffpipeline_set_mediacodec_select_callback 2020-01-19 10:54:08.105 955-955 D/IJKMEDIA: ijkmp_android_set_mediacodec_select_callback()=void 2020-01-19 10:54:08.105 955-955 D/IJKMEDIA: IjkMediaPlayer_native_setLogLevel(3) 2020-01-19 10:54:08.105 955-955 D/IJKMEDIA: moncleanup 2020-01-19 10:54:08.105 955-955 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:54:08.106 955-955 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:54:08.106 955-955 D/IJKMEDIA: IjkMediaPlayer_setOption 2020-01-19 10:54:08.106 955-955 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:54:08.106 955-955 D/IJKMEDIA: IjkMediaPlayer_setOptionLong 2020-01-19 10:54:08.106 955-955 D/IJKMEDIA: IjkMediaPlayer_setOption 2020-01-19 10:54:08.107 955-955 D/tv.danmaku.ijk.media.player.IjkMediaPlayer: Couldn't open file on client side, trying server side 2020-01-19 10:54:08.107 955-955 D/IJKMEDIA: IjkMediaPlayer_setDataSourceAndHeaders 2020-01-19 10:54:08.107 955-955 V/IJKMEDIA: setDataSource: path rtmp://avatar-live.xfyousheng.com:20008/live/898ec56f-68cf-47ee-8727-86ca790e2985 2020-01-19 10:54:08.107 955-955 D/IJKMEDIA: ijkmp_set_data_source(url="rtmp://avatar-live.xfyousheng.com:20008/live/898ec56f-68cf-47ee-8727-86ca790e2985") 2020-01-19 10:54:08.107 955-955 D/IJKMEDIA: ijkmp_set_data_source(url="rtmp://avatar-live.xfyousheng.com:20008/live/898ec56f-68cf-47ee-8727-86ca790e2985")=0 2020-01-19 10:54:08.107 955-955 D/IJKMEDIA: IjkMediaPlayer_setVideoSurface 2020-01-19 10:54:08.107 955-955 D/IJKMEDIA: ijkmp_set_android_surface(surface=0xffebaec0) 2020-01-19 10:54:08.108 955-955 D/IJKMEDIA: ffpipeline_set_surface() 2020-01-19 10:54:08.108 955-955 D/IJKMEDIA: ijkmp_set_android_surface(surface=0xffebaec0)=void 2020-01-19 10:54:08.108 955-955 D/IJKMEDIA: IjkMediaPlayer_prepareAsync 2020-01-19 10:54:08.108 955-955 D/IJKMEDIA: ijkmp_prepare_async() 2020-01-19 10:54:08.108 955-955 W/IJKMEDIA: remove 'timeout' option for rtmp. 2020-01-19 10:54:08.108 955-1069 I/IJKMEDIA: SDL_RunThread: [1069] ff_msg_loop 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: ===== versions ===== 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: ijkplayer : k0.8.8 2020-01-19 10:54:08.108 955-1069 D/IJKMEDIA: message_loop 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: FFmpeg : ff3.4--ijk0.8.7--20180103--001 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: libavutil : 55.78.100 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: libavcodec : 57.107.100 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: libavformat : 57.83.100 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: libswscale : 4.8.100 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: libswresample: 2.9.100 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: ===== options ===== 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : mediacodec = 0 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : opensles = 0 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : overlay-format = 842225234 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : packet-buffering = 0 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : start-on-prepared = 0 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : reconnect = 10 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : mediacodec-hevc = 1 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : fast = 1 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : mediacodec-auto-rotate = 0 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : mediacodec-handle-resolution-change = 0 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : min-frames = 2 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : max_cached_duration = 3 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : infbuf = 1 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : framedrop = 5 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: player-opts : iformat = flv 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: format-opts : ijkapplication = -785432224 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: format-opts : ijkiomanager = -514910208 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: format-opts : probesize = 10240 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: format-opts : analyzemaxduration = 100 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: format-opts : flush_packets = 1 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: format-opts : analyzeduration = 1 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: format-opts : rtsp_transport = tcp 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: format-opts : max-buffer-size = 0 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: format-opts : http-detect-range-support = 0 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: codec-opts : skip_loop_filter = 48 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: codec-opts : skip_frame = 0 2020-01-19 10:54:08.108 955-955 I/IJKMEDIA: =================== 2020-01-19 10:54:08.109 955-1069 D/IJKMEDIA: FFP_MSG_FLUSH: 2020-01-19 10:54:08.109 955-955 D/IJKMEDIA: ijkmp_prepare_async()=0 2020-01-19 10:54:08.109 955-1070 I/IJKMEDIA: SDL_RunThread: [1070] ff_vout 2020-01-19 10:54:08.109 955-1071 I/IJKMEDIA: SDL_RunThread: [1071] ff_read 2020-01-19 10:54:08.109 955-1071 W/IJKMEDIA: remove 'timeout' option for rtmp. 2020-01-19 10:54:08.109 955-1071 D/IJKMEDIA: Opening 'rtmp://avatar-live.xfyousheng.com:20008/live/898ec56f-68cf-47ee-8727-86ca790e2985' for reading 2020-01-19 10:54:08.109 955-1071 D/IJKMEDIA: No default whitelist set 2020-01-19 10:54:08.109 955-1071 D/IJKMEDIA: No default whitelist set 2020-01-19 10:54:08.130 955-1071 I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 131073 2020-01-19 10:54:08.156 955-1071 I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 131074 2020-01-19 10:54:08.156 955-1071 I/IJKMEDIA: Add dns cache hostname = avatar-live.xfyousheng.com, ip = 42.62.116.135 2020-01-19 10:54:08.156 955-1071 D/IJKMEDIA: Handshaking... 2020-01-19 10:54:08.209 955-1071 D/IJKMEDIA: Type answer 3 2020-01-19 10:54:08.210 955-1071 D/IJKMEDIA: Server version 1.0.5.4 2020-01-19 10:54:08.210 955-1071 D/IJKMEDIA: Proto = rtmp, path = /live/898ec56f-68cf-47ee-8727-86ca790e2985, app = live, fname = 898ec56f-68cf-47ee-8727-86ca790e2985 2020-01-19 10:54:08.261 955-1071 D/IJKMEDIA: Window acknowledgement size = 2500000 2020-01-19 10:54:08.298 955-1071 D/IJKMEDIA: Max sent, unacked = 2500000 2020-01-19 10:54:08.298 955-1071 D/IJKMEDIA: New incoming chunk size = 60000 2020-01-19 10:54:08.299 955-1071 D/IJKMEDIA: Creating stream... 2020-01-19 10:54:08.387 955-1071 D/IJKMEDIA: Sending play command for '898ec56f-68cf-47ee-8727-86ca790e2985' 2020-01-19 10:54:09.499 955-1071 E/IJKMEDIA: Option ijkiomanager not found. 2020-01-19 10:54:09.499 955-1071 D/IJKMEDIA: Before avformat_find_stream_info() pos: 13 bytes read:32768 seeks:0 nb_streams:0 2020-01-19 10:54:09.499 955-1071 D/IJKMEDIA: Unknown type |RtmpSampleAccess 2020-01-19 10:54:09.499 955-1071 D/IJKMEDIA: Unknown type onStatus 2020-01-19 10:54:09.499 955-1069 D/IJKMEDIA: FFP_MSG_OPEN_INPUT: 2020-01-19 10:54:09.500 955-1071 D/IJKMEDIA: Probe buffer size limit of 10240 bytes reached 2020-01-19 10:54:09.500 955-1071 W/IJKMEDIA: Stream #0: not enough frames to estimate rate; consider increasing probesize 2020-01-19 10:54:09.500 955-1071 D/IJKMEDIA: After avformat_find_stream_info() pos: 34110 bytes read:34110 seeks:0 frames:1 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: max_frame_duration: 10.000 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: Input #0, flv, from 'rtmp://avatar-live.xfyousheng.com:20008/live/898ec56f-68cf-47ee-8727-86ca790e2985': 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: Metadata: 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: encoder : 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: Lavf58.29.100 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: server : 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: SRS/2.0.255(ZhouGuowen) 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: srs_primary : 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: SRS/2.0release 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: srs_authors : 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: winlin,wenjie.zhao 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: server_version : 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: 2.0.255 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: Duration: 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: N/A 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: , start: 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: 0.000000 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: , bitrate: 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: 200 kb/s 2020-01-19 10:54:09.501 955-1069 D/IJKMEDIA: FFP_MSG_FIND_STREAM_INFO: 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: Stream #0:0 2020-01-19 10:54:09.501 955-1071 D/IJKMEDIA: , 1, 1/1000 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: : Video: flv1, 1 reference frame, yuv420p, 720x1280, 0/1, 200 kb/s 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: , 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: 1k tbr, 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: 1k tbn 2020-01-19 10:54:09.501 955-1071 D/IJKMEDIA: ffpipenode_create_video_decoder_from_android_mediacodec() 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: API-Level: 28 2020-01-19 10:54:09.501 955-1071 E/IJKMEDIA: ffpipenode_create_video_decoder_from_android_mediacodec:create: not H264 or H265/HEVC, codec_id:22 2020-01-19 10:54:09.501 955-1071 I/IJKMEDIA: VideoCodec: avcodec, flv1 2020-01-19 10:54:09.501 955-1071 W/IJKMEDIA: fps: 1000.000000 (normal) 2020-01-19 10:54:09.501 955-1077 I/IJKMEDIA: SDL_RunThread: [1077] ff_video_dec 2020-01-19 10:54:09.501 955-1069 D/IJKMEDIA: FFP_MSG_COMPONENT_OPEN: 2020-01-19 10:54:09.502 955-1069 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:54:09.502 955-1069 D/IJKMEDIA: FFP_MSG_SAR_CHANGED: 0, 1 2020-01-19 10:54:09.502 955-1069 D/IJKMEDIA: ijkmp_get_msg: FFP_MSG_PREPARED 2020-01-19 10:54:09.502 955-1069 D/IJKMEDIA: FFP_MSG_PREPARED: 2020-01-19 10:54:09.502 955-1069 D/IJKMEDIA: FFP_MSG_VIDEO_ROTATION_CHANGED: 0 2020-01-19 10:54:09.503 955-955 D/IJKMEDIA: IjkMediaPlayer_start 2020-01-19 10:54:09.503 955-955 D/IJKMEDIA: ijkmp_start() 2020-01-19 10:54:09.503 955-955 D/IJKMEDIA: ijkmp_start()=0 2020-01-19 10:54:09.503 955-1069 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START 2020-01-19 10:54:09.503 955-1069 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START: start on fly 2020-01-19 10:54:09.522 955-1069 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START 2020-01-19 10:54:09.522 955-1069 D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_START: start on fly 2020-01-19 10:54:09.527 955-1069 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:54:09.527 955-1077 D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=720, h=1280, fmt=RV32(0x32335652, dp=0xd11c9f40) 2020-01-19 10:54:09.531 955-1077 D/IJKMEDIA: Video: first frame decoded 2020-01-19 10:54:09.531 955-1069 D/IJKMEDIA: FFP_MSG_VIDEO_DECODED_START: 2020-01-19 10:54:09.534 955-1077 D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=720, h=1280, fmt=RV32(0x32335652, dp=0xd11c9f40) 2020-01-19 10:54:09.535 955-1069 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:54:09.540 955-1077 D/IJKMEDIA: SDL_VoutFFmpeg_CreateOverlay(w=720, h=1280, fmt=RV32(0x32335652, dp=0xd11c9f40) 2020-01-19 10:54:09.540 955-1069 D/IJKMEDIA: FFP_MSG_VIDEO_SIZE_CHANGED: 720, 1280 2020-01-19 10:54:09.541 955-1070 D/IJKMEDIA: ANativeWindow_setBuffersGeometry: w=1036, h=1842, f=(0x4) => w=720, h=1280, f=RV32(0x32335652) 2020-01-19 10:54:09.545 955-1069 D/IJKMEDIA: FFP_MSG_VIDEO_RENDERING_START: 2020-01-19 10:54:09.551 955-955 I/tv.danmaku.ijk.media.player.IjkMediaPlayer: Info: MEDIA_INFO_VIDEO_RENDERING_START
还是提示这个问题,我不知道其他办法了。看看有没有其他人会来回答你的问题。
2020-01-19 10:54:09.500 955-1071 D/IJKMEDIA: Probe buffer size limit of 10240 bytes reached
2020-01-19 10:54:09.500 955-1071 W/IJKMEDIA: Stream #0: not enough frames to estimate rate; consider increasing probesize
因为需要探测视频和音频的格式, 你没声音是在probesize的大小内没获取到音频包, 你可以做的是:
- 增大probesize和analyzeduration
- 修改ffmpeg源码, 在达到probesize大小但还没获取到视频或音频格式的时候自动增大probesize再继续探测
@befovy @ryanlzc 感谢你们,烦请问一下,对于直播延迟有没有较好的方案
rtmp累计延迟的话, 倍速播放或者丢包
rtmp累计延迟的话, 倍速播放或者丢包
请问大佬知道怎么添加均衡器,设置音效吗?
@befovy @ryanlzc 感谢你们,烦请问一下,对于直播延迟有没有较好的方案
这个问题怎么解决,我这边不设置probesize是有声音的,设置3M也没有声音
@wuhongsheng 这个问题解决了吗 重连很多次 才会有声音 没声音的时候 只有 FFP_MSG_VIDEO_RENDERING_START 不设置确实FFP_MSG_AUDIO_DECODED_START和FFP_MSG_VIDEO_RENDERING_START 声音和视频都会解码
@wuhongsheng 这个问题解决了吗 重连很多次 才会有声音 没声音的时候 只有 FFP_MSG_VIDEO_RENDERING_START 不设置确实FFP_MSG_AUDIO_DECODED_START和FFP_MSG_VIDEO_RENDERING_START 声音和视频都会解码
analyzeduration 设成3000 probesize 使用默认值声音画面延时效果都比较好
analyzeduration 设成3000 probesize 使用默认值声音画面延时效果都比较好