1.下载
https://www.ffmpeg.org/
2.编译
yum -y install yasm
./configure --prefix=../ffmepg-bin2 --disable-vaapi
make&&make install
3.顺序
$(DIR_LIB_FFMPEG_LIB)/libavformat.a \
$(DIR_LIB_FFMPEG_LIB)/libavdevice.a \
$(DIR_LIB_FFMPEG_LIB)/libavcodec.a \
$(DIR_LIB_FFMPEG_LIB)/libavutil.a \
$(DIR_LIB_FFMPEG_LIB)/libswresample.a \
$(DIR_LIB_FFMPEG_LIB)/libavfilter.a \
$(DIR_LIB_FFMPEG_LIB)/libpostproc.a \
$(DIR_LIB_FFMPEG_LIB)/libswscale.a \
3.命令
.\ffplay.exe rtsp://192.168.111.230:5454/test
.\ffplay.exe "http://192.168.14.132:8088/live?port=1935&app=live&stream=video_1"
.\ffmpeg.exe -i test.avi test.flv
./ffmpeg -re -i ./weixin.mp4 -c copy -f flv rtmp://192.168.14.132:1935/hls/video_2
./ffmpeg -re -i ./weixin.mp4 -c copy -f flv rtmp://192.168.14.132:1935/live/video_1
./ffmpeg -i rtsp://192.168.14.132:5454/weixin.mp4 -vcodec copy -acodec copy -f flv rtmp://192.168.14.132:1935/live/video_1
./ffserver -f ffserver.cfg
ffserver.cfg
RTSPPort 5454
BindAddress 0.0.0.0
RTSPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 30000
CustomLog -
NoDaemon
#NoDefaults
<Stream test.mp4>
File "./test.mp4"
Format rtp
</Stream>