ffmpeg流rc缓冲区下溢

时间:2015-08-05 08:35:35

标签: ffmpeg stream codec ffserver

目前我正在使用开源工具ffmpeg / ffserver设置屏幕共享平台。在分享开始时一切都很好。大约1 1/2分钟后,我在输出中得到以下异常。

[flv @ 0x3a47aa0] rc buffer underflow [flv @ 0x3a47aa0] max bitrate possibly too small or try trellis with large lmax or increase qmax

我试图设定一个非常高的lmax& qmax但是这并没有改变任何东西。另外我还试图提高比特率,缓冲区大小和比特率。

我在ffmpeg中使用以下命令:

ffmpeg -f x11grab -s 1920x1080 -r 20 -i :0.0+1680,0 "http://localserver.de:8080/input1.ffm"

ffserver的配置文件是:

HTTPPort 8080
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 50000
CustomLog -

<Feed input1.ffm>
  File /var/ffserver/input1.ffm
  FileMaxSize 20M
  ACL allow *FROM IP*  *TO IP* 
</Feed>

<Stream screen1.swf>
  Feed input1.ffm
  Format swf
  VideoCodec flv
  VideoFrameRate 20
  VideoBufferSize 8000
  VideoBitRate 250
  VideoQMin 1
  VideoQMax 5
  VideoSize 640x400
  PreRoll 0
  StartSendOnKey
  NoAudio
</Stream>

其他流媒体格式也是可能的,但我不知道哪些是可能的直播。

0 个答案:

没有答案