代码拉取完成,页面将自动刷新
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。