{"action":"created","issue":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/819","labels_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/819/labels{/name}","comments_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/819/comments","events_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/819/events","html_url":"https://github.com/Bilibili/ijkplayer/issues/819","id":125765393,"number":819,"title":"[Android] Troubleshooting why MediaCodec is not being used (or failing)","user":{"login":"stuckless","id":1056553,"avatar_url":"https://avatars.githubusercontent.com/u/1056553?v=3","gravatar_id":"","url":"https://api.github.com/users/stuckless","html_url":"https://github.com/stuckless","followers_url":"https://api.github.com/users/stuckless/followers","following_url":"https://api.github.com/users/stuckless/following{/other_user}","gists_url":"https://api.github.com/users/stuckless/gists{/gist_id}","starred_url":"https://api.github.com/users/stuckless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuckless/subscriptions","organizations_url":"https://api.github.com/users/stuckless/orgs","repos_url":"https://api.github.com/users/stuckless/repos","events_url":"https://api.github.com/users/stuckless/events{/privacy}","received_events_url":"https://api.github.com/users/stuckless/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-09T15:42:33Z","updated_at":"2016-01-11T11:09:35Z","closed_at":null,"body":"I have a number of h264 mkvs/mp4s and when I play them in ijkplayer, they play fine, but, I can see from the logging the avcodec is being used instead of MediaCodec (ie software decoding vs hardware decoding).  I'm wondering how I go about determining \"why\" ijkplayer goes to software decoding or why hardware decoding fails.  These files play in ExoPlayer and it will only play hardware decoded streams, so I know they \"should\" be able to use the hardware decoder.\r\n\r\nHere's my log...\r\n\r\n```\r\n01-09 10:29:30.024 4014-4014/sagex.miniclient.android D/IJKMEDIA: ijkmp_set_data_source(url=\"ijkmediadatasource:1051606\")\r\n01-09 10:29:30.024 4014-4014/sagex.miniclient.android D/IJKMEDIA: ijkmp_set_data_source(url=\"ijkmediadatasource:1051606\")=0\r\n01-09 10:29:30.024 4014-4014/sagex.miniclient.android D/IJKMEDIA: IjkMediaPlayer_prepareAsync\r\n01-09 10:29:30.024 4014-4014/sagex.miniclient.android D/IJKMEDIA: ijkmp_prepare_async()\r\n01-09 10:29:30.024 4014-4014/sagex.miniclient.android I/IJKMEDIA: ===== versions =====\r\n01-09 10:29:30.024 4014-4014/sagex.miniclient.android I/IJKMEDIA: FFmpeg       : ff2.8--ijk0.4.1.1--dev0.3.3--rc4\r\n01-09 10:29:30.024 4014-4014/sagex.miniclient.android I/IJKMEDIA: libavutil    : 54.31.100\r\n01-09 10:29:30.024 4014-4014/sagex.miniclient.android I/IJKMEDIA: libavcodec   : 56.60.100\r\n01-09 10:29:30.024 4014-4014/sagex.miniclient.android I/IJKMEDIA: libavformat  : 56.40.101\r\n01-09 10:29:30.024 4014-4014/sagex.miniclient.android I/IJKMEDIA: libswscale   : 3.1.101\r\n01-09 10:29:30.025 4014-4014/sagex.miniclient.android I/IJKMEDIA: libswresample: 1.2.101\r\n01-09 10:29:30.025 4014-4014/sagex.miniclient.android I/IJKMEDIA: ===== options =====\r\n01-09 10:29:30.025 4014-4014/sagex.miniclient.android I/IJKMEDIA: player-opts : mediacodec-avc               = 1\r\n01-09 10:29:30.025 4014-4014/sagex.miniclient.android I/IJKMEDIA: player-opts : mediacodec-hevc              = 1\r\n01-09 10:29:30.025 4014-4014/sagex.miniclient.android I/IJKMEDIA: player-opts : framedrop                    = 1\r\n01-09 10:29:30.025 4014-4014/sagex.miniclient.android I/IJKMEDIA: format-opts : ijkinject-opaque             = 2100262\r\n01-09 10:29:30.025 4014-4014/sagex.miniclient.android I/IJKMEDIA: codec-opts  : skip_loop_filter             = 48\r\n01-09 10:29:30.025 4014-4014/sagex.miniclient.android I/IJKMEDIA: ===================\r\n01-09 10:29:30.025 4014-6509/sagex.miniclient.android I/IJKMEDIA: SDL_RunThread: [6509] ff_msg_loop\r\n01-09 10:29:30.025 4014-6509/sagex.miniclient.android D/IJKMEDIA: message_loop\r\n01-09 10:29:30.026 4014-4014/sagex.miniclient.android D/IJKMEDIA: ijkmp_prepare_async()=0\r\n01-09 10:29:30.026 4014-4014/sagex.miniclient.android D/sagex.miniclient.android.video.ijkplayer.IJKMediaPlayerImpl: [main] DEBUG - mediaplayer has our URL\r\n01-09 10:29:30.027 4014-6510/sagex.miniclient.android I/IJKMEDIA: SDL_RunThread: [6510] ff_vout\r\n01-09 10:29:30.027 4014-6509/sagex.miniclient.android D/IJKMEDIA: FFP_MSG_FLUSH:\r\n01-09 10:29:30.027 4014-6511/sagex.miniclient.android I/IJKMEDIA: SDL_RunThread: [6511] ff_read\r\n01-09 10:29:30.028 4014-4876/sagex.miniclient.android D/sagex.miniclient.android.video.ijkplayer.IJKMediaPlayerImpl: [Media-192.168.1.176] DEBUG - play()\r\n01-09 10:29:30.028 4014-4876/sagex.miniclient.android D/IJKMEDIA: IjkMediaPlayer_start\r\n01-09 10:29:30.028 4014-4876/sagex.miniclient.android D/IJKMEDIA: ijkmp_start()\r\n01-09 10:29:30.028 4014-4876/sagex.miniclient.android D/IJKMEDIA: ijkmp_start()=-3\r\n01-09 10:29:30.044 4014-6511/sagex.miniclient.android E/IJKMEDIA: Option ijkinject-opaque not found.\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: max_frame_duration: 10.000\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: Input #0, matroska,webm, from 'ijkmediadatasource:1051606':\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA:   Metadata:\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA:     encoder         : \r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: libebml v1.3.0 + libmatroska v1.4.1\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA:     creation_time   : \r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: 2015-10-12 03:15:16\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA:   Duration: \r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: 01:04:57.41\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: , start: \r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: 0.000000\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: , bitrate: \r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: 7448 kb/s\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA:     Stream #0:0\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: (eng)\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: : Video: h264 (High), yuv420p(tv, bt709/unknown/unknown), 1280x720\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: , SAR 1:1 DAR 16:9\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: , \r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: 23.98 fps, \r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: 23.98 tbr, \r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: 1k tbn, \r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: 47.95 tbc\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA:  (default)\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA:     Stream #0:1\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA: : Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s\r\n01-09 10:29:30.069 4014-6511/sagex.miniclient.android I/IJKMEDIA:  (default)\r\n01-09 10:29:30.070 4014-6511/sagex.miniclient.android E/IJKMEDIA: SDL_Android_AudioTrack_new_from_spec: invalid channel 0\r\n01-09 10:29:30.070 4014-6511/sagex.miniclient.android E/IJKMEDIA: aout_open_audio_n: failed to new AudioTrcak()\r\n01-09 10:29:30.070 4014-6511/sagex.miniclient.android W/IJKMEDIA: SDL_OpenAudio (6 channels, 48000 Hz): (null)\r\n01-09 10:29:30.070 4014-6511/sagex.miniclient.android E/IJKMEDIA: SDL_Android_AudioTrack_new_from_spec: invalid channel 0\r\n01-09 10:29:30.070 4014-6511/sagex.miniclient.android E/IJKMEDIA: aout_open_audio_n: failed to new AudioTrcak()\r\n01-09 10:29:30.070 4014-6511/sagex.miniclient.android W/IJKMEDIA: SDL_OpenAudio (4 channels, 48000 Hz): (null)\r\n01-09 10:29:30.070 4014-6511/sagex.miniclient.android I/IJKMEDIA: SDL_Android_AudioTrack: CHANNEL_OUT_STEREO\r\n01-09 10:29:30.070 4014-6511/sagex.miniclient.android I/IJKMEDIA: SDL_Android_AudioTrack: ENCODING_PCM_16BIT\r\n01-09 10:29:30.073 4014-6511/sagex.miniclient.android I/IJKMEDIA: SDL_Android_AudioTrack_new_from_spec: init volume as 1.000000/(1.000000,0.000000)\r\n01-09 10:29:30.073 4014-6511/sagex.miniclient.android I/IJKMEDIA: audio_session_id = 226\r\n01-09 10:29:30.073 4014-6511/sagex.miniclient.android I/IJKMEDIA: AudioCodec: avcodec, ac3\r\n01-09 10:29:30.073 4014-6518/sagex.miniclient.android I/IJKMEDIA: SDL_RunThread: [6518] ff_audio_dec\r\n01-09 10:29:30.073 4014-6517/sagex.miniclient.android I/IJKMEDIA: SDL_RunThread: [6517] ff_aout_android\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android D/IJKMEDIA: ffpipenode_create_video_decoder_from_android_mediacodec()\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android I/IJKMEDIA: ffpipenode_create_video_decoder_from_android_mediacodec: MediaCodec: H264_HIGH: enabled\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android I/IJKMEDIA: AMediaFormat: video/avc, 1280x720\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android D/IJKMEDIA: SDL_AMediaFormatJava_createVideoFormat\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android E/IJKMEDIA: csd-0[40]: 00000001\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android E/IJKMEDIA: csd-0[40]: 67640029\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android E/IJKMEDIA: csd-0[40]: acd98050\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android E/IJKMEDIA: csd-0[40]: 05ba6a04\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android E/IJKMEDIA: csd-0[40]: 04028000\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android E/IJKMEDIA: csd-0[40]: 01f48000\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android E/IJKMEDIA: csd-0[40]: 5dc0478c\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android E/IJKMEDIA: csd-0[40]: 18cd0000\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android E/IJKMEDIA: csd-0[40]: 000168e9\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android E/IJKMEDIA: csd-0[40]: 78232c8b\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android I/IJKMEDIA: amc: rotate notify: 0\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android D/IJKMEDIA: ffpipeline_select_mediacodec_l\r\n01-09 10:29:30.076 4014-6509/sagex.miniclient.android D/IJKMEDIA: FFP_MSG_VIDEO_ROTATION_CHANGED: 0\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onSelectCodec: mime=video/avc, profile=100, level=41\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.mp4.decode\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/mp4v-es\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.h263.decode\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/3gpp\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.h264.decode\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/avc\r\n01-09 10:29:30.076 4014-6511/sagex.miniclient.android I/tv.danmaku.ijk.media.player.IjkMediaPlayer: candidate codec: OMX.Nvidia.h264.decode rank=800\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android I/IjkMediaCodecInfo:  High Profile Level 51 (8,32768)\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.vp8.decode\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/x-vnd.on2.vp8\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.vp9.decode\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/x-vnd.on2.vp9\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.h265.decode\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/hevc\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.mpeg2v.decode\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/mpeg2\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.vc1.decode\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/wvc1\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/x-ms-wmv\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.mp3.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/mpeg\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.mp2.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/mpeg-L2\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.eaacp.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/mp4a-latm\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.wma.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/x-ms-wma\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.mjpeg.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/mjpeg\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.h264.encoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.Nvidia.vp8.encoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.mp3.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/mpeg\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.amrnb.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/3gpp\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.amrwb.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/amr-wb\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.aac.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/mp4a-latm\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.g711.alaw.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/g711-alaw\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.g711.mlaw.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/g711-mlaw\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.vorbis.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/vorbis\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.opus.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/opus\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.raw.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: audio/raw\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.aac.encoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.amrnb.encoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.amrwb.encoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.flac.encoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.mpeg4.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/mp4v-es\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.h263.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/3gpp\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.h264.decoder\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/avc\r\n01-09 10:29:30.077 4014-6511/sagex.miniclient.android I/tv.danmaku.ijk.media.player.IjkMediaPlayer: candidate codec: OMX.google.h264.decoder rank=200\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android I/IjkMediaCodecInfo:  Baseline Profile Level 51 (1,32768)\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.hevc.decoder\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/hevc\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.vp8.decoder\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/x-vnd.on2.vp8\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.vp9.decoder\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:     mime: video/x-vnd.on2.vp9\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.h263.encoder\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.h264.encoder\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.mpeg4.encoder\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android D/tv.danmaku.ijk.media.player.IjkMediaPlayer:   found codec: OMX.google.vp8.encoder\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android I/tv.danmaku.ijk.media.player.IjkMediaPlayer: selected codec: OMX.Nvidia.h264.decode rank=800\r\n01-09 10:29:30.078 4014-6511/sagex.miniclient.android D/IJKMEDIA: SDL_AMediaCodecJava_createByCodecName\r\n01-09 10:29:30.082 4014-6511/sagex.miniclient.android D/IJKMEDIA: SDL_AMediaCodecJava_init\r\n01-09 10:29:30.082 4014-6511/sagex.miniclient.android D/IJKMEDIA: SDL_AMediaCodec_increaseReference(): ref=1\r\n01-09 10:29:30.082 4014-6511/sagex.miniclient.android D/IJKMEDIA: SDL_AMediaCodecJava_configure_surface\r\n01-09 10:29:30.082 4014-6511/sagex.miniclient.android E/IJKMEDIA: configure acodec:0x100c4e format:0xc32: surface:0x100c3e\r\n01-09 10:29:30.085 4014-6511/sagex.miniclient.android E/IJKMEDIA: reconfigure_codec_l:configure_surface: failed\r\n01-09 10:29:30.085 4014-6511/sagex.miniclient.android D/IJKMEDIA: SDL_AMediaCodec_decreaseReference(): ref=0\r\n01-09 10:29:30.085 4014-6511/sagex.miniclient.android I/IJKMEDIA: SDL_AMediaCodecJava_delete\r\n01-09 10:29:30.088 4014-6511/sagex.miniclient.android I/IJKMEDIA: VideoCodec: avcodec, h264\r\n01-09 10:29:30.088 4014-6511/sagex.miniclient.android W/IJKMEDIA: fps: 23.976024 (normal)\r\n01-09 10:29:30.088 4014-6511/sagex.miniclient.android W/IJKMEDIA: fps: 23.976024 (normal)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/comments/170510454","html_url":"https://github.com/Bilibili/ijkplayer/issues/819#issuecomment-170510454","issue_url":"https://api.github.com/repos/Bilibili/ijkplayer/issues/819","id":170510454,"user":{"login":"stuckless","id":1056553,"avatar_url":"https://avatars.githubusercontent.com/u/1056553?v=3","gravatar_id":"","url":"https://api.github.com/users/stuckless","html_url":"https://github.com/stuckless","followers_url":"https://api.github.com/users/stuckless/followers","following_url":"https://api.github.com/users/stuckless/following{/other_user}","gists_url":"https://api.github.com/users/stuckless/gists{/gist_id}","starred_url":"https://api.github.com/users/stuckless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuckless/subscriptions","organizations_url":"https://api.github.com/users/stuckless/orgs","repos_url":"https://api.github.com/users/stuckless/repos","events_url":"https://api.github.com/users/stuckless/events{/privacy}","received_events_url":"https://api.github.com/users/stuckless/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T11:09:35Z","updated_at":"2016-01-11T11:09:35Z","body":"I'll try to get that log.  I've actually worked around this issue after finding an obscure reference to a person having a similar issue with the Android MediaPlayer.  They fixed it by setting the SurfaceView visibility to GONE when the player is released, and then again to VISIBLE when the player is being recreated.\r\n\r\nI have no idea why setting the visiblity to GONE/VISIBLE would fix this unless the SurfaceView has some reinitialization code in there??\r\n\r\nSo right now, using the GONE/VISIBLE hack, it all works.  Setting the SurfaceView to GONE was something I needed to do anyways, since without that, I would get the last frame of the player still visible on the view and it would bleed through my UI.\r\n\r\nI'm OK if you want to close this issue, and I can revisit it, if it turns up again."}}