当前位置:网站首页>[work with notes] NDK compiles the open source library ffmpeg
[work with notes] NDK compiles the open source library ffmpeg
2022-06-13 02:00:00 【lovemengx】
One 、 Download source code
wget http://ffmpeg.org/releases/ffmpeg-4.4.tar.gz
tar -zxvf ffmpeg-4.4.tar.gzTwo 、 Compile configuration script
#! /bin/bash
export PREFIX=`pwd`/build/
export TOOLCHAIN=/opt/ndk/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64
export PATH="$TOOLCHAIN"/bin:"$PATH"
export CC="$TOOLCHAIN"/bin/armv7a-linux-androideabi19-clang
export CXX="$TOOLCHAIN"/bin/armv7a-linux-androideabi19-clang++
export PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig"
export LDFLAGS="-fPIE -pie -L$PREFIX/lib"
export TOOL=arm-linux-androideabi
export LD=$TOOLCHAIN/bin/${TOOL}-ld
export AR=$TOOLCHAIN/bin/${TOOL}-ar
export AS=$TOOLCHAIN/bin/${TOOL}-as
export RANLIB=$TOOLCHAIN/bin/${TOOL}-ranlib
export STRIP=$TOOLCHAIN/bin/${TOOL}-strip
./configure \
--prefix=`pwd`/../build/ffmpeg/ \
--enable-shared \
--disable-static \
--disable-doc \
--enable-ffmpeg \
--disable-ffplay \
--enable-ffprobe \
--disable-avdevice \
--disable-doc \
--disable-symver \
--disable-asm \
--target-os=linux \
--arch=armeabi-v7a \
--enable-cross-compile \
--target-os=android \
--sysroot=$TOOLCHAIN/sysroot/ \
--cc=$CC \
--cxx=$CXX \
--strip=$STRIP \
--extra-cflags="-fPIE -pie -march=armv7-a -mfloat-abi=softfp -mfpu=neon" \
--extra-ldflags="-fPIE -pie"
if [ $? -eq 0 ]; then
make -j16 && make install
fi
3、 ... and 、 compiling
cd ffmpeg-4.4
./android_build_ffmpeg.sh
边栏推荐
- The commercial value of Kwai is being seen by more and more brands and businesses
- Workspace for ROS
- Establishment of microservice development environment
- Decoding iFLYTEK open platform 2.0 is a fertile land for developers and a source of industrial innovation
- [the fourth day of actual combat of stm32f401ret6 smart lock project in 10 days] voice control is realized by externally interrupted keys
- Matplotlib drawing Chinese garbled code
- How to solve practical problems through audience positioning?
- Detailed understanding of white noise
- Installing pytorch geometric
- 蓝牙模块:使用问题集锦
猜你喜欢

TensorFlow2的Conv1D, Conv2D,Conv3D机器对应的MaxPooling详解

如何解决通过new Date()获取时间写出数据库与当前时间相差8小时问题【亲测有效】

C语言压缩字符串保存到二进制文件,从二进制文件读取压缩字符串后解压。

华为设备配置双反射器优化虚拟专用网骨干层

Developer contributions amd Xilinx Chinese Forum sharing - wisdom of questioning

The new wild prospect of JD instant retailing from the perspective of "hour shopping"

移动IPv6光猫登录的一般ip地址账号与密码,移动光猫变桥接模式

dfs与bfs解决宝岛探险

How does Google's audience work?

STM32 IIC protocol controls pca9685 steering gear drive board
随机推荐
How do you use your own data to achieve your marketing goals?
Devaxpress Chinese description --tcxpropertiesstore (property store recovery control)
Top level configuration + cooling black technology + cool appearance, the Red Devils 6S Pro is worthy of the flagship game of the year
Vivo released originos ocean, and the domestic customized system is getting better and better
When AI meets music, iFLYTEK music leads the industry reform with technology
SWD debugging mode of stm32
Why is Huawei matebook x Pro 2022 leading a "laptop" revolution
What did Hello travel do right for 500million users in five years?
反爬虫策略(ip代理、设置随机休眠时间、哔哩哔哩视频信息爬取、真实URL的获取、特殊字符的处理、时间戳的处理、多线程处理)
4、 Improvement of warehousing management function
In the third quarter, the revenue and net profit increased "against the trend". What did vatti do right?
华为设备配置IP和虚拟专用网混合FRR
STM32F103 IIC OLED program migration complete engineering code
What is Google plus large text ads? How to use it?
Explanation and application of prefix sum (one-dimensional, two-dimensional)
VI keyboard diagram
Stm32+ze-08 formaldehyde sensor tutorial
In addition to the full screen without holes under the screen, the Red Devils 7 series also has these black technologies
[pytorch FAQ] numpy:dll load failed while importing_ multiarray_ Umath: the specified module could not be found.
LeetCode每日一题——890. 查找和替换模式