bilibili / ijkplayer

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

ios 硬解播放闪退问题 #1978

Open yeshibuzhong opened 8 years ago

yeshibuzhong commented 8 years ago

希望大神给予指点

===== custom modules begin =====
register demuxer : ijklivehook
===== custom modules end =====
av_version_info: ff3.1--ijk0.6.0--20160715--001
ijkmp_set_inject_opaque(0x16a86a90)
ijkmp_set_inject_opaque()=void
[IJKSDLGLView.m:319行] OK setup GL

[IJKSDLGLView.m:1721行] init sphere 12288 18432
ijkmp_ios_set_view(glView=0x15b7a800)
ijkmp_ios_set_view(glView=0x15b7a800)=void
ijkmp_set_data_source(url="/var/mobile/Containers/Data/Application/30366EAA-D384-414D-BF1B-F7B3EF07C237/Library/AllData/Downloads/8668/8668.mp4")
ijkmp_set_data_source(url="/var/mobile/Containers/Data/Application/30366EAA-D384-414D-BF1B-F7B3EF07C237/Library/AllData/Downloads/8668/8668.mp4")=0
ijkmp_prepare_async()
===== versions =====
FFmpeg       : ff3.1--ijk0.6.0--20160715--001
libavutil    : 55.27.100
libavcodec   : 57.48.101
libavformat  : 57.40.101
libswscale   : 4.1.100
libswresample: 2.1.100
===== options =====
player-opts : start-on-prepared            = 1
player-opts : overlay-format               = fcc-_es2
player-opts : framedrop                    = 0
player-opts : max-fps                      = 30
player-opts : video-pictq-size             = 3
player-opts : videotoolbox                 = 1
player-opts : videotoolbox-max-frame-width = 3840
format-opts : ijkinject-opaque             = 380136080
format-opts : ijkapplication               = 357668064
format-opts : user-agent                   = ijkplayer
format-opts : auto_convert                 = 0
format-opts : timeout                      = 30000000
format-opts : reconnect                    = 1
format-opts : safe                         = 0
codec-opts  : skip_loop_filter             = 0
codec-opts  : skip_frame                   = 0
===================
ijkmp_prepare_async()=0
ijkmp_start()
ijkmp_start()=-3
Setting default whitelist 'file,crypto'
Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
ISO: File Type Major Brand: isom
Unknown dref type 0x08206c7275 size 12
Unknown dref type 0x08206c7275 size 12
Option ijkinject-opaque not found.
Before avformat_find_stream_info() pos: 23278565 bytes read:65595 seeks:1 nb_streams:2
nal_unit_type: 7, nal_ref_idc: 3
nal_unit_type: 8, nal_ref_idc: 3
nal_unit_type: 6, nal_ref_idc: 0
nal_unit_type: 5, nal_ref_idc: 3
user data:"x264 - core 144 r2525+52 a9a0b2b xiaowan [8-bit@all X86] - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=4 deblock=1:1:1 analyse=0x3:0x133 me=umh subme=10 psy=1 fade_compensate=0.00 psy_rd=0.00:0.00 mixed_ref=1 me_range=32 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 fgo=0 bframes=4 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=75 keyint_min=1 scenecut=60 intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=2200 ratetol=1.0 qcomp=0.60 qpmin=0:0:0 qpmax=69:69:69 qpstep=4 vbv_maxrate=5000 vbv_bufsize=1800 nal_hrd=none filler=0 ip_ratio=1.40 aq=3:0.50 aq-sensitivity=10.00 aq-factor=1.00:1.00:1.00 aq2=0 aq3=0"
no picture 
All info found
After avformat_find_stream_info() pos: 43163 bytes read:98363 seeks:2 frames:14
max_frame_duration: 10.000
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/mobile/Containers/Data/Application/30366EAA-D384-414D-BF1B-F7B3EF07C237/Library/AllData/Downloads/8668/8668.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2016-06-14 03:30:28
  Duration: 00:01:23.48, start: 0.000000, bitrate: 2230 kb/s
    Stream #0:0(und), 13, 1/90000: Video: h264, 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709/unknown/unknown, left), 2048x1024 [SAR 1:1 DAR 2:1], 0/1, 2102 kb/s, 24 fps, 24 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2016-06-14 03:27:02
      handler_name    : GPAC ISO Video Handler
    Stream #0:1(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      creation_time   : 2016-06-14 03:27:00
      handler_name    : Sound Media Handler
aout_open_audio()
AudioCodec: avcodec, aac
aout_pause_audio(0)
detected 2 logical cores
nal_unit_type: 7, nal_ref_idc: 3
nal_unit_type: 8, nal_ref_idc: 3
vtbformat_init - using avcC atom of size(48), ref_frames(4)m_max_ref_frames 4 
vtbformat_init - using avcC atom of size(48), ref_frames(4)m_max_ref_frames 4 
after scale width 2048 height 1024 
[IJKVideoToolBox.m:559行] Error Error Domain=NSOSStatusErrorDomain Code=-12911 "(null)"
vtbsession_create - failed with status = (-12911)Assertion failed: (mutex), function SDL_LockMutex, file /Users/wangyahui/Desktop/BoBoPlayer5.0/BoBoPlayer4.0/IJKMediaPlayer/IJKFFMoviePlayerController/ijkmedia/ijksdl/ijksdl_mutex.c, line 63.
Android4MediaPlayer commented 8 years ago

vtbsession_create - failed

yeshibuzhong commented 8 years ago

@Android4MediaPlayer 请问怎么解决呢

yeshibuzhong commented 8 years ago

好像没有接收到解码错误错误的通知

xinzhengzhang commented 8 years ago

@yeshibuzhong Can you provide the ijk version and the video sample(8668.mp4). I need some more information for reproducing this issue.

yeshibuzhong commented 8 years ago

8668.mp4.zip

===== versions ===== [FFPlayer @ 0x7fafc652d830] FFmpeg : ff3.1--ijk0.6.0--20160715--001 [FFPlayer @ 0x7fafc652d830] libavutil : 55.27.100 [FFPlayer @ 0x7fafc652d830] libavcodec : 57.48.101 [FFPlayer @ 0x7fafc652d830] libavformat : 57.40.101 [FFPlayer @ 0x7fafc652d830] libswscale : 4.1.100 [FFPlayer @ 0x7fafc652d830] libswresample: 2.1.100

这个sample在4S上边播放的时候会闪退,其他机型不会出现问题. 但是使用iPhone6,6S在线播放某些影片的时候也会出现同样的问题

xinzhengzhang commented 8 years ago

@yeshibuzhong Not ffmpeg version, I need the version of ijkplayer.

yeshibuzhong commented 8 years ago

不是这个吗 ijk0.6.0

xinzhengzhang commented 8 years ago

I need the commit hash of ijkplayer which you compiled. FFmpeg is a dependencies and ff3.1--ijk0.6.0--20160715--001 is a tag of FFmpeg.

yeshibuzhong commented 8 years ago

请问需要怎么查看呢

Hoony-HU commented 3 years ago

请问解决了吗?