Failing to have multiple RTMPT connections to crtmpserver

185 views
Skip to first unread message

Ran Berenfeld

unread,
Oct 12, 2016, 5:13:56 AM10/12/16
to C++ RTMP Server
Hi all

we're using CRTMPServer to share our video feeds. The video feed  to the crtmpserver comes with ffmpeg like this :

ffmpeg -y -loglevel info -i /tmp/sdp_preview_instance_1_stream_0_0 -c:v copy -b:v 100k -c:a libvo_aacenc -b:a 96k -ar 16000 -f flv -metadata streamName=xyz tcp://localhost:6666

And then the browser can connect with RTMPT to the machine, for example using 
adove flash rtmp player  at 

server :


stream :

xyz

everything is working when I connect the first RTMPT browser client.. But if I connect more than one stream both of them hangs up 

  and I get these  logs in /var/log/crtmpserver/main.log

1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/rtmp/rtmpprotocolserializer.cpp:144:Deserialize:Invalid message type: 0 Size: 0
Published: 0
Consumed: 0
Address: (nil)

1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:270:InboundMessageAvailable:Unable to deserialize message
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/rtmp/basertmpprotocol.cpp:799:ProcessBytes:Unable to send rtmp message to application
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/rtmp/inboundhttp4rtmp.cpp:216:ProcessSend:Unable to call upper protocol
1476094340:6:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/application/baseclientapplication.cpp:170:UnRegisterProtocol:Protocol CTCP(16) <-> TCP(499) <-> IHTT(500) <-> [IH4R(501)] <-> IR(502) unregistered from application: appselector
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/http/basehttpprotocol.cpp:460:HandleFixedLengthContent:Unable to call the next protocol in stack
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/http/basehttpprotocol.cpp:169:SignalInputData:Unable to handle fixed length content
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/netio/epoll/tcpcarrier.cpp:88:OnEvent:Unable to signal data available
1476094340:4:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/netio/epoll/iohandlermanager.cpp:107:UnRegisterIOHandler:Handlers count changed: 12->11 IOHT_TCP_CARRIER
1476094340:6:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/protocolmanager.cpp:44:EnqueueForDelete:Enqueue for delete for protocol [IR(502)]
1476094340:3:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/application/baseclientapplication.cpp:192:SignalStreamUnRegistered:Stream ONR4R(207) with name `ranb` unregistered from application `flvplayback` from protocol IR(502)
1476094340:6:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/application/baseclientapplication.cpp:170:UnRegisterProtocol:Protocol [IR(502)] unregistered from application: flvplayback
1476094340:3:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/netio/epoll/tcpacceptor.cpp:133:OnConnectionAvailable:Client connected: 10.10.10.191:46784 -> 0.0.0.0:8080
1476094340:4:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/netio/epoll/iohandlermanager.cpp:98:RegisterIOHandler:Handlers count changed: 11->12 IOHT_TCP_CARRIER
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/rtmp/inboundhttp4rtmp.cpp:211:ProcessSend:Unable to bind protocol
1476094340:6:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/protocolmanager.cpp:44:EnqueueForDelete:Enqueue for delete for protocol CTCP(16) <-> TCP(503) <-> IHTT(504) <-> [IH4R(505)]
1476094340:6:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/application/baseclientapplication.cpp:170:UnRegisterProtocol:Protocol CTCP(16) <-> TCP(503) <-> IHTT(504) <-> [IH4R(505)] unregistered from application: appselector
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/http/basehttpprotocol.cpp:460:HandleFixedLengthContent:Unable to call the next protocol in stack
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/http/basehttpprotocol.cpp:169:SignalInputData:Unable to handle fixed length content
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/netio/epoll/tcpcarrier.cpp:88:OnEvent:Unable to signal data available
1476094340:4:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/netio/epoll/iohandlermanager.cpp:107:UnRegisterIOHandler:Handlers count changed: 12->11 IOHT_TCP_CARRIER
1476094340:6:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/protocolmanager.cpp:44:EnqueueForDelete:Enqueue for delete for protocol [IH4R(505)]
1476094340:3:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/netio/epoll/tcpacceptor.cpp:133:OnConnectionAvailable:Client connected: 10.10.10.191:46785 -> 0.0.0.0:8080
1476094340:4:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/netio/epoll/iohandlermanager.cpp:98:RegisterIOHandler:Handlers count changed: 11->12 IOHT_TCP_CARRIER
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/rtmp/inboundhttp4rtmp.cpp:194:ProcessIdle:Unable to bind protocol
1476094340:6:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/protocolmanager.cpp:44:EnqueueForDelete:Enqueue for delete for protocol CTCP(16) <-> TCP(506) <-> IHTT(507) <-> [IH4R(508)]
1476094340:6:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/application/baseclientapplication.cpp:170:UnRegisterProtocol:Protocol CTCP(16) <-> TCP(506) <-> IHTT(507) <-> [IH4R(508)] unregistered from application: appselector
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/http/basehttpprotocol.cpp:460:HandleFixedLengthContent:Unable to call the next protocol in stack
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/http/basehttpprotocol.cpp:169:SignalInputData:Unable to handle fixed length content
1476094340:0:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/netio/epoll/tcpcarrier.cpp:88:OnEvent:Unable to signal data available
1476094340:4:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/netio/epoll/iohandlermanager.cpp:107:UnRegisterIOHandler:Handlers count changed: 12->11 IOHT_TCP_CARRIER
1476094340:6:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/thelib/src/protocols/protocolmanager.cpp:44:EnqueueForDelete:Enqueue for delete for protocol [IH4R(508)]


Any idea what can be causing it ? why isn't it possible to connect more that 1 rtmpt client ?

Reply all
Reply to author
Forward
0 new messages