加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ohos_ijkffmpeg_config.sh 2.71 KB
一键复制 编辑 原始数据 按行查看 历史
AlgoIdeas 提交于 2023-08-17 20:05 . Initail commit ohos_ijkffmpeg
# FFmpeg build configure
#!/bin/bash
FFMPEG_PATH=$1
FFMPEG_OUT_PATH=$2
echo "***开始准备编译ffmpeg***"
echo $FFMPEG_OUT_PATH
echo $FFMPEG_PATH
FF_CONFIG_OPTIONS="
--disable-gpl
--disable-nonfree
--disable-runtime-cpudetect
--disable-gray
--disable-swscale-alpha
--disable-ffmpeg
--disable-ffplay
--disable-ffprobe
--disable-doc
--disable-htmlpages
--disable-manpages
--disable-podpages
--disable-lzma
--disable-asm
--disable-programs
--disable-doc
--disable-debug
--disable-pixelutils
--disable-avdevice
--disable-avfilter
--disable-avresample
--disable-postproc
--disable-devices
--disable-bsfs
--disable-iconv
--disable-xlib
--disable-zlib
--disable-cuvid
--disable-cuda
--disable-libxcb
--disable-libxcb_shape
--disable-libxcb_shm
--disable-libxcb_xfixes
--disable-sdl2
--disable-hwaccels
--disable-muxers
--disable-demuxers
--disable-parsers
--disable-protocols
--disable-bzlib
--disable-vaapi
--disable-vdpau
--disable-dwt
--disable-lsp
--disable-lzo
--disable-faan
--disable-encoders
--disable-decoders
--enable-network
--enable-protocol=file,http,https,tcp,httpproxy,rtmp,rtp,async
--enable-demuxer=hls,flv,live_flv,mp3,aac,ape,flac,ogg,wav,mov,mpegts,rtmp,rtsp,sdp,rtp
--enable-muxer=mp4,h264,mp3
--enable-parser=h263,mpeg4video,vp8,vp9,mp3,h264
--enable-parser=mpegaudio,aac,aac_latm
--enable-decoder=h263,h264,mpeg2video,mpeg4,vp8,vp9
--enable-decoder=mp3,mp3float,aac,aac_latm,ape,flac,vorbis,opus
--enable-encoder=aac,aac_latm,opus
--enable-encoder=mpeg4,h263,mp3
--enable-openssl
"
FF_CONFIG_OPTIONS=`echo $FF_CONFIG_OPTIONS`
${FFMPEG_PATH}/configure ${FF_CONFIG_OPTIONS}
mv ijkffmpeg_config.h ${FFMPEG_OUT_PATH}/config.h
mv ./ijkffmpeg_ffbuild/config.mak ${FFMPEG_OUT_PATH}/config.mak
mv -f libavcodec_ijk ${FFMPEG_OUT_PATH}
mv -f libavformat_ijk ${FFMPEG_OUT_PATH}
mv -f libavutil_ijk ${FFMPEG_OUT_PATH}
mv -f libavdevice_ijk ${FFMPEG_OUT_PATH}
mv -f libavfilter_ijk ${FFMPEG_OUT_PATH}
cd ${FFMPEG_OUT_PATH}
mv libavcodec_ijk libavcodec
mv libavformat_ijk libavformat
mv libavutil_ijk libavutil
mv libavdevice_ijk libavdevice
mv libavfilter_ijk libavfilter
#rm -rf ./ffbuild
echo "***编译FFmpeg准备结束***"
# other work need to be done manually
cat <<!EOF
#####################################################
****NOTICE****
You need to modify the file config.mak and delete
all full path string in macro:
SRC_PATH, SRC_PATH_BARE, BUILD_ROOT, LDFLAGS.
Please refer to the old version of config.mak to
check how to modify it.
#####################################################
!EOF
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化