交叉编译ffmpeg

rtsp转rtmp流

arm-linux-gnueabihf-gcc

 

 

./configure --prefix=/home/vinsuan/code/Time/2020_03/FFmpeg-release-3.3/FFmpeg-release-3.3/build/arm --disable-yasm --disable-shared --disable-zlib --disable-doc --disable-htmlpages --disable-podpages --disable-fontconfig --disable-encoders --disable-decoders --enable-decoder=h264 --enable-decoder=mjpeg --enable-encoder=aac --enable-encoder=flv  --enable-encoder=yuv4 --enable-cross-compile --arch=arm --target-os=linux --cc=arm-linux-gnueabihf-gcc
#不要加--disable-stripping

 

之后将生成的config.mak中的STRIP=strip改为STRIP=arm-linux-gnueabihf-strip

你可能感兴趣的:(工具,C)