bilibili / ijkplayer

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

直接闪退 什么原因 正常的mp4 无法播放 #5226

Open ChinaKeep opened 3 years ago

ChinaKeep commented 3 years ago

jkmediaplayer version : ===== custom modules begin ===== register demuxer : ijklivehook ===== custom modules end ===== 2021-03-12 15:46:17.247417+0900 Mojito[2293:175434] !!!!!!!!!! actual: v4.1-10 expect: ff3.4--ijk0.8.7--20180103--001

!!!!!!!!!! av_version_info: v4.1-10 ijk_version_info: ijkmp_set_inject_opaque(0x281a7ccc0) ijkmp_set_inject_opaque()=void ijkmp_set_ijkio_inject_opaque(0x281a7ccc0) ijkmp_set_ijkio_inject_opaque()=void 2021-03-12 15:46:17.394862+0900 Mojito[2293:175434] OK setup GL ijkmp_ios_set_view(glView=0x10bde48c0) ijkmp_ios_set_view(glView=0x10bde48c0)=void 2021-03-12 15:46:17.425094+0900 Mojito[2293:175434] invalidateRenderBuffer ijkmp_set_data_source(url="https://v-cdn.zjol.com.cn/276984.mp4") ijkmp_set_data_source(url="https://v-cdn.zjol.com.cn/276984.mp4")=0 ijkmp_prepare_async() ===== versions ===== ijkplayer : FFmpeg : v4.1-10 libavutil : 56.22.100 libavcodec : 58.35.100 libavformat : 57.83.100 libswscale : 5.3.100 libswresample: 3.3.100 ===== options ===== player-opts : video-pictq-size = 3 player-opts : overlay-format = fcc-_es2 player-opts : max-fps = 30 player-opts : framedrop = 0 player-opts : videotoolbox-max-frame-width = 960 player-opts : videotoolbox = 0 player-opts : start-on-prepared = 1 format-opts : ijkapplication = 4492959104 format-opts : ijkiomanager = 4493023200 format-opts : user-agent = ijkplayer format-opts : auto_convert = 0 format-opts : timeout = 30000000 format-opts : reconnect = 1 format-opts : safe = 0

Undefined constant or missing '(' in 'fcc-_es2' Unable to parse option value "fcc-_es2" Error setting option overlay-format to value fcc-_es2. ijkmp_prepare_async()=0 2021-03-12 15:46:17.437071+0900 Mojito[2293:175434] invalidateRenderBuffer 2021-03-12 15:46:17.437432+0900 Mojito[2293:175727] IJKSDLGLView: setupDisplay not ready

Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] PID: 2293, TID: 175696, Thread name: (none), Queue name: com.apple.root.user-initiated-qos, QoS: 25 Backtrace: 4 Mojito 0x00000001010aa5d4 -[IJKSDLGLView isApplicationActive] + 140 5 Mojito 0x00000001010aaf88 -[IJKSDLGLView display:] + 84 6 Mojito 0x00000001010aaf10 38-[IJKSDLGLView invalidateRenderBuffer]_block_invoke + 92 7 libdispatch.dylib 0x000000010b9236f4 _dispatch_call_block_and_release + 24 8 libdispatch.dylib 0x000000010b924c78 _dispatch_client_callout + 16 9 libdispatch.dylib 0x000000010b935f1c _dispatch_root_queue_drain + 712 10 libdispatch.dylib 0x000000010b9367ac _dispatch_worker_thread2 + 156 11 libsystem_pthread.dylib 0x00000001910121b4 _pthread_wqthread + 464 12 libsystem_pthread.dylib 0x0000000191014cd4 start_wqthread + 4 2021-03-12 15:46:17.463102+0900 Mojito[2293:175696] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] PID: 2293, TID: 175696, Thread name: (none), Queue name: com.apple.root.user-initiated-qos, QoS: 25 Backtrace: 4 Mojito 0x00000001010aa5d4 -[IJKSDLGLView isApplicationActive] + 140 5 Mojito 0x00000001010aaf88 -[IJKSDLGLView display:] + 84 6 Mojito 0x00000001010aaf10 38-[IJKSDLGLView invalidateRenderBuffer]_block_invoke + 92 7 libdispatch.dylib 0x000000010b9236f4 _dispatch_call_block_and_release + 24 8 libdispatch.dylib 0x000000010b924c78 _dispatch_client_callout + 16 9 libdispatch.dylib 0x000000010b935f1c _dispatch_root_queue_drain + 712 10 libdispatch.dylib 0x000000010b9367ac _dispatch_worker_thread2 + 156 11 libsystem_pthread.dylib 0x00000001910121b4 _pthread_wqthread + 464 12 libsystem_pthread.dylib 0x0000000191014cd4 start_wqthread + 4 2021-03-12 15:46:27.518769+0900 Mojito[2293:175696] IJKSDLGLView: setupDisplay not ready (lldb)

ChinaKeep commented 3 years ago

@tewilove @devloe @ened @willerce

ChinaKeep commented 3 years ago

mobile-ffmpeg-full 和ijkframeworks 会冲突吗

ChinaKeep commented 3 years ago

mobile-ffmpeg-full 和ijkframeworks 同时导入会报上面的错误,如何解决???

g707175425 commented 3 years ago

mobile-ffmpeg-full 和ijkframeworks 同时导入会报上面的错误,如何解决???

我也有同样的问题,你们解决了吗

ChinaKeep commented 3 years ago

mobile-ffmpeg-full 和ijkframeworks 同时导入会报上面的错误,如何解决???

我也有同样的问题,你们解决了吗

解决了,更新ffmpeg版本,版本不一致导致的

g707175425 commented 3 years ago

更新ijkplayer 的ffmpeg的版本? 是需要重新编译吗

climlove commented 4 months ago

mobile-ffmpeg-full 和ijkframeworks同时导入会报上的错误,如何解决???

我也有同样的问题,你们遇到了吗?

已解决,更新ffmpeg版本,版本不一致导致

请问是如何解决的 用哪个mobile-ffmpeg-full 版本 还有ijk