MonaSolutions / MonaServer

A lightweight RTMFP, RTMP, WebSocket and HTTP server!
http://monaserver.ovh
GNU General Public License v3.0
707 stars 212 forks source link

Cannot play stream with streamkey #85

Closed Inglebard closed 4 years ago

Inglebard commented 4 years ago

Hi,

I use the docker image of MonaServer to broadcast a stream. I use OBS as broadcast tool an VLC as player.

I don't have issue to configure OBS. I can set for example rtmp://[ip]:[port]/ or rtmp://[ip]:[port]/[streamkey]

However with vlc I can play rtmp://[ip]:[port]/ but rtmp://[ip]:[port]/[streamkey] don't work.

What am I doing wrong ?

12/02 08:11:41.5  DEBUG Server(6)       sources/Session.cpp[58]  peer.id 74bddf63405ce55db62e30bdad080d31b5adcc6a96eab3980835aebf4b9a4017
12/02 08:11:41.5  NOTE  Server(6)       Mona/Protocols.h[102]  RTMFP server started on 0.0.0.0:1935 (UDP)
12/02 08:11:41.5  NOTE  Server(6)       Mona/Protocols.h[102]  RTMP server started on 0.0.0.0:1935 (TCP)
12/02 08:11:41.5  NOTE  Server(6)       Mona/Protocols.h[102]  HTTP server started on 0.0.0.0:80 (TCP)
12/02 08:11:41.5  NOTE  Server(6)       Mona/Protocols.h[102]  RTSP server started on 0.0.0.0:554 (TCP)
12/02 08:14:34.6  DEBUG Server(6)       sources/Session.cpp[58]  peer.id 199ad31badc3102333e193c2c64c5944f855163f67aec116672596b34486548f
12/02 08:14:34.6  DEBUG Server(6)       sources/FlashStream.cpp[29]  FlashStream 0 created
12/02 08:14:34.6  DEBUG Server(6)       Mona/Sessions.h[106]  Session RTMP session 1 created
12/02 08:14:34.6  DEBUG Server(6)       sources/Peer.cpp[209]  Client 10.255.0.2:48702 connection
12/02 08:14:34.6  ERROR Server(6)       sources/FlashMainStream.cpp[160]  Method client 'releaseStream' not found in application
12/02 08:14:34.7  ERROR Server(6)       sources/FlashMainStream.cpp[160]  Method client 'FCPublish' not found in application
12/02 08:14:34.7  DEBUG Server(6)       sources/FlashStream.cpp[29]  FlashStream 1 created
12/02 08:14:34.7  DEBUG Server(6)       sources/Publication.cpp[35]  New publication teststream
12/02 08:14:34.7  INFO  Server(6)       sources/Publication.cpp[87]  Publication teststream started
12/02 08:14:34.7  WARN  Server(6)       sources/AMFWriter.cpp[228]  Mixed object in AMF0 are not supported, switch to AMF3
12/02 08:14:34.7  INFO  Server(6)       sources/Publication.cpp[253]  Write teststream publication properties
12/02 08:14:35.0  DEBUG Server(6)       sources/Publication.cpp[155]  AAC codec infos received on publication teststream
12/02 08:14:35.0  DEBUG Server(6)       sources/Publication.cpp[181]  H264 codec infos received on publication teststream
12/02 08:14:35.5  INFO  Server(6)       sources/Server.cpp[144]  1 clients
12/02 08:14:35.5  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 132783 bytes (_unackBytes: 132783)
12/02 08:14:35.9  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 266198 bytes (_unackBytes: 133415)
12/02 08:14:36.3  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 400087 bytes (_unackBytes: 133889)
12/02 08:14:36.7  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 533498 bytes (_unackBytes: 133411)
12/02 08:14:37.1  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 666914 bytes (_unackBytes: 133416)
... more bytes
12/02 08:15:20.2  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 15048507 bytes (_unackBytes: 133891)
12/02 08:15:20.6  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 15181924 bytes (_unackBytes: 133417)
12/02 08:15:20.9  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 15313278 bytes (_unackBytes: 131354)
12/02 08:15:21.3  DEBUG Server(6)       sources/Session.cpp[58]  peer.id 6724b118c535befc6dbf4cbabf1bafb0fc42b920edfea12bb48c6493788ecd5f
12/02 08:15:21.3  DEBUG Server(6)       sources/FlashStream.cpp[29]  FlashStream 0 created
12/02 08:15:21.3  DEBUG Server(6)       Mona/Sessions.h[106]  Session RTMP session 2 created
12/02 08:15:21.4  ERROR Server(6)       sources/MonaServer.cpp[484]  Application /teststream doesn't exist
12/02 08:15:21.4  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 15444636 bytes (_unackBytes: 131358)
12/02 08:15:21.5  DEBUG Server(6)       sources/Sessions.cpp[115]  Session RTMP session 2 died
12/02 08:15:21.5  DEBUG Server(6)       sources/FlashStream.cpp[34]  FlashStream 0 deleted
12/02 08:15:27.0  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 17312746 bytes (_unackBytes: 133891)
12/02 08:15:33.4  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 19444460 bytes (_unackBytes: 134788)
12/02 08:15:40.6  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 21846919 bytes (_unackBytes: 133890)
12/02 08:15:41.0  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 21980332 bytes (_unackBytes: 133413)
12/02 08:15:41.4  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 22113748 bytes (_unackBytes: 133416)
12/02 08:15:41.7  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 22246934 bytes (_unackBytes: 133186)
12/02 08:15:42.2  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 22381143 bytes (_unackBytes: 134209)
12/02 08:15:42.6  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 22514458 bytes (_unackBytes: 133315)
12/02 08:15:42.8  DEBUG Server(6)       sources/Session.cpp[58]  peer.id 85339b680cd8d3d734c4cd5001a026df9acf9736e6462bb7b52d120ff4882b60
12/02 08:15:42.8  DEBUG Server(6)       sources/FlashStream.cpp[29]  FlashStream 0 created
12/02 08:15:42.8  DEBUG Server(6)       Mona/Sessions.h[106]  Session RTMP session 2 created
12/02 08:15:42.8  ERROR Server(6)       sources/MonaServer.cpp[484]  Application /teststream doesn't exist
12/02 08:15:43.0  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 22647871 bytes (_unackBytes: 133413)
12/02 08:15:43.4  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 22781287 bytes (_unackBytes: 133416)
12/02 08:15:43.5  DEBUG Server(6)       sources/Sessions.cpp[115]  Session RTMP session 2 died
12/02 08:15:43.5  DEBUG Server(6)       sources/FlashStream.cpp[34]  FlashStream 0 deleted
12/02 08:15:43.8  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 22914700 bytes (_unackBytes: 133413)
12/02 08:15:44.2  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 23048584 bytes (_unackBytes: 133884)
12/02 08:15:44.6  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 23181994 bytes (_unackBytes: 133410)
12/02 08:15:45.0  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 23315411 bytes (_unackBytes: 133417)
12/02 08:15:45.4  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 23448828 bytes (_unackBytes: 133417)
12/02 08:15:45.8  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 23582719 bytes (_unackBytes: 133891)
12/02 08:15:46.2  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 23716128 bytes (_unackBytes: 133409)
12/02 08:15:46.6  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 23849544 bytes (_unackBytes: 133416)
12/02 08:15:46.8  DEBUG Server(6)       sources/Session.cpp[58]  peer.id 15d0ccf5832268dd32e4a67e7c3542bc2aa1026c1eaded45192f1c6bcf773cec
12/02 08:15:46.8  DEBUG Server(6)       sources/FlashStream.cpp[29]  FlashStream 0 created
12/02 08:15:46.8  DEBUG Server(6)       Mona/Sessions.h[106]  Session RTMP session 2 created
12/02 08:15:46.8  ERROR Server(6)       sources/MonaServer.cpp[484]  Application /teststream doesn't exist
12/02 08:15:46.9  DEBUG Server(6)       RTMP/RTMPSession.cpp[279]  Sending ACK : 23984098 bytes 
Inglebard commented 4 years ago

Just notice I need to create an empty folder under www. Works as expected now.

example : www/live rtmp://[ip]:[port]/live/[steamkey]

thomasjammet commented 4 years ago

Hi @Inglebard !

Yes it is a limitation of some RTMP clients app : an empty path does not work. Also you can try MonaServer2, it's the last version of MonaServer with tons of new features :)

Inglebard commented 4 years ago

Hi @thomasjammet , Ok, thanks for the comment. I will try to build a Monaserver2 docker image, It should be pretty similar to the actual dockerfile I think.

Inglebard commented 4 years ago

Just for note : https://github.com/Inglebard/dockerfiles/tree/master/monaserver2 https://hub.docker.com/repository/docker/inglebard/monaserver2