bilibili / ijkplayer

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

iPhone 7 plus iOS 11.0 运行 demo 播放远程 mp4 视频从点击到播放 20s以上 ps.网络环境不错 #3714

Open likenow opened 7 years ago

likenow commented 7 years ago
===== custom modules begin =====
register demuxer : ijklivehook
===== custom modules end =====
av_version_info: ff3.3--ijk0.8.0--20170829--001
ijk_version_info: k0.8.4
ijkmp_set_inject_opaque(0x1c4008830)
ijkmp_set_inject_opaque()=void
ijkmp_set_ijkio_inject_opaque(0x1c4008830)
ijkmp_set_ijkio_inject_opaque()=void
2017-11-01 20:53:08.778106+0800 IJKMediaDemo[7860:1581549] Metal GPU Frame Capture Enabled
2017-11-01 20:53:08.779634+0800 IJKMediaDemo[7860:1581549] Metal API Validation Enabled
2017-11-01 20:53:09.139680+0800 IJKMediaDemo[7860:1581549] OK setup GL
ijkmp_ios_set_view(glView=0x105a57bc0)
ijkmp_ios_set_view(glView=0x105a57bc0)=void
2017-11-01 20:53:09.165599+0800 IJKMediaDemo[7860:1581549] invalidateRenderBuffer
2017-11-01 20:53:09.169235+0800 IJKMediaDemo[7860:1581708] IJKSDLGLView: setupDisplay not ready
ijkmp_set_data_source(url="http://doubletea-video.aixuexi.com/1509511212979/%E6%B5%8B%E8%AF%95%E8%A7%86%E9%A2%91.mp4")
ijkmp_set_data_source(url="http://doubletea-video.aixuexi.com/1509511212979/%E6%B5%8B%E8%AF%95%E8%A7%86%E9%A2%91.mp4")=0
ijkmp_prepare_async()
===== versions =====
ijkplayer    : k0.8.4
FFmpeg       : ff3.3--ijk0.8.0--20170829--001
libavutil    : 55.58.100
libavcodec   : 57.89.100
libavformat  : 57.71.100
libswscale   : 4.6.100
libswresample: 2.7.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               = 4389659040
format-opts : ijkiomanager                 = 4390635680
format-opts : user-agent                   = ijkplayer
format-opts : auto_convert                 = 0
format-opts : timeout                      = 30000000
format-opts : reconnect                    = 1
format-opts : safe                         = 0
===================
ijkmp_prepare_async()=0
Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
2017-11-01 20:53:09.227608+0800 IJKMediaDemo[7860:1581549] invalidateRenderBuffer
2017-11-01 20:53:09.227702+0800 IJKMediaDemo[7860:1581708] IJKSDLGLView:display: unable to tryLock GL active: 0
Add dns cache hostname = doubletea-video.aixuexi.com, ip = 124.193.235.192
the user-agent option is deprecated, please use user_agent option
request: GET /1509511212979/%E6%B5%8B%E8%AF%95%E8%A7%86%E9%A2%91.mp4 HTTP/1.1

User-Agent: ijkplayer

Accept: */*

Range: bytes=0-

Connection: close

Host: doubletea-video.aixuexi.com

Icy-MetaData: 1

Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
ISO: File Type Major Brand: isom
Unknown dref type 0x206c7275 size 12
Unknown dref type 0x206c7275 size 12
Offset DTS by ctts[0].duration: 2002
Processing st: 1, edit list 0 - media time: 2002, duration: 304812480

shifted frame pts, curr_cts: 0 @ 0, ctts: 2002, ctts_count: 102011
shifted frame pts, curr_cts: 2002 @ 1, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 4004 @ 2, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 6006 @ 2, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 8008 @ 3, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 10010 @ 4, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 12012 @ 4, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 14014 @ 5, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 16016 @ 6, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 18018 @ 6, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 20020 @ 7, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 22022 @ 8, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 24024 @ 8, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 26026 @ 9, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 28028 @ 10, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 30030 @ 10, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 32032 @ 11, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 34034 @ 12, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 36036 @ 12, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 38038 @ 13, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 40040 @ 14, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 42042 @ 14, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 44044 @ 15, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 46046 @ 16, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 48048 @ 16, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 50050 @ 17, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 52052 @ 18, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 54054 @ 18, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 56056 @ 19, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 58058 @ 20, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 60060 @ 20, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 62062 @ 21, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 64064 @ 22, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 66066 @ 22, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 68068 @ 23, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 70070 @ 24, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 72072 @ 24, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 74074 @ 25, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 76076 @ 26, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 78078 @ 26, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 80080 @ 27, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 82082 @ 28, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 84084 @ 28, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 86086 @ 29, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 88088 @ 30, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 90090 @ 30, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 92092 @ 31, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 94094 @ 32, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 96096 @ 32, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 98098 @ 33, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 100100 @ 34, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 102102 @ 34, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 104104 @ 35, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 106106 @ 36, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 108108 @ 36, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 110110 @ 37, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 112112 @ 38, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 114114 @ 38, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 116116 @ 39, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 118118 @ 40, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 120120 @ 40, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 122122 @ 41, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 124124 @ 42, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 126126 @ 42, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 128128 @ 43, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 130130 @ 44, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 132132 @ 44, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 134134 @ 45, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 136136 @ 46, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 138138 @ 46, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 140140 @ 47, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 142142 @ 48, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 144144 @ 48, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 146146 @ 49, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 148148 @ 50, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 150150 @ 50, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 152152 @ 51, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 154154 @ 52, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 156156 @ 52, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 158158 @ 53, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 160160 @ 54, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 162162 @ 54, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 164164 @ 55, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 166166 @ 56, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 168168 @ 56, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 170170 @ 57, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 172172 @ 58, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 174174 @ 58, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 176176 @ 59, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 178178 @ 60, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 180180 @ 60, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 182182 @ 61, ctts: 6006, ctts_count: 102011
shifted frame pts, curr_cts: 184184 @ 62, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 186186 @ 62, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 188188 @ 63, ctts: 4004, ctts_count: 102011
shifted frame pts, curr_cts: 190190 @ 64, ctts: 0, ctts_count: 102011
shifted frame pts, curr_cts: 192192 @ 65, ctts: 2002, ctts_count: 102011
shifted frame pts, curr_cts: 194194 @ 66, ctts: 6006, ctts_count: 102011
...
likenow commented 7 years ago

下载运行demo播放一个mp4格式的电影,画面一直住不动要过30s以上才有画面;相通网络环境 iPhone 7 iPhone 6s 设备反而比iphone 7 plus 快很多