bilibili / ijkplayer

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

视频播放一部分会从so报错停止播放 what = -10000 #4289

Open aiven163 opened 6 years ago

aiven163 commented 6 years ago

具体日志如下: 看了一下Issues 很多人遇到过这个问题,求教如何解决(目前来看,这是一个大家都普遍存在的问题): 视屏比较大,620M,时长一个小时,由于公司内部文件,这里就不附带视频地址了; 目前分析: 1、不是视频源问题,因为每次出现这个问题的时间点并不确定,有时候十多分钟包,有时候20多分钟的时候报,有时候甚至播了几分钟就开始报,甚至有时候从头到尾又不报错误; 2、该视频源在电脑web端能正常播放

06-04 17:38:07.940 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 8149, dts 339797792 06-04 17:38:07.940 7892-8458/cn.migu.moa V/IJKMEDIA: stream 1, sample 15928, dts 339797333 06-04 17:38:07.941 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 8149, dts 339797792 stream 1, sample 15929, dts 339818667 stream 0, sample 8149, dts 339797792 stream 1, sample 15930, dts 339840000 stream 0, sample 8150, dts 339839500 stream 1, sample 15930, dts 339840000 stream 0, sample 8150, dts 339839500 stream 1, sample 15931, dts 339861333 stream 0, sample 8151, dts 339881208 stream 1, sample 15931, dts 339861333 stream 0, sample 8151, dts 339881208 stream 1, sample 15932, dts 339882667 stream 0, sample 8151, dts 339881208 stream 1, sample 15933, dts 339904000 stream 0, sample 8152, dts 339922917 stream 1, sample 15933, dts 339904000 stream 0, sample 8152, dts 339922917 stream 1, sample 15934, dts 339925333 stream 0, sample 8152, dts 339922917 06-04 17:38:07.942 7892-8458/cn.migu.moa V/IJKMEDIA: stream 1, sample 15935, dts 339946667 06-04 17:38:07.942 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 8153, dts 339964625 stream 1, sample 15935, dts 339946667 stream 0, sample 8153, dts 339964625 06-04 17:38:07.942 7892-8458/cn.migu.moa V/IJKMEDIA: stream 1, sample 15936, dts 339968000 stream 0, sample 8153, dts 339964625 stream 1, sample 15937, dts 339989333 stream 0, sample 8154, dts 340006333 stream 1, sample 15937, dts 339989333 06-04 17:38:07.943 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 8154, dts 340006333 stream 1, sample 15938, dts 340010667 stream 0, sample 8154, dts 340006333 stream 1, sample 15939, dts 340032000 stream 0, sample 8155, dts 340048042 stream 1, sample 15939, dts 340032000 stream 0, sample 8155, dts 340048042 stream 1, sample 15940, dts 340053333 stream 0, sample 8155, dts 340048042 stream 1, sample 15941, dts 340074667 stream 0, sample 8156, dts 340089750 stream 1, sample 15941, dts 340074667 stream 0, sample 8156, dts 340089750 stream 1, sample 15942, dts 340096000 stream 0, sample 8156, dts 340089750 stream 1, sample 15943, dts 340117333 06-04 17:38:07.944 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 8157, dts 340131458 stream 1, sample 15943, dts 340117333 stream 0, sample 8157, dts 340131458 stream 1, sample 15944, dts 340138667 stream 0, sample 8157, dts 340131458 stream 1, sample 15945, dts 340160000 stream 0, sample 8158, dts 340173167 stream 1, sample 15945, dts 340160000 stream 0, sample 8158, dts 340173167 stream 1, sample 15946, dts 340181333 stream 0, sample 8158, dts 340173167 stream 1, sample 15947, dts 340202667 stream 0, sample 8159, dts 340214875 stream 1, sample 15947, dts 340202667

06-04 17:38:07.944 7892-8458/cn.migu.moa I/IJKMEDIA: ffp_toggle_buffering: error: -5
06-04 17:38:07.944 7892-8456/cn.migu.moa D/IJKMEDIA: FFP_MSG_ERROR: 0
06-04 17:38:07.945 7892-8444/cn.migu.moa E/tv.danmaku.ijk.media.player.IjkMediaPlayer: Error (-10000,0)
06-04 17:38:07.945 7892-7892/cn.migu.moa E/GSYVideoPlayer: cancelTimeOutBuffer
06-04 17:38:07.945 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 8159, dts 340214875
    stream 1, sample 15948, dts 340224000
06-04 17:38:07.945 7892-7892/cn.migu.moa E/MGVideoPlayer: 报错  what = -10000   extra = 0
06-04 17:38:07.945 7892-8458/cn.migu.moa I/IJKMEDIA: ffp_toggle_buffering: eof
06-04 17:38:07.945 7892-7892/cn.migu.moa E/MGVideoPlayer: 报错1  what = -10000   extra = 0
06-04 17:38:07.945 7892-7892/cn.migu.moa D/IJKMEDIA: IjkMediaPlayer_seekTo
06-04 17:38:07.946 7892-7892/cn.migu.moa D/IJKMEDIA: ijkmp_seek_to(229035)
ijkmp_seek_to(229035)=0

06-04 17:38:07.946 7892-8456/cn.migu.moa D/IJKMEDIA: ijkmp_get_msg: FFP_REQ_SEEK stream_seek 229035000(229035) + 0, ijkmp_get_msg: FFP_REQ_SEEK: seek to 229035 06-04 17:38:07.946 7892-8458/cn.migu.moa D/IJKMEDIA: ffp_toggle_buffering_l: start 06-04 17:38:07.946 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, timestamp 5496840, sample 5250 stream 0, found sample 5250 06-04 17:38:07.946 7892-8456/cn.migu.moa D/IJKMEDIA: FFP_MSG_BUFFERING_START: 06-04 17:38:07.946 7892-7892/cn.migu.moa I/GSYVideoPlayer: changeUiToPlayingBufferingShow 06-04 17:38:07.947 7892-7892/cn.migu.moa I/GSYVideoPlayer: Net speed: 1 MB/s percent 10 06-04 17:38:07.947 7892-8458/cn.migu.moa V/IJKMEDIA: stream 1, timestamp 10506496, sample 10260 stream 1, found sample 10260 06-04 17:38:07.947 7892-8456/cn.migu.moa D/IJKMEDIA: ijkmp_get_msg: FFP_MSG_SEEK_COMPLETE 06-04 17:38:07.947 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 5250, dts 218885333 06-04 17:38:07.947 7892-8456/cn.migu.moa D/IJKMEDIA: FFP_MSG_SEEK_COMPLETE: 06-04 17:38:07.947 7892-8458/cn.migu.moa V/IJKMEDIA: stream 1, sample 10260, dts 218880000 06-04 17:38:07.948 7892-8458/cn.migu.moa I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 3 06-04 17:38:07.951 7892-8458/cn.migu.moa I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 131073 06-04 17:38:07.952 7892-7892/cn.migu.moa E/GSYVideoPlayer: cancelTimeOutBuffer 06-04 17:38:07.952 7892-8444/cn.migu.moa W/tv.danmaku.ijk.media.player.IjkMediaPlayer: setScreenOnWhilePlaying(true) is ineffective for Surface 06-04 17:38:07.952 7892-8444/cn.migu.moa D/IJKMEDIA: IjkMediaPlayer_setVideoSurface ijkmp_set_android_surface(surface=0x9bfb64c0) ffpipeline_set_surface() ijkmp_set_android_surface(surface=0x9bfb64c0)=void 06-04 17:38:07.952 7892-7892/cn.migu.moa I/GSYVideoPlayer: changeUiToPlayingClear changeUiToClear 06-04 17:38:07.953 7892-8458/cn.migu.moa I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 131074 06-04 17:38:07.954 7892-8458/cn.migu.moa D/IJKMEDIA: request: GET /https%3A%2F%2Fgarnet.migu.cn%3A16006%2Fnfs%2Fmgyx%2Ftrain%2F6cbc8bab130d46c08e59a29dbbaf79c5.mp4 HTTP/1.1 User-Agent: Lavf/57.83.100 Accept: / Range: bytes=38794630- Connection: close Host: 127.0.0.1:59012 Icy-MetaData: 1 06-04 17:38:07.957 7892-8458/cn.migu.moa V/IJKMEDIA: header='HTTP/1.1 206 PARTIAL CONTENT' http_code=206 header='Accept-Ranges: bytes' header='Content-Length: 612052950' header='Content-Range: bytes 38794630-650847579/650847580' 06-04 17:38:07.958 7892-8459/cn.migu.moa I/HttpProxyCacheDebuger: Opened connections: 2 06-04 17:38:07.958 7892-8446/cn.migu.moa E/MGVideoPlayer: contentType = null 06-04 17:38:07.959 7892-8446/cn.migu.moa E/MGVideoPlayer: offset = 0 available length = -1 response code = 200 06-04 17:38:07.959 7892-8446/cn.migu.moa I/HttpProxyCacheDebuger: Ping response: ping ok, pinged? true 06-04 17:38:07.962 7892-8458/cn.migu.moa V/IJKMEDIA: header='Content-Type: video/mp4' header='' 06-04 17:38:07.962 7892-8458/cn.migu.moa I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 4 06-04 17:38:07.963 7892-8456/cn.migu.moa D/IJKMEDIA: FFP_MSG_AUDIO_SEEK_RENDERING_START: 06-04 17:38:07.963 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 5250, dts 218885333 stream 1, sample 10261, dts 218901333 06-04 17:38:07.963 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 5250, dts 218885333 stream 1, sample 10262, dts 218922667 06-04 17:38:07.964 7892-8448/cn.migu.moa W/Failed to close socket on proxy side: {}. It seems client have already closed connection.: shutdown failed: ENOTCONN (Transport endpoint is not connected) 06-04 17:38:07.964 7892-8448/cn.migu.moa I/HttpProxyCacheDebuger: Opened connections: 1 06-04 17:38:07.982 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 5251, dts 218927042 stream 1, sample 10262, dts 218922667 stream 0, sample 5251, dts 218927042 stream 1, sample 10263, dts 218944000 stream 0, sample 5251, dts 218927042 stream 1, sample 10264, dts 218965333 06-04 17:38:07.983 7892-8538/cn.migu.moa D/IJKMEDIA: nal_unit_type: 5, nal_ref_idc: 3 06-04 17:38:07.983 7892-8538/cn.migu.moa I/IJKMEDIA: Reinit context to 1344x752, pix_fmt: yuv420p 06-04 17:38:07.984 7892-8538/cn.migu.moa D/IJKMEDIA: no picture 06-04 17:38:07.987 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 5252, dts 218968750 stream 1, sample 10264, dts 218965333 stream 0, sample 5252, dts 218968750 stream 1, sample 10265, dts 218986667 stream 0, sample 5252, dts 218968750 stream 1, sample 10266, dts 219008000 06-04 17:38:07.987 7892-8539/cn.migu.moa D/IJKMEDIA: nal_unit_type: 1, nal_ref_idc: 2 06-04 17:38:07.988 7892-8539/cn.migu.moa D/IJKMEDIA: no picture 06-04 17:38:07.988 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 5253, dts 219010458 stream 1, sample 10266, dts 219008000 stream 0, sample 5253, dts 219010458 stream 1, sample 10267, dts 219029333 stream 0, sample 5253, dts 219010458 stream 1, sample 10268, dts 219050667 stream 0, sample 5254, dts 219052167 stream 1, sample 10268, dts 219050667 stream 0, sample 5254, dts 219052167 stream 1, sample 10269, dts 219072000 stream 0, sample 5254, dts 219052167 stream 1, sample 10270, dts 219093333 stream 0, sample 5255, dts 219093875 stream 1, sample 10270, dts 219093333 06-04 17:38:07.989 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 5255, dts 219093875 06-04 17:38:07.989 7892-8540/cn.migu.moa D/IJKMEDIA: nal_unit_type: 1, nal_ref_idc: 2 06-04 17:38:07.989 7892-8458/cn.migu.moa V/IJKMEDIA: stream 1, sample 10271, dts 219114667 stream 0, sample 5255, dts 219093875 stream 1, sample 10272, dts 219136000 06-04 17:38:07.990 7892-8541/cn.migu.moa D/IJKMEDIA: nal_unit_type: 1, nal_ref_idc: 0 06-04 17:38:07.990 7892-8458/cn.migu.moa V/IJKMEDIA: stream 0, sample 5256, dts 219135583

XuYinShuang commented 5 years ago

请问你解决了吗,我也碰到了这个情况