ffserver最终版本只支持到FFmpeg3.4,后续不再更新
首先下载Cygwin64并安装,下载FFmpeg-release-3.4解压至FFmpeg-release-3.4目录
wget -c https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg
$ cd FFmpeg-release-3.4
下载x264源码
wget http://mirror.yandex.ru/mirrors/ftp.videolan.org/x264/snapshots/x264-snapshot-20191217-2245.tar.bz2
解压
bunzip2 last_x264.tar.bz2
cd x264
编译264并安装
./configure --enable-static --enable-shared --disable-asm --disable-avs
make && make install
cd ..
编译ffserver
./configure --enable-ffserver --enable-network --enable-protocols --enable-muxers --enable-libx264 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-gpl
make