Open cherishman2005 opened 1 year ago
sudo apt install libx264-dev
编译configure添加--enable-libx264
#!/bin/bash
./configure \
--enable-x86asm --enable-asm --enable-inline-asm --enable-optimizations --disable-debug \
--prefix=$PWD/export \
--disable-avdevice --disable-openssl \
--enable-encoder=rawvideo --enable-encoder=aac \
--disable-decoder='flashsv*' --disable-decoder=tiff \
--disable-vaapi \
--disable-vdpau \
--enable-libx264 --enable-gpl \
--disable-filter=gltransition --disable-iconv --disable-bzlib --disable-zlib --disable-openssl \
--enable-protocols --disable-protocol=async --disable-protocol=bluray \
--disable-protocol=ffrtmpcrypt --enable-protocol=ffrtmphttp --disable-protocol=gopher \
--disable-protocol='librtmp*' --disable-protocol=libssh --disable-protocol=mmsh --disable-protocol=mmst \
--disable-protocol='rtmp*' --enable-protocol=rtmp --enable-protocol=rtmpt --enable-protocol=rtp \
--disable-protocol=sctp --disable-protocol=srtp --disable-protocol=unix \
--enable-protocol=udp --enable-protocol=tcp --enable-protocol=concat --disable-protocol=tls_securetransport \
--disable-protocol=https --enable-protocol=rtsp
ubuntu编译