0
我在使用ffserver进行流媒体播放时遇到问题。在我启动ffserver和桌面捕获后,一切似乎都正常。HTTP Live Stream在一段时间后停止播放
然后我打开浏览器并访问输出(http://localhost:8090/test1.mpeg)。它 播放罚款6-7秒,然后停止,我不得不刷新页面,让它再次工作。有谁知道为什么会发生这种情况,我怎样才能纠正它?
这里是我的ffserver.conf
HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 40000
CustomLog -
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 10000K
ACL allow 127.0.0.1
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Feed>
<Stream test1.mpeg>
Feed feed1.ffm
Format mpeg
AudioBitRate 32
AudioChannels 1
AudioSampleRate 44100
VideoBitRate 300
VideoFrameRate 30
VideoSize 1280x1024
VideoCodec mpeg1video
AudioCodec libvorbis
NoAudio
StartSendOnKey
</Stream>
我的桌面捕捉:
ffmpeg -f x11grab -r 40 -s 800x600 -framerate 50 -i :0.0+4,529 -map 0 -codec:v mpeg1video -codec:a libvorbis http://localhost:8090/feed1.ffm