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