源码下载
git clone https://github.com/metartc/ffmpeg-metartc.git
安装编译软件
编译安装usrsctp
git clone https://github.com/sctplab/usrsctp
cd usrsctp
./bootstrap
./configure --prefix=/usr --disable-programs --disable-inet --disable-inet6
make && sudo make install
编译openssl
export CC=/opt/mips-gcc540-glibc222-32bit-r3.3.0/bin/mips-linux-gnu-gcc
./Configure linux-aarch64
make
make install
生成的库在/usr/local/lib/目录下
编译srtp
/libsrtp-2-fit/crypto/math/datatypes.c 中 char bit_string[MAX_PRINT_STRING_LEN]; 加上static
static char bit_string[MAX_PRINT_STRING_LEN];
./configure
make
make install
生成的库在/usr/local/lib/下。
编译SpeexDSP
tar xvf speexdsp-SpeexDSP-1.2.0.tar.gz
cd speexdsp-SpeexDSP-1.2.0/
sh autogen.sh
./configure
make
sudo make install
生成的库在/usr/local/lib/下
/etc/ld.so.conf
/usr/local/ffmpeg/lib
ldconfig
ffmpeg ......-acodec opus -strict -2 -ar 48000 -f webrtc webrtc://192.168.0.1/live/livestream