bilibili / ijkplayer

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

AMEDIACODEC__INFO_OUTPUT_FORMAT_CHANGED没执行,现象是有声音没图像。 #3564

Open waynehan-lab opened 7 years ago

waynehan-lab commented 7 years ago

06-01 15:46:37.637: D/IJKMEDIA(9589): IjkMediaPlayer_native_init 06-01 15:46:37.638: D/IJKMEDIA(9589): IjkMediaPlayer_native_setup 06-01 15:46:37.638: I/IJKMEDIA(9589): av_version_info: ff3.3--ijk0.8.0--20170518--001 06-01 15:46:37.638: I/IJKMEDIA(9589): ijk_version_info: be6cbb9 06-01 15:46:37.638: D/IJKMEDIA(9589): ffpipeline_create_from_android() 06-01 15:46:37.638: D/IJKMEDIA(9589): ijkmp_set_inject_opaque(0x20075e) 06-01 15:46:37.638: D/IJKMEDIA(9589): ijkmp_set_inject_opaque()=void 06-01 15:46:37.638: D/IJKMEDIA(9589): ijkmp_set_ijkio_inject_opaque(0x20075e) 06-01 15:46:37.638: D/IJKMEDIA(9589): ijkmp_set_ijkio_inject_opaque()=void 06-01 15:46:37.638: D/IJKMEDIA(9589): ijkmp_android_set_mediacodec_select_callback() 06-01 15:46:37.638: D/IJKMEDIA(9589): ffpipeline_set_mediacodec_select_callback 06-01 15:46:37.638: D/IJKMEDIA(9589): ijkmp_android_set_mediacodec_select_callback()=void 06-01 15:46:37.638: D/IJKMEDIA(9589): IjkMediaPlayer_native_setLogLevel(4) 06-01 15:46:37.638: D/IJKMEDIA(9589): moncleanup 06-01 15:46:37.639: D/IJKMEDIA(9589): IjkMediaPlayer_setOptionLong 06-01 15:46:37.639: D/IJKMEDIA(9589): IjkMediaPlayer_setOptionLong 06-01 15:46:37.640: D/IJKMEDIA(9589): IjkMediaPlayer_setOptionLong 06-01 15:46:37.640: D/IJKMEDIA(9589): IjkMediaPlayer_setOptionLong 06-01 15:46:37.640: D/IJKMEDIA(9589): IjkMediaPlayer_setOptionLong 06-01 15:46:37.640: D/IJKMEDIA(9589): IjkMediaPlayer_setOptionLong 06-01 15:46:37.640: D/IJKMEDIA(9589): IjkMediaPlayer_setOptionLong 06-01 15:46:37.640: D/IJKMEDIA(9589): IjkMediaPlayer_setOptionLong 06-01 15:46:37.641: D/IJKMEDIA(9589): IjkMediaPlayer_setDataSourceFd 06-01 15:46:37.641: V/IJKMEDIA(9589): setDataSourceFd: dup(121)=124 06-01 15:46:37.641: D/IJKMEDIA(9589): ijkmp_set_data_source(url="pipe:124") 06-01 15:46:37.641: D/IJKMEDIA(9589): ijkmp_set_data_source(url="pipe:124")=0 06-01 15:46:37.643: D/IJKMEDIA(9589): IjkMediaPlayer_setVideoSurface 06-01 15:46:37.643: D/IJKMEDIA(9589): ijkmp_set_android_surface(surface=0xe10b6c20) 06-01 15:46:37.643: D/IJKMEDIA(9589): ffpipeline_set_surface() 06-01 15:46:37.643: D/IJKMEDIA(9589): ijkmp_set_android_surface(surface=0xe10b6c20)=void 06-01 15:46:37.643: D/IJKMEDIA(9589): IjkMediaPlayer_prepareAsync 06-01 15:46:37.643: D/IJKMEDIA(9589): ijkmp_prepare_async() 06-01 15:46:37.824: I/IJKMEDIA(9589): ===== versions ===== 06-01 15:46:37.824: I/IJKMEDIA(9589): ijkplayer : be6cbb9 06-01 15:46:37.824: I/IJKMEDIA(9589): FFmpeg : ff3.3--ijk0.8.0--20170518--001 06-01 15:46:37.824: I/IJKMEDIA(9589): libavutil : 55.58.100 06-01 15:46:37.824: I/IJKMEDIA(9589): libavcodec : 57.89.100 06-01 15:46:37.824: I/IJKMEDIA(9589): SDL_RunThread: [9701] ff_msg_loop 06-01 15:46:37.824: I/IJKMEDIA(9589): libavformat : 57.71.100 06-01 15:46:37.824: D/IJKMEDIA(9589): message_loop 06-01 15:46:37.825: I/IJKMEDIA(9589): libswscale : 4.6.100 06-01 15:46:37.825: I/IJKMEDIA(9589): libswresample: 2.7.100 06-01 15:46:37.825: I/IJKMEDIA(9589): ===== options ===== 06-01 15:46:37.825: I/IJKMEDIA(9589): player-opts : mediacodec-auto-select = 1 06-01 15:46:37.825: I/IJKMEDIA(9589): player-opts : mediacodec-all-videos = 1 06-01 15:46:37.825: I/IJKMEDIA(9589): player-opts : mediacodec-auto-rotate = 1 06-01 15:46:37.825: I/IJKMEDIA(9589): player-opts : mediacodec-handle-resolution-change = 1 06-01 15:46:37.825: I/IJKMEDIA(9589): player-opts : opensles = 1 06-01 15:46:37.825: I/IJKMEDIA(9589): player-opts : framedrop = 1 06-01 15:46:37.825: I/IJKMEDIA(9589): player-opts : start-on-prepared = 0 06-01 15:46:37.825: I/IJKMEDIA(9589): format-opts : ijkapplication = -588564752 06-01 15:46:37.825: I/IJKMEDIA(9589): format-opts : ijkiomanager = -588577352 06-01 15:46:37.825: I/IJKMEDIA(9589): codec-opts : skip_loop_filter = 48 06-01 15:46:37.825: I/IJKMEDIA(9589): =================== 06-01 15:46:37.825: I/IJKMEDIA(9589): aout_set_volume(1.000000, 1.000000) 06-01 15:46:37.826: D/IJKMEDIA(9589): FFP_MSG_FLUSH: 06-01 15:46:37.828: I/IJKMEDIA(9589): SDL_RunThread: [9702] ff_vout 06-01 15:46:37.828: D/IJKMEDIA(9589): ijkmp_prepare_async()=0 06-01 15:46:37.829: I/IJKMEDIA(9589): SDL_RunThread: [9703] ff_read 06-01 15:46:37.830: D/IJKMEDIA(9589): IjkMediaPlayer_setOptionLong 06-01 15:46:37.830: D/IJKMEDIA(9589): IjkMediaPlayer_setLoopCount 06-01 15:46:37.852: E/IJKMEDIA(9589): Option ijkapplication not found. 06-01 15:46:38.051: I/IJKMEDIA(9589): max_frame_duration: 10.000 06-01 15:46:38.051: I/IJKMEDIA(9589): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:124': 06-01 15:46:38.051: I/IJKMEDIA(9589): Metadata: 06-01 15:46:38.051: I/IJKMEDIA(9589): major_brand : 06-01 15:46:38.051: I/IJKMEDIA(9589): isom 06-01 15:46:38.051: I/IJKMEDIA(9589): minor_version : 06-01 15:46:38.051: I/IJKMEDIA(9589): 1 06-01 15:46:38.051: I/IJKMEDIA(9589): compatible_brands: 06-01 15:46:38.051: I/IJKMEDIA(9589): isom 06-01 15:46:38.051: I/IJKMEDIA(9589): creation_time : 06-01 15:46:38.051: I/IJKMEDIA(9589): 2017-06-22T01:38:17.000000Z 06-01 15:46:38.051: I/IJKMEDIA(9589): Duration: 06-01 15:46:38.051: I/IJKMEDIA(9589): 00:00:52.15 06-01 15:46:38.051: I/IJKMEDIA(9589): , start: 06-01 15:46:38.051: I/IJKMEDIA(9589): 0.000000 06-01 15:46:38.051: I/IJKMEDIA(9589): , bitrate: 06-01 15:46:38.051: I/IJKMEDIA(9589): 9839 kb/s 06-01 15:46:38.052: I/IJKMEDIA(9589): Stream #0:0 06-01 15:46:38.052: I/IJKMEDIA(9589): (und) 06-01 15:46:38.052: I/IJKMEDIA(9589): : Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2048 [SAR 1:1 DAR 15:8], 9722 kb/s 06-01 15:46:38.052: I/IJKMEDIA(9589): , 06-01 15:46:38.052: I/IJKMEDIA(9589): 29.97 fps, 06-01 15:46:38.052: I/IJKMEDIA(9589): 29.97 tbr, 06-01 15:46:38.052: I/IJKMEDIA(9589): 90k tbn, 06-01 15:46:38.052: I/IJKMEDIA(9589): 59.94 tbc 06-01 15:46:38.052: I/IJKMEDIA(9589): (default) 06-01 15:46:38.052: I/IJKMEDIA(9589): Metadata: 06-01 15:46:38.052: I/IJKMEDIA(9589): creation_time : 06-01 15:46:38.052: I/IJKMEDIA(9589): 2016-09-13T10:41:12.000000Z 06-01 15:46:38.052: I/IJKMEDIA(9589): handler_name : 06-01 15:46:38.052: I/IJKMEDIA(9589): VideoHandler 06-01 15:46:38.052: I/IJKMEDIA(9589): Stream #0:1 06-01 15:46:38.052: I/IJKMEDIA(9589): (und) 06-01 15:46:38.052: I/IJKMEDIA(9589): : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s 06-01 15:46:38.052: I/IJKMEDIA(9589): (default) 06-01 15:46:38.052: I/IJKMEDIA(9589): Metadata: 06-01 15:46:38.052: I/IJKMEDIA(9589): creation_time : 06-01 15:46:38.052: I/IJKMEDIA(9589): 2016-09-13T10:40:54.000000Z 06-01 15:46:38.052: I/IJKMEDIA(9589): handler_name : 06-01 15:46:38.052: I/IJKMEDIA(9589): SoundHandler 06-01 15:46:38.057: I/IJKMEDIA(9589): OpenSL-ES: native sample rate 48000 Hz 06-01 15:46:38.057: I/IJKMEDIA(9589): API-Level: 23 06-01 15:46:38.091: I/IJKMEDIA(9589): OpenSL-ES: bytes_per_frame = 4 bytes 06-01 15:46:38.091: I/IJKMEDIA(9589): OpenSL-ES: milli_per_buffer = 10 ms 06-01 15:46:38.091: I/IJKMEDIA(9589): OpenSL-ES: frame_per_buffer = 441 frames 06-01 15:46:38.091: I/IJKMEDIA(9589): OpenSL-ES: bytes_per_buffer = 1764 bytes 06-01 15:46:38.091: I/IJKMEDIA(9589): OpenSL-ES: buffer_capacity = 449820 bytes 06-01 15:46:38.094: I/IJKMEDIA(9589): AudioCodec: avcodec, aac 06-01 15:46:38.135: D/IJKMEDIA(9589): ffpipenode_create_video_decoder_from_android_mediacodec() 06-01 15:46:38.135: I/IJKMEDIA(9589): ffpipenode_create_video_decoder_from_android_mediacodec: MediaCodec: H264_HIGH: enabled 06-01 15:46:38.135: I/IJKMEDIA(9589): AMediaFormat: video/avc, 3840x2048 06-01 15:46:38.135: D/IJKMEDIA(9589): SDL_AMediaFormatJava_createVideoFormat 06-01 15:46:38.136: E/IJKMEDIA(9589): csd-0[40]: 00000001 06-01 15:46:38.136: E/IJKMEDIA(9589): csd-0[40]: 67640033 06-01 15:46:38.136: E/IJKMEDIA(9589): csd-0[40]: acd300f0 06-01 15:46:38.136: E/IJKMEDIA(9589): csd-0[40]: 0101b016 06-01 15:46:38.136: E/IJKMEDIA(9589): csd-0[40]: a0202028 06-01 15:46:38.136: E/IJKMEDIA(9589): csd-0[40]: 00001f48 06-01 15:46:38.136: E/IJKMEDIA(9589): csd-0[40]: 00075300 06-01 15:46:38.136: E/IJKMEDIA(9589): csd-0[40]: 78c189c0 06-01 15:46:38.136: E/IJKMEDIA(9589): csd-0[40]: 00000001 06-01 15:46:38.136: E/IJKMEDIA(9589): csd-0[40]: 68eebcb0 06-01 15:46:38.136: I/IJKMEDIA(9589): amc: rotate notify: 0 06-01 15:46:38.136: D/IJKMEDIA(9589): ffpipeline_select_mediacodec_l 06-01 15:46:38.136: D/IJKMEDIA(9589): FFP_MSG_VIDEO_ROTATION_CHANGED: 0 06-01 15:46:38.137: I/IJKMEDIA(9589): SDL_RunThread: [9706] ff_audio_dec 06-01 15:46:38.138: I/IJKMEDIA(9589): SDL_RunThread: [9705] ff_aout_opensles 06-01 15:46:38.142: I/IJKMEDIA(9589): slVolumeItf->SetVolumeLevel((1.000000, 1.000000) -> 0) 06-01 15:46:38.329: D/IJKMEDIA(9589): SDL_AMediaCodecJava_createByCodecName 06-01 15:46:38.387: D/IJKMEDIA(9589): SDL_AMediaCodecJava_init 06-01 15:46:38.387: D/IJKMEDIA(9589): SDL_AMediaCodec_increaseReference(): ref=1 06-01 15:46:38.387: D/IJKMEDIA(9589): SDL_AMediaCodecJava_configure_surface 06-01 15:46:38.387: E/IJKMEDIA(9589): configure acodec:0x20079e format:0x10078a: surface:0x200782 06-01 15:46:38.432: D/IJKMEDIA(9589): SDL_AMediaCodecJava_start 06-01 15:46:38.476: I/IJKMEDIA(9589): reconfigure_codec_l:new acodec: 0xdcea18f0 06-01 15:46:38.477: D/IJKMEDIA(9589): SDL_AMediaCodec_increaseReference(): ref=2 06-01 15:46:38.477: I/IJKMEDIA(9589): VideoCodec: MediaCodec, OMX.qcom.video.decoder.avc 06-01 15:46:38.477: W/IJKMEDIA(9589): fps: 29.970030 (normal) 06-01 15:46:38.477: W/IJKMEDIA(9589): fps: 29.970030 (normal) 06-01 15:46:38.477: D/IJKMEDIA(9589): FFP_MSG_VIDEO_SIZE_CHANGED: 3840, 2048 06-01 15:46:38.477: D/IJKMEDIA(9589): FFP_MSG_SAR_CHANGED: 1, 1 06-01 15:46:38.477: D/IJKMEDIA(9589): ijkmp_get_msg: FFP_MSG_PREPARED 06-01 15:46:38.477: D/IJKMEDIA(9589): FFP_MSG_PREPARED: 06-01 15:46:38.478: I/IJKMEDIA(9589): SDL_RunThread: [9717] ff_video_dec 06-01 15:46:38.480: I/IJKMEDIA(9589): SDL_RunThread: [9718] amediacodec_input_thread 06-01 15:46:38.767: D/IJKMEDIA(9589): IjkMediaPlayer_start 06-01 15:46:38.767: D/IJKMEDIA(9589): ijkmp_start() 06-01 15:46:38.767: D/IJKMEDIA(9589): ijkmp_start()=0 06-01 15:46:38.767: D/IJKMEDIA(9589): ijkmp_get_msg: FFP_REQ_START 06-01 15:46:38.769: D/IJKMEDIA(9589): IjkMediaPlayer_setVolume 06-01 15:46:38.769: D/IJKMEDIA(9589): ijkmp_android_set_volume(1.000000, 1.000000) 06-01 15:46:38.769: D/IJKMEDIA(9589): ffpipeline_set_volume 06-01 15:46:38.769: I/IJKMEDIA(9589): aout_set_volume(1.000000, 1.000000) 06-01 15:46:38.769: D/IJKMEDIA(9589): ijkmp_android_set_volume(1.000000, 1.000000)=void 06-01 15:46:38.778: D/IJKMEDIA(9589): ijkmp_get_msg: FFP_REQ_START 06-01 15:46:38.780: D/IJKMEDIA(9589): ffpipeline_set_surface_need_reconfigure_l(0) 06-01 15:46:38.780: I/IJKMEDIA(9589): feed_input_buffer: same surface, reuse previous surface 06-01 15:46:38.782: D/IJKMEDIA(9589): avcodec/Audio: first frame decoded 06-01 15:46:38.782: I/IJKMEDIA(9589): slVolumeItf->SetVolumeLevel((1.000000, 1.000000) -> 0) 06-01 15:46:38.782: D/IJKMEDIA(9589): FFP_MSG_AUDIO_RENDERING_START: 06-01 15:46:38.887: I/IJKMEDIA(9589): SDL_AMediaCodecJava_dequeueOutputBuffer: INFO_OUTPUT_BUFFERS_CHANGED

请教大神:播放视频,走到上面的log处不走了,现象是有声音没图像;和正常视频log比对,发现没有接着执行AMEDIACODEC__INFO_OUTPUT_FORMAT_CHANGED。

raymond1012 commented 7 years ago

硬解不出帧,尝试下软解,判断是不是片源问题

waynehan-lab commented 7 years ago

硬解和软解都不行,用ijk0.4.4的版本可以正常播放。

seanLee commented 7 years ago

It seems that I meet the same problem.My ijkplayer version is av_version_info: ff3.3--ijk0.8.0--20170710--001

raymond1012 commented 7 years ago

提供下软解的log

waynehan-lab commented 7 years ago

06-01 10:11:26.224: D/IJKMEDIA(12493): IjkMediaPlayer_native_setup 06-01 10:11:26.224: I/IJKMEDIA(12493): av_version_info: ff3.3--ijk0.8.0--20170518--001 06-01 10:11:26.224: I/IJKMEDIA(12493): ijk_version_info: be6cbb9 06-01 10:11:26.224: D/IJKMEDIA(12493): ffpipeline_create_from_android() 06-01 10:11:26.224: D/IJKMEDIA(12493): ijkmp_set_inject_opaque(0x796) 06-01 10:11:26.224: D/IJKMEDIA(12493): ijkmp_set_inject_opaque()=void 06-01 10:11:26.224: D/IJKMEDIA(12493): ijkmp_set_ijkio_inject_opaque(0x796) 06-01 10:11:26.225: D/IJKMEDIA(12493): ijkmp_set_ijkio_inject_opaque()=void 06-01 10:11:26.225: D/IJKMEDIA(12493): ijkmp_android_set_mediacodec_select_callback() 06-01 10:11:26.225: D/IJKMEDIA(12493): ffpipeline_set_mediacodec_select_callback 06-01 10:11:26.225: D/IJKMEDIA(12493): ijkmp_android_set_mediacodec_select_callback()=void 06-01 10:11:26.225: D/IJKMEDIA(12493): IjkMediaPlayer_native_setLogLevel(4) 06-01 10:11:26.225: D/IJKMEDIA(12493): moncleanup 06-01 10:11:26.225: D/IJKMEDIA(12493): IjkMediaPlayer_setOptionLong 06-01 10:11:26.225: D/IJKMEDIA(12493): IjkMediaPlayer_setOptionLong 06-01 10:11:26.225: D/IJKMEDIA(12493): IjkMediaPlayer_setOptionLong 06-01 10:11:26.225: D/IJKMEDIA(12493): IjkMediaPlayer_setOptionLong 06-01 10:11:26.225: D/IJKMEDIA(12493): IjkMediaPlayer_setOptionLong 06-01 10:11:26.225: D/IJKMEDIA(12493): IjkMediaPlayer_setOptionLong 06-01 10:11:26.225: D/IJKMEDIA(12493): IjkMediaPlayer_setOptionLong 06-01 10:11:26.225: D/IJKMEDIA(12493): IjkMediaPlayer_setOptionLong 06-01 10:11:26.226: D/IJKMEDIA(12493): IjkMediaPlayer_setDataSourceFd 06-01 10:11:26.226: V/IJKMEDIA(12493): setDataSourceFd: dup(144)=147 06-01 10:11:26.226: D/IJKMEDIA(12493): ijkmp_set_data_source(url="pipe:147") 06-01 10:11:26.226: D/IJKMEDIA(12493): ijkmp_set_data_source(url="pipe:147")=0 06-01 10:11:26.228: D/IJKMEDIA(12493): IjkMediaPlayer_setVideoSurface 06-01 10:11:26.228: D/IJKMEDIA(12493): ijkmp_set_android_surface(surface=0xe14bec20) 06-01 10:11:26.228: D/IJKMEDIA(12493): ffpipeline_set_surface() 06-01 10:11:26.228: D/IJKMEDIA(12493): ijkmp_set_android_surface(surface=0xe14bec20)=void 06-01 10:11:26.228: D/IJKMEDIA(12493): IjkMediaPlayer_prepareAsync 06-01 10:11:26.228: D/IJKMEDIA(12493): ijkmp_prepare_async() 06-01 10:11:26.228: I/IJKMEDIA(12493): ===== versions ===== 06-01 10:11:26.228: I/IJKMEDIA(12493): ijkplayer : be6cbb9 06-01 10:11:26.228: I/IJKMEDIA(12493): FFmpeg : ff3.3--ijk0.8.0--20170518--001 06-01 10:11:26.229: I/IJKMEDIA(12493): libavutil : 55.58.100 06-01 10:11:26.229: I/IJKMEDIA(12493): libavcodec : 57.89.100 06-01 10:11:26.229: I/IJKMEDIA(12493): libavformat : 57.71.100 06-01 10:11:26.229: I/IJKMEDIA(12493): libswscale : 4.6.100 06-01 10:11:26.229: I/IJKMEDIA(12493): libswresample: 2.7.100 06-01 10:11:26.229: I/IJKMEDIA(12493): SDL_RunThread: [13123] ff_msg_loop 06-01 10:11:26.229: I/IJKMEDIA(12493): ===== options ===== 06-01 10:11:26.229: D/IJKMEDIA(12493): message_loop 06-01 10:11:26.229: I/IJKMEDIA(12493): player-opts : mediacodec-auto-select = 0 06-01 10:11:26.229: I/IJKMEDIA(12493): player-opts : mediacodec-all-videos = 0 06-01 10:11:26.229: I/IJKMEDIA(12493): player-opts : mediacodec-auto-rotate = 1 06-01 10:11:26.229: I/IJKMEDIA(12493): player-opts : mediacodec-handle-resolution-change = 1 06-01 10:11:26.229: I/IJKMEDIA(12493): player-opts : opensles = 1 06-01 10:11:26.229: I/IJKMEDIA(12493): player-opts : framedrop = 1 06-01 10:11:26.229: I/IJKMEDIA(12493): player-opts : start-on-prepared = 0 06-01 10:11:26.229: I/IJKMEDIA(12493): format-opts : ijkapplication = -777508368 06-01 10:11:26.229: I/IJKMEDIA(12493): format-opts : ijkiomanager = -667421648 06-01 10:11:26.229: I/IJKMEDIA(12493): codec-opts : skip_loop_filter = 48 06-01 10:11:26.229: I/IJKMEDIA(12493): =================== 06-01 10:11:26.229: I/IJKMEDIA(12493): aout_set_volume(1.000000, 1.000000) 06-01 10:11:26.230: D/IJKMEDIA(12493): FFP_MSG_FLUSH: 06-01 10:11:26.232: D/IJKMEDIA(12493): ijkmp_prepare_async()=0 06-01 10:11:26.232: I/IJKMEDIA(12493): SDL_RunThread: [13124] ff_vout 06-01 10:11:26.232: D/IJKMEDIA(12493): IjkMediaPlayer_setOptionLong 06-01 10:11:26.232: D/IJKMEDIA(12493): IjkMediaPlayer_setLoopCount 06-01 10:11:26.240: I/IJKMEDIA(12493): SDL_RunThread: [13125] ff_read 06-01 10:11:26.249: E/IJKMEDIA(12493): Option ijkapplication not found. 06-01 10:11:26.368: I/IJKMEDIA(12493): max_frame_duration: 10.000 06-01 10:11:26.368: I/IJKMEDIA(12493): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:147': 06-01 10:11:26.368: I/IJKMEDIA(12493): Metadata: 06-01 10:11:26.368: I/IJKMEDIA(12493): major_brand : 06-01 10:11:26.368: I/IJKMEDIA(12493): isom 06-01 10:11:26.368: I/IJKMEDIA(12493): minor_version : 06-01 10:11:26.368: I/IJKMEDIA(12493): 1 06-01 10:11:26.368: I/IJKMEDIA(12493): compatible_brands: 06-01 10:11:26.368: I/IJKMEDIA(12493): isom 06-01 10:11:26.368: I/IJKMEDIA(12493): creation_time : 06-01 10:11:26.368: I/IJKMEDIA(12493): 2017-06-22T01:38:17.000000Z 06-01 10:11:26.368: I/IJKMEDIA(12493): Duration: 06-01 10:11:26.368: I/IJKMEDIA(12493): 00:00:52.15 06-01 10:11:26.368: I/IJKMEDIA(12493): , start: 06-01 10:11:26.368: I/IJKMEDIA(12493): 0.000000 06-01 10:11:26.368: I/IJKMEDIA(12493): , bitrate: 06-01 10:11:26.368: I/IJKMEDIA(12493): 9839 kb/s 06-01 10:11:26.368: I/IJKMEDIA(12493): Stream #0:0 06-01 10:11:26.368: I/IJKMEDIA(12493): (und) 06-01 10:11:26.368: I/IJKMEDIA(12493): : Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2048 [SAR 1:1 DAR 15:8], 9722 kb/s 06-01 10:11:26.368: I/IJKMEDIA(12493): , 06-01 10:11:26.368: I/IJKMEDIA(12493): 29.97 fps, 06-01 10:11:26.368: I/IJKMEDIA(12493): 29.97 tbr, 06-01 10:11:26.368: I/IJKMEDIA(12493): 90k tbn, 06-01 10:11:26.368: I/IJKMEDIA(12493): 59.94 tbc 06-01 10:11:26.368: I/IJKMEDIA(12493): (default) 06-01 10:11:26.368: I/IJKMEDIA(12493): Metadata: 06-01 10:11:26.368: I/IJKMEDIA(12493): creation_time : 06-01 10:11:26.368: I/IJKMEDIA(12493): 2016-09-13T10:41:12.000000Z 06-01 10:11:26.369: I/IJKMEDIA(12493): handler_name : 06-01 10:11:26.369: I/IJKMEDIA(12493): VideoHandler 06-01 10:11:26.369: I/IJKMEDIA(12493): Stream #0:1 06-01 10:11:26.369: I/IJKMEDIA(12493): (und) 06-01 10:11:26.369: I/IJKMEDIA(12493): : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s 06-01 10:11:26.369: I/IJKMEDIA(12493): (default) 06-01 10:11:26.369: I/IJKMEDIA(12493): Metadata: 06-01 10:11:26.369: I/IJKMEDIA(12493): creation_time : 06-01 10:11:26.369: I/IJKMEDIA(12493): 2016-09-13T10:40:54.000000Z 06-01 10:11:26.369: I/IJKMEDIA(12493): handler_name : 06-01 10:11:26.369: I/IJKMEDIA(12493): SoundHandler 06-01 10:11:26.373: I/IJKMEDIA(12493): OpenSL-ES: native sample rate 48000 Hz 06-01 10:11:26.376: I/IJKMEDIA(12493): OpenSL-ES: bytes_per_frame = 4 bytes 06-01 10:11:26.376: I/IJKMEDIA(12493): OpenSL-ES: milli_per_buffer = 10 ms 06-01 10:11:26.376: I/IJKMEDIA(12493): OpenSL-ES: frame_per_buffer = 441 frames 06-01 10:11:26.376: I/IJKMEDIA(12493): OpenSL-ES: bytes_per_buffer = 1764 bytes 06-01 10:11:26.376: I/IJKMEDIA(12493): OpenSL-ES: buffer_capacity = 449820 bytes 06-01 10:11:26.379: I/IJKMEDIA(12493): AudioCodec: avcodec, aac 06-01 10:11:26.383: D/IJKMEDIA(12493): ffpipenode_create_video_decoder_from_ffplay() 06-01 10:11:26.383: I/IJKMEDIA(12493): VideoCodec: avcodec, h264 06-01 10:11:26.383: W/IJKMEDIA(12493): fps: 29.970030 (normal) 06-01 10:11:26.383: W/IJKMEDIA(12493): fps: 29.970030 (normal) 06-01 10:11:26.383: I/IJKMEDIA(12493): SDL_RunThread: [13134] ff_video_dec 06-01 10:11:26.383: D/IJKMEDIA(12493): FFP_MSG_VIDEO_SIZE_CHANGED: 3840, 2048 06-01 10:11:26.383: D/IJKMEDIA(12493): FFP_MSG_SAR_CHANGED: 1, 1 06-01 10:11:26.383: D/IJKMEDIA(12493): ijkmp_get_msg: FFP_MSG_PREPARED 06-01 10:11:26.383: D/IJKMEDIA(12493): FFP_MSG_PREPARED: 06-01 10:11:26.383: I/IJKMEDIA(12493): SDL_RunThread: [13128] ff_audio_dec 06-01 10:11:26.384: I/IJKMEDIA(12493): SDL_RunThread: [13127] ff_aout_opensles 06-01 10:11:26.384: D/IJKMEDIA(12493): FFP_MSG_VIDEO_ROTATION_CHANGED: 0 06-01 10:11:26.384: D/IJKMEDIA(12493): FFP_MSG_BUFFERING_START: 06-01 10:11:26.389: D/IJKMEDIA(12493): IjkMediaPlayer_start 06-01 10:11:26.389: D/IJKMEDIA(12493): ijkmp_start() 06-01 10:11:26.389: D/IJKMEDIA(12493): ijkmp_start()=0 06-01 10:11:26.389: D/IJKMEDIA(12493): ijkmp_get_msg: FFP_REQ_START 06-01 10:11:26.389: D/IJKMEDIA(12493): IjkMediaPlayer_seekTo 06-01 10:11:26.389: D/IJKMEDIA(12493): ijkmp_seek_to(16762) 06-01 10:11:26.389: D/IJKMEDIA(12493): ijkmp_seek_to(16762)=0 06-01 10:11:26.389: D/IJKMEDIA(12493): ijkmp_get_msg: FFP_REQ_SEEK 06-01 10:11:26.389: D/IJKMEDIA(12493): IjkMediaPlayer_setVolume 06-01 10:11:26.389: D/IJKMEDIA(12493): ijkmp_android_set_volume(1.000000, 1.000000) 06-01 10:11:26.389: D/IJKMEDIA(12493): ffpipeline_set_volume 06-01 10:11:26.389: I/IJKMEDIA(12493): aout_set_volume(1.000000, 1.000000) 06-01 10:11:26.389: D/IJKMEDIA(12493): ijkmp_android_set_volume(1.000000, 1.000000)=void 06-01 10:11:26.483: D/IJKMEDIA(12493): ijkmp_get_msg: FFP_REQ_START 06-01 10:11:26.484: D/IJKMEDIA(12493): ijkmp_get_msg: FFP_MSG_SEEK_COMPLETE 06-01 10:11:26.484: D/IJKMEDIA(12493): FFP_MSG_SEEK_COMPLETE: 06-01 10:11:26.668: D/IJKMEDIA(12493): FFP_MSG_BUFFERING_END: 06-01 10:11:26.683: I/IJKMEDIA(12493): slVolumeItf->SetVolumeLevel((1.000000, 1.000000) -> 0) 06-01 10:11:26.714: D/IJKMEDIA(12493): avcodec/Audio: first frame decoded 06-01 10:11:26.715: D/IJKMEDIA(12493): FFP_MSG_AUDIO_RENDERING_START: 后面就没log了。

seanLee commented 7 years ago

@raymond1012 试了一下,我的问题是硬解黑屏有声音,软解正常.请问一下这个问题有解决办法吗。 ijk版本:ff3.3--ijk0.8.0--20170710--001 播放地址:rtmp://push.99833.com/likesport/74a361a15945492c9b1d1d478db8b20b 用Demo也是一样的结果,自己也查了一下,好像没有发现什么办法

waynehan-lab commented 7 years ago

@seanLee 应该是这个资源硬解解不了,我觉得是正常现象。

seanLee commented 7 years ago

@hywenbinger 那这种情况要怎么处理呢?关掉硬解然后重载播放器吗?

Android4MediaPlayer commented 7 years ago

播放4K视频,你的日志不全

waynehan-lab commented 7 years ago

@seanLee 一般都是硬解播不了,自动切到软解。看产品怎么定义吧。

seanLee commented 7 years ago

@hywenbinger 好的~谢谢啦 我再自己看一下