Home ijkplayer readme
Post
Cancel

ijkplayer readme

repo

1
install homebrew, git, yasm
  • If you prefer more codec/format

    1
    2
    3
    4
    5
    6
    
    cd config
    rm module.sh
    ln -s module-default.sh module.sh
    cd android/contrib
    # cd ios
    sh compile-ffmpeg.sh clean
    
  • If you prefer less codec/format for smaller binary size (include hevc function)

    1
    2
    3
    4
    5
    6
    
    cd config
    rm module.sh
    ln -s module-lite-hevc.sh module.sh
    cd android/contrib
    # cd ios
    sh compile-ffmpeg.sh clean
    
  • If you prefer less codec/format for smaller binary size (by default)

    1
    2
    3
    4
    5
    6
    
    cd config
    rm module.sh
    ln -s module-lite.sh module.sh
    cd android/contrib
    # cd ios
    sh compile-ffmpeg.sh clean
    

Build iOS

1
2
3
4
5
git checkout -B latest k0.8.8
./init-ios.sh
cd ios
./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Undefined symbols for architecture arm64:
  "_ijkio_application_on_cache_statistic", referenced from:
      _call_inject_statistic in IJKMediaFramework(ijkiocache.o)
  "_zlibCompileFlags", referenced from:
      _http_read_header in IJKMediaFramework(http.o)
  "_BZ2_bzDecompressEnd", referenced from:
      _matroska_decode_buffer in IJKMediaFramework(matroskadec.o)
  "_BZ2_bzDecompress", referenced from:
      _matroska_decode_buffer in IJKMediaFramework(matroskadec.o)
  "_deflateBound", referenced from:
      _flashsv_decode_frame in IJKMediaFramework(flashsv.o)
  "_BZ2_bzDecompressInit", referenced from:
      _matroska_decode_buffer in IJKMediaFramework(matroskadec.o)
  "_IJK_GLES2_Renderer_use", referenced from:
      -[IJKSDLGLView setupRenderer:] in IJKMediaFramework(IJKSDLGLView.o)
  "_deflateEnd", referenced from:
      _flashsv_decode_frame in IJKMediaFramework(flashsv.o)
  "_inflateInit2_", referenced from:
      _http_read_header in IJKMediaFramework(http.o)
  "_inflateReset", referenced from:
      _flashsv_decode_frame in IJKMediaFramework(flashsv.o)
      _decode_frame in IJKMediaFramework(mscc.o)
      _zlib_decomp in IJKMediaFramework(lcldec.o)
      _decode_frame in IJKMediaFramework(tscc.o)
      _zerocodec_decode_frame in IJKMediaFramework(zerocodec.o)
      _decode_frame in IJKMediaFramework(zmbv.o)
  "_uncompress", referenced from:
      _decode_frame in IJKMediaFramework(cscd.o)
      _decode_frame in IJKMediaFramework(dxa.o)
      _decode_block in IJKMediaFramework(exr.o)
      _g2m_decode_frame in IJKMediaFramework(g2meet.o)
      _id3v2_read_internal in IJKMediaFramework(id3v2.o)
      _mov_read_cmov in IJKMediaFramework(mov.o)
      _rscc_decode_frame in IJKMediaFramework(rscc.o)
      ...
     (maybe you meant: _ff_snappy_peek_uncompressed_length, _ff_snappy_uncompress , _ff_lzf_uncompress )
  "_inflateInit_", referenced from:
      _OUTLINED_FUNCTION_21 in IJKMediaFramework(pngdec.o)
      _flashsv_decode_init in IJKMediaFramework(flashsv.o)
      _matroska_decode_buffer in IJKMediaFramework(matroskadec.o)
      _decode_init in IJKMediaFramework(mscc.o)
      _decode_init in IJKMediaFramework(lcldec.o)
      _swf_read_header in IJKMediaFramework(swfdec.o)
      _decode_frame in IJKMediaFramework(tiff.o)
      ...
  "_ijkio_application_closep", referenced from:
      _ijkio_manager_destroy in IJKMediaFramework(ijkiomanager.o)
  "_IJK_GLES2_Renderer_renderOverlay", referenced from:
      -[IJKSDLGLView displayInternal:] in IJKMediaFramework(IJKSDLGLView.o)
  "_deflateInit_", referenced from:
      _flashsv_decode_frame in IJKMediaFramework(flashsv.o)
  "_inflate", referenced from:
      _decode_frame_common in IJKMediaFramework(pngdec.o)
      _decode_zbuf in IJKMediaFramework(pngdec.o)
      _flashsv_decode_frame in IJKMediaFramework(flashsv.o)
      _matroska_decode_buffer in IJKMediaFramework(matroskadec.o)
      _decode_frame in IJKMediaFramework(mscc.o)
      _zlib_decomp in IJKMediaFramework(lcldec.o)
      _zlib_refill in IJKMediaFramework(swfdec.o)
      ...
  "_IJK_GLES2_Renderer_isFormat", referenced from:
      -[IJKSDLGLView setupRenderer:] in IJKMediaFramework(IJKSDLGLView.o)
  "_IJK_GLES2_Renderer_create", referenced from:
      -[IJKSDLGLView setupRenderer:] in IJKMediaFramework(IJKSDLGLView.o)
  "_ijkio_application_open", referenced from:
      _ijkio_manager_alloc in IJKMediaFramework(ijkiomanager.o)
  "_inflateSync", referenced from:
      _flashsv_decode_frame in IJKMediaFramework(flashsv.o)
  "_IJK_GLES2_Renderer_reset", referenced from:
      -[IJKSDLGLView dealloc] in IJKMediaFramework(IJKSDLGLView.o)
      -[IJKSDLGLView setupRenderer:] in IJKMediaFramework(IJKSDLGLView.o)
  "_IJK_GLES2_Renderer_setGravity", referenced from:
      -[IJKSDLGLView setupRenderer:] in IJKMediaFramework(IJKSDLGLView.o)
      -[IJKSDLGLView displayInternal:] in IJKMediaFramework(IJKSDLGLView.o)
  "_deflate", referenced from:
      _flashsv_decode_frame in IJKMediaFramework(flashsv.o)
  "_inflateEnd", referenced from:
      _decode_frame_apng in IJKMediaFramework(pngdec.o)
      _decode_frame_png in IJKMediaFramework(pngdec.o)
      _decode_zbuf in IJKMediaFramework(pngdec.o)
      _flashsv_decode_end in IJKMediaFramework(flashsv.o)
      _matroska_decode_buffer in IJKMediaFramework(matroskadec.o)
      _decode_close in IJKMediaFramework(mscc.o)
      _decode_end in IJKMediaFramework(lcldec.o)
      ...
  "_IJK_GLES2_Renderer_isValid", referenced from:
      -[IJKSDLGLView setupRenderer:] in IJKMediaFramework(IJKSDLGLView.o)
  "_IJK_GLES2_Renderer_freeP", referenced from:
      -[IJKSDLGLView dealloc] in IJKMediaFramework(IJKSDLGLView.o)
      -[IJKSDLGLView setupRenderer:] in IJKMediaFramework(IJKSDLGLView.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1
2
3
导入libbz2
缺少实现文件.m, .c
导入FFMpeg的静态库时,要在BuildSettings中指明HeaderSearchPath
This post is licensed under CC BY 4.0 by the author.