Ijkplayer: iOS 集成当没有网络的时候 播放局域网中的视频报错

Created on 11 Jan 2017  ·  2Comments  ·  Source: bilibili/ijkplayer

集成做wifi直连的时候(实际是没有网络,连接智能家居的热点(热点没联网)智能家居 本身想当一个服务器,通过wifi连接 直接读取播放智能家居里面 的视频)

jkmp_stop()
ijkmp_stop()=0
ijkmp_shutdown_l()
wait for read_tid
Statistics: 52665 bytes read, 2 seeks
wait for video_refresh_tid
ijkmp_shutdown_l()=void
ijkmp_dec_ref(): ref=0
ijkmp_shutdown_l()
ijkmp_shutdown_l()=void
aout_close_audio()
av_version_info: ff2.8--ijk0.4.4.1--dev0.3.3--rc7
ijkmp_set_inject_opaque(0x101b96c40)
ijkmp_set_inject_opaque()=void
2017-01-11 16:36:43.909339 MPK21[1143:265476] OK setup GL

ijkmp_ios_set_view(glView=0x101bcbd40)
ijkmp_ios_set_view(glView=0x101bcbd40)=void
ijkmp_set_data_source(url="http://192.168.43.1:8090/DCIM/DVR/20170111/VID_132914_335.mp4")
ijkmp_set_data_source(url="http://192.168.43.1:8090/DCIM/DVR/20170111/VID_132914_335.mp4")=0
ijkmp_prepare_async()
===== versions =====
FFmpeg       : ff2.8--ijk0.4.4.1--dev0.3.3--rc7
libavutil    : 54.31.100
libavcodec   : 56.60.100
libavformat  : 56.40.101
libswscale   : 3.1.101
libswresample: 1.2.101
===== options =====
player-opts : start-on-prepared            = 1
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 : video-pictq-size             = 3
format-opts : ijkinject-opaque             = 4323896384
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
ijkmp_start()
ijkmp_start()=-3
2017-01-11 16:36:43.925210 MPK21[1143:265476] invalidateRenderBuffer

2017-01-11 16:36:43.925526 MPK21[1143:265643] IJKSDLGLView: setupDisplay not ready

request: GET /DCIM/DVR/20170111/VID_132914_335.mp4 HTTP/1.1

User-Agent: ijkplayer

Accept: */*

Range: bytes=0-

Connection: close

Host: 192.168.43.1:8090

Icy-MetaData: 1




2017-01-11 16:36:43.951158 MPK21[1143:265476] invalidateRenderBuffer

2017-01-11 16:36:43.952100 MPK21[1143:265643] IJKSDLGLView: setupDisplay not ready

Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
ISO: File Type Major Brand: mp42
request: GET /DCIM/DVR/20170111/VID_132914_335.mp4 HTTP/1.1

User-Agent: ijkplayer

Accept: */*

Range: bytes=139817167-

Connection: close

Host: 192.168.43.1:8090

Icy-MetaData: 1




rfps: 24.916667 0.009646
rfps: 24.916667 0.009646
rfps: 25.000000 0.000016
rfps: 25.000000 0.009962
rfps: 25.083333 0.008165
rfps: 25.083333 0.008165
rfps: 50.000000 0.000065
rfps: 50.000000 0.000065
Option safe not found.
Before avformat_find_stream_info() pos: 139844304 bytes read:31481 seeks:1
request: GET /DCIM/DVR/20170111/VID_132914_335.mp4 HTTP/1.1

User-Agent: ijkplayer

Accept: */*

Range: bytes=40-

Connection: close

Host: 192.168.43.1:8090

Icy-MetaData: 1




All info found
After avformat_find_stream_info() pos: 20084 bytes read:51753 seeks:2 frames:1
max_frame_duration: 10.000
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://192.168.43.1:8090/DCIM/DVR/20170111/VID_132914_335.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2017-01-11 05:32:15
  Duration: 00:03:01.10, start: 0.000000, bitrate: 6177 kb/s
    Stream #0:0(eng), 1, 1/90000: Video: mpeg4, 1 reference frame (mp4v / 0x7634706D), none, 1280x720 (0x0), 1/90000, 6176 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 90k tbn, 90k tbc (default)
    Metadata:
      creation_time   : 2017-01-11 05:32:15
      handler_name    : VideoHandle
No codec could be found with id 13
Failed to open file 'http://192.168.43.1:8090/DCIM/DVR/20170111/VID_132914_335.mp4' or configure filtergraph
2017-01-11 16:36:44.017049 MPK21[1143:265476] FFP_MSG_ERROR: 0
2017-01-11 16:36:44.017448 MPK21[1143:265476] IJKMPMoviePlayBackStateDidChange 2: paused
2017-01-11 16:36:44.017525 MPK21[1143:265476] playbackStateDidChange: IJKMPMovieFinishReasonPlaybackError: 1c

All 2 comments

No codec could be found with id 13

他实际上就是一个热点,本身是没有联外网, 使用vitamio 和 iOS系统播放器都能播放 可是用ijkPlayer就报错 这个怎么破

Was this page helpful?
0 / 5 - 0 ratings

Related issues

binaryxiaobao picture binaryxiaobao  ·  4Comments

xiaogu-space picture xiaogu-space  ·  3Comments

MRsJackYang picture MRsJackYang  ·  4Comments

liukuiqing picture liukuiqing  ·  3Comments

lingchen52 picture lingchen52  ·  3Comments