我在 Linux Mint14 上使用 JW Player 和 ffmpeg 运行 Red5 1.0.0 RC1
即使在我的machine/localhost
.
我执行以下步骤:
FFmpeg:
ffmpeg -i 'http://localhost:port' rtmp://localhost/oflaDemo/live.flv
Red5:
TCPnoDelay
设置为真。JW Player:缓冲区长度设置为 0。也尝试了 2 和 3。
:
<script type='text/javascript'>
jwplayer('mediaspace').setup({
'flashplayer': 'player.swf',
'file': 'live',
'type': 'rtmp',
'streamer': 'rtmp://localhost/oflaDemo',
'controlbar': 'none',
'autostart': 'true',
'bufferlength': '3',
'width': '640',
'height': '380'
});
</script>
延迟在 7-10 秒之间!这一切都发生在本地主机上,所以带宽不应该是问题。