bilibili / ijkplayer

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

Main Thread Checker: UI API called on a background thread: -[UIView contentMode] #4681

Open poholo opened 5 years ago

poholo commented 5 years ago
019-04-09 19:06:50.084677+0800 PlayerKitDemo[10199:771758] fps in meta 24.000000
2019-04-09 19:06:50.084812+0800 PlayerKitDemo[10199:771758] [INFO] -[MCIJKPlayer mediaIsPreparedToPlayDidChange:](292) MCIJKPlayer::::::mediaIsPreparedToPlayDidChange

2019-04-09 19:06:50.084869+0800 PlayerKitDemo[10199:771758] [INFO] -[MCIJKPlayer loadStateDidChange:](253) MCIJKPlayer:::::: loadStateDidChange: IJKMPMovieLoadStatePlaythroughOK: 3

2019-04-09 19:06:50.084924+0800 PlayerKitDemo[10199:771758] [INFO] -[MCPlayerKit changePlayerState:](144) PlayerState -> 3
2019-04-09 19:06:50.087241+0800 PlayerKitDemo[10199:771758] [INFO] -[MCIJKPlayer moviePlayBackStateDidChange:](310) MCIJKPlayer::::::IJKMPMoviePlayBackStateDidChange 1: playing
Setting 'sample_rate' to value '44100'
Setting 'sample_fmt' to value 'fltp'
Setting 'channels' to value '2'
Setting 'time_base' to value '1/44100'
Setting 'channel_layout' to value '0x3'
tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3
auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
Using fltp internally between filters
ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:2 chl:stereo fmt:s16 r:44100Hz
Video frame changed from size:0x0 format:none serial:-1 to size:480x480 format:yuv420p serial:1
Setting 'video_size' to value '480x480'
Setting 'pix_fmt' to value '0'
Setting 'time_base' to value '1/12288'
Setting 'pixel_aspect' to value '1/1'
Setting 'frame_rate' to value '24/1'
w:480 h:480 pixfmt:yuv420p tb:1/12288 fr:24/1 sar:1/1 sws_param:
Setting 'out_w' to value 'floor(in_w/2)*2'
Setting 'out_h' to value 'floor(in_h/2)*2'
query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
w:480 h:480 sar:1/1 -> w:480 h:480 sar:1/1
SDL_VoutFFmpeg_CreateOverlay(w=480, h=480, fmt=I420(0x30323449, dp=0x280141e60)
Video: first frame decoded
SDL_VoutFFmpeg_CreateOverlay(w=480, h=480, fmt=I420(0x30323449, dp=0x280141e60)
2019-04-09 19:06:50.090608+0800 PlayerKitDemo[10199:771758] FFP_MSG_VIDEO_SIZE_CHANGED: 480, 480
2019-04-09 19:06:50.091095+0800 PlayerKitDemo[10199:771758] FFP_MSG_VIDEO_SIZE_CHANGED: 480, 480
SDL_VoutFFmpeg_CreateOverlay(w=480, h=480, fmt=I420(0x30323449, dp=0x280141e60)
2019-04-09 19:06:50.091854+0800 PlayerKitDemo[10199:771758] FFP_MSG_VIDEO_SIZE_CHANGED: 480, 480
2019-04-09 19:06:50.100177+0800 PlayerKitDemo[10199:771806] OK use I420 GL renderer
2019-04-09 19:06:50.102085+0800 PlayerKitDemo[10199:771806] OK setup GL programm
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIView contentMode]
PID: 10199, TID: 771806, Thread name: ff_vout, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   PlayerKitDemo                       0x00000001006aafec -[IJKSDLGLView updateVertices] + 332
5   PlayerKitDemo                       0x00000001006aa944 -[IJKSDLGLView setupDisplay:] + 1092
6   PlayerKitDemo                       0x00000001006ab750 -[IJKSDLGLView displayInternal:] + 268
7   PlayerKitDemo                       0x00000001006ab5a4 -[IJKSDLGLView display:] + 636
8   PlayerKitDemo                       0x00000001006bdf44 voud_display_overlay_l + 240
9   PlayerKitDemo                       0x00000001006bdc38 voud_display_overlay + 68
10  PlayerKitDemo                       0x000000010068b764 SDL_VoutDisplayYUVOverlay + 68
11  PlayerKitDemo                       0x00000001006a37f0 video_image_display2 + 76
12  PlayerKitDemo                       0x00000001006a310c video_display2 + 60
13  PlayerKitDemo                       0x00000001006a2a9c video_refresh + 1676
14  PlayerKitDemo                       0x00000001006a08cc video_refresh_thread + 172
15  PlayerKitDemo                       0x00000001006a83a0 SDL_RunThread + 76
16  libsystem_pthread.dylib             0x00000001a74182c0 <redacted> + 128
17  libsystem_pthread.dylib             0x00000001a7418220 _pthread_start + 44
18  libsystem_pthread.dylib             0x00000001a741bcdc thread_start + 4
2019-04-09 19:06:50.104592+0800 PlayerKitDemo[10199:771806] [reports] Main Thread Checker: UI API called on a background thread: -[UIView contentMode]
PID: 10199, TID: 771806, Thread name: ff_vout, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   PlayerKitDemo                       0x00000001006aafec -[IJKSDLGLView updateVertices] + 332
5   PlayerKitDemo                       0x00000001006aa944 -[IJKSDLGLView setupDisplay:] + 1092
6   PlayerKitDemo                       0x00000001006ab750 -[IJKSDLGLView displayInternal:] + 268
7   PlayerKitDemo                       0x00000001006ab5a4 -[IJKSDLGLView display:] + 636
8   PlayerKitDemo                       0x00000001006bdf44 voud_display_overlay_l + 240
9   PlayerKitDemo                       0x00000001006bdc38 voud_display_overlay + 68
10  PlayerKitDemo                       0x000000010068b764 SDL_VoutDisplayYUVOverlay + 68
11  PlayerKitDemo                       0x00000001006a37f0 video_image_display2 + 76
12  PlayerKitDemo                       0x00000001006a310c video_display2 + 60
13  PlayerKitDemo                       0x00000001006a2a9c video_refresh + 1676
14  PlayerKitDemo                       0x00000001006a08cc video_refresh_thread + 172
15  PlayerKitDemo                       0x00000001006a83a0 SDL_RunThread + 76
16  libsystem_pthread.dylib             0x00000001a74182c0 <redacted> + 128
17  libsystem_pthread.dylib             0x00000001a7418220 _pthread_start + 44
18  libsystem_pthread.dylib             0x00000001a741bcdc thread_start + 4
avcodec/Audio: first frame decoded
2019-04-09 19:07:05.416311+0800 PlayerKitDemo[10199:771758] FFP_MSG_AUDIO_RENDERING_START:
2019-04-09 19:07:05.416441+0800 PlayerKitDemo[10199:771758] FFP_MSG_VIDEO_RENDERING_START:
2019-04-09 19:07:05.416568+0800 PlayerKitDemo[10199:771758] [INFO] -[MCPlayerKit changePlayerState:](144) PlayerState -> 2
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIView layer]
PID: 10199, TID: 771806, Thread name: ff_vout, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   PlayerKitDemo                       0x00000001006aa244 -[IJKSDLGLView layoutOnDisplayThread] + 104
5   PlayerKitDemo                       0x00000001006ab86c -[IJKSDLGLView displayInternal:] + 552
6   PlayerKitDemo                       0x00000001006ab5a4 -[IJKSDLGLView display:] + 636
7   PlayerKitDemo                       0x00000001006bdf44 voud_display_overlay_l + 240
8   PlayerKitDemo                       0x00000001006bdc38 voud_display_overlay + 68
9   PlayerKitDemo                       0x000000010068b764 SDL_VoutDisplayYUVOverlay + 68
10  PlayerKitDemo                       0x00000001006a37f0 video_image_display2 + 76
11  PlayerKitDemo                       0x00000001006a310c video_display2 + 60
12  PlayerKitDemo                       0x00000001006a2a9c video_refresh + 1676
13  PlayerKitDemo                       0x00000001006a08cc video_refresh_thread + 172
14  PlayerKitDemo                       0x00000001006a83a0 SDL_RunThread + 76
15  libsystem_pthread.dylib             0x00000001a74182c0 <redacted> + 128
16  libsystem_pthread.dylib             0x00000001a7418220 _pthread_start + 44
17  libsystem_pthread.dylib             0x00000001a741bcdc thread_start + 4
2019-04-09 19:07:05.422536+0800 PlayerKitDemo[10199:771806] [reports] Main Thread Checker: UI API called on a background thread: -[UIView layer]
PID: 10199, TID: 771806, Thread name: ff_vout, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   PlayerKitDemo                       0x00000001006aa244 -[IJKSDLGLView layoutOnDisplayThread] + 104
5   PlayerKitDemo                       0x00000001006ab86c -[IJKSDLGLView displayInternal:] + 552
6   PlayerKitDemo                       0x00000001006ab5a4 -[IJKSDLGLView display:] + 636
7   PlayerKitDemo                       0x00000001006bdf44 voud_display_overlay_l + 240
8   PlayerKitDemo                       0x00000001006bdc38 voud_display_overlay + 68
9   PlayerKitDemo                       0x000000010068b764 SDL_VoutDisplayYUVOverlay + 68
10  PlayerKitDemo                       0x00000001006a37f0 video_image_display2 + 76
11  PlayerKitDemo                       0x00000001006a310c video_display2 + 60
12  PlayerKitDemo                       0x00000001006a2a9c video_refresh + 1676
13  PlayerKitDemo                       0x00000001006a08cc video_refresh_thread + 172
14  PlayerKitDemo                       0x00000001006a83a0 SDL_RunThread + 76
15  libsystem_pthread.dylib             0x00000001a74182c0 <redacted> + 128
16  libsystem_pthread.dylib             0x00000001a7418220 _pthread_start + 44
17  libsystem_pthread.dylib             0x00000001a741bcdc thread_start + 4
2019-04-09 19:07:05.514806+0800 PlayerKitDemo[10199:771806] OK setup GL framebuffer 1242:698
poholo commented 5 years ago

image

wustzhy commented 2 years ago

pod 'MCIJKPlayer'