【求助】ffserver发送rtsp,用ffplay播放错误
本帖最后由 fayfive 于 2017-1-22 13:01 编辑我在linux里编译好ffmpeg所有问题件,用ffmpeg做服务器,在ffserver.conf里面加上<Stream test.mpg>
Feed feed1.ffm
VideoFrameRate 30
VideoSize 960x540
VideoBitRate 100
VideoGopSize 30
NoAudio
PreRoll 10
StartSendOnKey
MaxTime 100
</Stream>
<Stream test.h264>
Feed feed1.ffm
Fomate rtp
#VideoCodec libx264
VideoFrameRate 25
VideoSize 320*288
VideoBitRate 300
VideoGopSize 30
AVPresetVideo default
PixelFormat yuv420p
AVOptionVideo me_range 4
AVOptionVideo qdiff 4
AVOptionVideo qmin 20
AVOptionVideo qmax 500
NoAudio
</Stream>
用ffplay播放
./ffplay http://localhost:9999/test.mpg
./ffplay rtsp://localhost:9990/test.h264
发现http播放没有问题,但是rtsp播放报错
av_interleaved_write_frame(): Connection reset by peer
Error writing trailer of http://localhost:9999/feed1.ffm: Connection reset by peer
+Segmentation fault (core dumped) ./ffserver -f tests/ffserver.conf
ffserver运行命令是
./ffserver -f tests/ffserver.conf &./ffmpeg -i /home/alfred/4in1.h264 http://localhost:9999/feed1.ffm
个人感觉是ffserver有问题,一连接就断
希望高手回答一下
ffserver基本弃用,可以考虑更换live555之类的rtsp服务器 孙悟空 发表于 2017-1-23 11:06
ffserver基本弃用,可以考虑更换live555之类的rtsp服务器
好的,谢谢回答,是不是live555 效率高点? fayfive 发表于 2017-1-23 13:02
好的,谢谢回答,是不是live555 效率高点?
改的话麻烦一些,用的话,好用一些 fayfive 发表于 2017-1-23 13:02
好的,谢谢回答,是不是live555 效率高点?
改的话麻烦一些,用的话,好用一些
不过可以肯定的是比ffserver要稳定很多,ffserver最近比较有争议 孙悟空 发表于 2017-1-23 13:23
改的话麻烦一些,用的话,好用一些
不过可以肯定的是比ffserver要稳定很多,ffserver最近比较有争议 ...
如果用rtsp,用live555是同时实现服务端和客户端还是用live555实现服务端,ffmpeg实现客户端? fayfive 发表于 2017-1-23 16:31
如果用rtsp,用live555是同时实现服务端和客户端还是用live555实现服务端,ffmpeg实现客户端? ...
ffmpeg做客户端可以,做服务端的话,最好自己实现,ffmpeg留有接口
页:
[1]