红色5 - 通过rtmpt问题连接

时间:2011-12-13 10:02:37

标签: streaming red5 rtmp

我有一台红色的5台服务器并使用常规rtmpt成功运行。 我还根据link

进行了必要的更改

通过RTMP查看典型工作连接的日志到red5。我看到以下内容。

==> /var/log/red5/error.log <==
2011-12-12 10:48:41,261 [http-8088-exec-2] ERROR o.r.server.net.rtmp.RTMPHandshake - Unable to validate client

==> /var/log/red5/red5.log <==
2011-12-12 10:48:41,261 [http-8088-exec-2] ERROR o.r.server.net.rtmp.RTMPHandshake - Unable to validate client
2011-12-12 10:48:41,484 [http-8088-exec-3] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action connect
2011-12-12 10:48:41,492 [http-8088-exec-3] INFO  o.red5.server.net.rtmp.RTMPHandler - Connecting to: [WebScope@df8b14 Depth = 1, Path = '/default', Name = 'splitstream']
2011-12-12 10:48:41,731 [http-8088-exec-4] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action authorize1
2011-12-12 10:48:41,971 [http-8088-exec-5] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action authorize2
2011-12-12 10:48:42,200 [http-8088-exec-1] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action releaseStream
2011-12-12 10:48:42,200 [http-8088-exec-1] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action FCPublish
2011-12-12 10:48:42,202 [http-8088-exec-1] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action createStream
2011-12-12 10:48:42,432 [http-8088-exec-2] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action publish
2011-12-12 10:48:42,440 [http-8088-exec-2] INFO  o.r.s.stream.ClientBroadcastStream - Provider connect
2011-12-12 10:48:42,441 [http-8088-exec-2] INFO  o.r.s.stream.ClientBroadcastStream - Stream start
2011-12-12 10:48:42,442 [http-8088-exec-2] INFO  o.r.s.stream.ClientBroadcastStream - Provider connect
2011-12-12 10:48:43,118 [http-8088-exec-5] INFO  o.r.s.stream.codec.ScreenVideo2 - Allocating memory for 510 compressed blocks

当我切换到RTMPT时,我似乎没有看到提供商连接,流启动消息 - 当然我的流永远不会启动。

==> /var/log/red5/error.log <==
2011-12-12 10:57:52,177 [http-8088-exec-2] ERROR o.r.server.net.rtmp.RTMPHandshake - Unable to validate client

==> /var/log/red5/red5.log <==
2011-12-12 10:57:52,177 [http-8088-exec-2] ERROR o.r.server.net.rtmp.RTMPHandshake - Unable to validate client
2011-12-12 10:57:52,405 [http-8088-exec-3] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action connect
2011-12-12 10:57:52,411 [http-8088-exec-3] INFO  o.red5.server.net.rtmp.RTMPHandler - Connecting to: [WebScope@db38a4 Depth = 1, Path = '/default', Name = 'splitstream']
2011-12-12 10:57:52,613 [http-8088-exec-4] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action authorize1
2011-12-12 10:57:52,847 [http-8088-exec-5] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action authorize2
2011-12-12 10:57:53,079 [http-8088-exec-1] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action releaseStream
2011-12-12 10:57:53,079 [http-8088-exec-1] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action FCPublish
2011-12-12 10:57:53,079 [http-8088-exec-1] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action createStream
2011-12-12 10:57:53,316 [http-8088-exec-2] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action publish

我在日志中也注意到了这一点

2011-12-13 04:54:00,980 [http-8088-exec-2] INFO  o.red5.server.net.rtmp.RTMPHandler - Scope :80/splitstream not found on dev-100.host.com:80:80

==> /var/log/red5/error.log <==
2011-12-13 04:54:05,105 [Red5_Scheduler_Worker-1] WARN  o.r.server.net.rtmp.RTMPConnection - Closing RTMPTConnection from 127.0.0.1 : 47814 to localhost.localdomain (in: 3626 out 3265 ), with id 6 due to long handshake

==> /var/log/red5/red5.log <==
2011-12-13 04:54:05,105 [Red5_Scheduler_Worker-1] WARN  o.r.server.net.rtmp.RTMPConnection - Closing RTMPTConnection from 127.0.0.1 : 47814 to localhost.localdomain (in: 3626 out 3265 ), with id 6 due to long handshake
2011-12-13 04:54:06,402 [http-8088-exec-1] INFO  o.r.s.n.r.codec.RTMPProtocolDecoder - Action connect
2011-12-13 04:54:06,403 [http-8088-exec-1] INFO  o.red5.server.net.rtmp.RTMPHandler - Connecting to: [WebScope@19c6163 Depth = 1, Path = '/default', Name = 'splitstream']

任何想法

1 个答案:

答案 0 :(得分:2)

更改rtmpt.max_inactivity文件中red5.properties的值。同时更改maxHandshakeTimeout文件的rtmpt部分中red5-core.xml的值,然后重试。