FFserver流媒体服务器 FFMPEG推流 RTSP拉流

[root@localhost ffmpeg] # cat ffserver.conf
HttpPort 8090 
RtspPort 554
HttpBindAddress 0.0.0.0 
MaxClients 1000 
MaxBandwidth 10000 
NoDaemon 

<Feed feed1.ffm> 
File /tmp/feed1.ffm 
FileMaxSize 5M 
</Feed> 

<Stream test.mpeg4>
Feed feed1.ffm
Format rtp
VideoCodec mpeg4
VideoFrameRate 15
VideoBufferSize 80000
VideoBitRate 100
VideoQMin 1
VideoQMax 5
VideoSize 352x288
PreRoll 0
Noaudio
</Stream>

[root@localhost ffmpeg] # ./ffserver -f ./ffserver.conf  #运行服务器


开始推流
/home/ffmpeg/ffmpeg -re -i /home/03_Tools/03_各种分辨率的各种码流_测试视频/01_Nigel_Stanford_Cymatics/1280x720/Nigel_Stanford_Cymatics_720_4Mbits.mp4  -c copy  http://172.16.66.22:8080/feed1.ffm


RTSP 拉流

rtsp://IP_Address:554/test.mpeg4

猜你喜欢

转载自my.oschina.net/u/3776585/blog/1631847