cherishman2005 / rtc_tools

rtc ffmpeg
3 stars 0 forks source link

[ffmpeg]Unknown encoder 'libx264' #54

Open cherishman2005 opened 1 year ago

cherishman2005 commented 1 year ago

ubuntu编译

Unknown encoder 'libx264'
cherishman2005 commented 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