├── .gitignore └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | .DS_store 32 | 33 | x264-snapshot-20140930-2245/ 34 | x264 35 | scratch-x264/ 36 | thin-x264/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # x264 iOS build script 2 | 3 | **My blog: [http://depthlove.github.io/](http://depthlove.github.io/)** 4 | 5 | This is a shell script to build x264 for iOS apps. 6 | 7 | Tested with: 8 | 9 | * x264-snapshot-20140914-2245 10 | * Xcode 6.4 11 | 12 | ## Requirements 13 | 14 | * https://github.com/libav/gas-preprocessor 15 | 16 | ## Usage 17 | 18 | * To build everything: 19 | 20 | ./build-x264.sh 21 | 22 | * To build for arm64: 23 | 24 | ./build-x264.sh arm64 25 | 26 | * To build fat library for armv7 and x86_64 (64-bit simulator): 27 | 28 | ./build-x264.sh armv7 x86_64 29 | 30 | * To build fat library from separately built thin libraries: 31 | 32 | ./build-x264.sh lipo 33 | 34 | #### About x264 encode video streaming to h264, you can watch my paper [http://depthlove.github.io/2015/09/17/use-x264-encode-iOS-camera-video-to-h264/](http://depthlove.github.io/2015/09/17/use-x264-encode-iOS-camera-video-to-h264/) 35 | 36 | ##### 关于x264编码视频流为h264的内容,可以参看我的文章:[http://depthlove.github.io/2015/09/17/use-x264-encode-iOS-camera-video-to-h264/](http://depthlove.github.io/2015/09/17/use-x264-encode-iOS-camera-video-to-h264/) 37 | 38 | --- 39 | 40 | ##### If you want to know more things, you can view my github blog: [http://depthlove.github.io/](http://depthlove.github.io/). 41 | 42 | ##### 更多内容可参看我的github博客:[http://depthlove.github.io/](http://depthlove.github.io/) 43 | --------------------------------------------------------------------------------