In the posts, I will show how to use ffmpeg on iOS.
This posts is a document for this project:
https://github.com/lvjian700/ffmpegc-demo
Now, ffmpec support x264 module. If you use the script before, please check your version first.
What is ffmpeg ?
FFmpeg is a complete, across-platform solution to record, convert and stream audio and video.
Why use ffmpeg?
- Play h.264 video
- encoding capture video to h.264 video(It need ffmpeg h.264 module.)
- publish a av stream
- subscribe a rtsp av stream
Before use ffmpegc-demo, you should download and compile ffmpeg:
I made a repository to make the step easy:
git clone git@github.com:lvjian700/ffmpegc.git cd ffmpegc ./install-ffmpeg.shhttps://github.com/lvjian700/ffmpegc
If compile complete, you can find universal library in ffmpeg/build folder:
1. ffmpeg core library:
2. ffmpeg x264 module. x264 is a H.264/MPEG-4 AVC encoder
Using ffmpeg
1. Clone project first:
git@github.com:lvjian700/ffmpegc-demo.git
2.Open in XCode and copy build/*.a and x264/build/*.a to libs/ folder of the project:
3. Add them to project link library
Project References -> Targets -> Build Phases -> Link Binary With Librarys
4. Add dependences library:
Project References -> Targets -> Build Phases -> Link Binary With Librarys
Add two library:
- libbz.dylib
- libz.dylib
- libiconv.2.4.0.dylib
5. Add Header Search Paths:
Project References -> Targets -> Build Settings -> Header Search Paths
1. add ffmpeg core header paths:
2. add x264 header paths:
6. Now, run project ...
Some useful document:
《How to prepare your mac for ios development with ffmpeg libraries》
《ffmpeg configure options》 -pdf
相关推荐
--enable-cross-compile \ --enable-nonfree \ --enable-gpl \ --disable-armv5te \ --disable-swscale-alpha \ --disable-doc \ --disable-ffmpeg \ --disable-ffplay \ --disable-ffprobe \ --disable-ffserver \ ...
修改过的将大部分github资源转为指向Gitee上的镜像的一个编译脚本,同时外网的下载资源也转化为指向了ftp://localhost/xxxx ,使用前可先自行下载这些...然后替换当中的cross_compile_ffmpeg.sh为本文件,运行,即可。
compile-ffmpeg.sh资源文件啊
CPU 架构:x86_64、arm64 configure 参数:--enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic
CPU 架构:x86_64、arm64 configure 参数:--enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic
报错: ...在 compile-ffmpeg.sh中删除 armv7, 修改如: FF_ALL_ARCHS_IOS8_SDK="arm64 i386 x86_64" 再重新执行出现错误的命令: ./compile-ffmpeg.sh all 如果还报错文件不存在,直接注释就好了
编译ffmpeg-osx / Linux 在OSX和Linux下编译ffmpeg的构建脚本(ubuntu / debian) 对于OSX是必需的:已安装的自制软件: cmake mercurial git wget curl pkg-config nasm autoconf automake libtool autogen gnu-...
FFmpeg static builds can be downloaded for every major operating system. They are built from recent development versions and include executables for you to run without the need to compile FFmpeg.
How to compile Amalgamation for android
根据 https://evanxlh.github.io/2020/07/19/compile-ffmpeg-on-macos/ 教程生成; 不支持 macOS app。
ffmpeg-compile-shared-library-for-android, 移植ffmpeg到android,编译可用于jni调用的so库.
如题,mac终端下自动编译curl+ssl支持的.a库的脚本文件,供iOS开发使用,生成i386,x86_64,armv7,armv7s,arm64五大CPU架构的库文件(内含编译好的,可以直接使用),消息介绍看zip中的说明文件!(2015-01-14整理)分不够的mail...
Xcode 5 Start to Finish will help you use the tools in Apple’s Xcode 5 to improve productivity, write great code, and leverage the newest iOS 7 and OS X Mavericks features. Drawing on thirty years ...
This is a FFmpeg Win64 shared...GCC 4.9.2 was used to compile this FFmpeg build: This build was compiled using the MinGW-w64 toolchain: Licenses for each library can be found in the 'licenses' folder.
Installation goes in the following simple steps, and should be familiar since you have already installed Allegro: ... You probably have a vcvars32.bat file that will do this for you.
资源是笔者在MATLAB里面安装的MinGW-w64 C/C++编译器安装包,主要用于作为博文https://blog.csdn.net/jiqiren_dasheng/article/details/103759720的资源附件。(声明:上传时积分设置的1,如果数值后续变了,就是...
FFMPEG Library for Android This project is a Java wrapper around an ffmpeg command line binary for use in Android applications. It depends on the android-ffmpeg project to provide the ffmpeg binary. ...
在ijkplayer的基础上编译可运行的ffmpeg,和ijkplayer公用一个ffmpeg库. 目前支持最新ijkplayer 0.8.8. 编译步骤: 0.下载ndk14(只能用ndk10~ndk14) 1.运行init.sh 2.如果想支持x264和openssl请先运行compile-...
CPU 架构:x86_64、arm64 configure 参数:--enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic
compile 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8' # Other ABIs: optional compile 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8' compile 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8' compile 'tv....