Resource icon

All Versions How to set up your own private RTMFP server using MonaServer

Valwin

New Member

ChrisTufnell

New Member
i have no idea Mona is working but no idea what to do with JW

You should see in the MonaServer window if it's working. Bunch of text will rapidly start appearing and you'll also see "1 Client connected" and increase depending on how many clients are added.

As for JWplayer not tried it my self. Only been using Twitch currently. I'll look into JW when i can.
 

ChrisTufnell

New Member
Hi Chris,

And for duplicating the setup I don't see any problem so let's go! :)

@thomasJ Hi Thomas, managed to get everything setup...I have the two PCs both streaming to the third machine. However....how do i distinguish between the two on the third with OBS. My initially thought was it would be done by stream keys but this doesn't seem to be the case. eg. rtmp://0.0.0.1:1935:PCONE and rtmp://0.0.0.1:1935:PCTWO


Just putting this here incase anyone else has problem, but one strange variable was Chrome being a god damn resource hog. If you finding things to be a little less smooth then you think they ought to be, try closing chrome.
 

thasmog

New Member
Can't get it working.


Code:
11/02 13:50:47.0  NOTE    Server(5348)    Mona/Protocols.h[102]  RTMP server started on 0.0.0.0:1935 (TCP)
11/02 13:50:47.0  NOTE    Server(5348)    Mona/Protocols.h[102]  HTTP server started on 0.0.0.0:80 (TCP)
11/02 13:50:47.0  ERROR    Server(5348)    Mona/Protocols.h[94]  RTSP server, Permission denied (address=0.0.0.0:554, reuseAddress=true, backlog=64)
11/02 13:50:55.0  ERROR    Server(5348)    sources\FlashMainStream.cpp[160]  Method 'releaseStream' not found on application
11/02 13:50:55.0  ERROR    Server(5348)    sources\FlashMainStream.cpp[160]  Method 'FCPublish' not found on application
11/02 13:50:55.0  INFO    Server(5348)    sources\Publication.cpp[87]  Publication alan started
11/02 13:50:55.0  WARN    Server(5348)    sources\AMFWriter.cpp[228]  Mixed object in AMF0 are not supported, switch to AMF3
11/02 13:50:55.0  INFO    Server(5348)    sources\Publication.cpp[253]  Write alan publication properties
11/02 13:50:55.0  ERROR    Server(5348)    sources\FlashMainStream.cpp[160]  Method 'releaseStream' not found on application
11/02 13:50:55.0  ERROR    Server(5348)    sources\FlashMainStream.cpp[160]  Method 'FCPublish' not found on application
11/02 13:50:55.0  INFO    Server(5348)    sources\Publication.cpp[87]  Publication susa started
11/02 13:50:55.0  WARN    Server(5348)    sources\AMFWriter.cpp[228]  Mixed object in AMF0 are not supported, switch to AMF3
11/02 13:50:55.0  INFO    Server(5348)    sources\Publication.cpp[253]  Write susa publication properties

I'm streaming with two obs both using stream key.

When i try connect with rtmp://(IP)/alan example i get this
Code:
ERROR    Server(5348)    sources\MonaServer.cpp[483]  Application /alan doesn't exist

IF i try to use RTMFP i get nothing.

Im using latest OBS MP

When i add folder alan into www dir i get

Code:
11/02 13:55:41.2  ERROR    Server(5348)    sources\FlashMainStream.cpp[160]  Method 'getStreamLength' not found on application /alan
11/02 13:55:41.2  INFO    Server(5348)    sources\FlashStream.cpp[112]  setBufferTime 3000ms on stream 1
11/02 13:55:42.8  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 59673005 bytes (_unackBytes: 131216)
11/02 13:55:42.9  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 97802561 bytes (_unackBytes: 131393)
11/02 13:55:43.2  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 59805076 bytes (_unackBytes: 132071)
11/02 13:55:43.2  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 59936180 bytes (_unackBytes: 131104)
11/02 13:55:43.2  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 97936202 bytes (_unackBytes: 133641)
11/02 13:55:43.2  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 98067306 bytes (_unackBytes: 131104)
11/02 13:55:43.5  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 98199589 bytes (_unackBytes: 132283)
11/02 13:55:44.3  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 60070013 bytes (_unackBytes: 133833)
11/02 13:55:52.5  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 98331813 bytes (_unackBytes: 132224)
11/02 13:55:52.5  INFO    Server(5348)    sources\Server.cpp[144]  3 clients

And when i go to http://raspi.monaserver.ovh/MonaClients/VideoPlayer/ and use rtmfp://127.0.0.1/alan or RTMP
Code:
11/02 13:57:10.2  INFO    Server(5348)    sources\Listener.cpp[223]  Properties sent to one listener of alan publication
11/02 13:57:10.2  INFO    Server(5348)    sources\Listener.cpp[231]  AAC codec infos sent to one listener of alan publication
11/02 13:57:10.4  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 77787771 bytes (_unackBytes: 131210)
11/02 13:57:10.6  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 127904216 bytes (_unackBytes: 131145)
11/02 13:57:11.2  NOTE    Server(5348)    RTMP\RTMPSession.cpp[279]  Sending ACK : 77921445 bytes (_unackBytes: 133674)
11/02 13:57:11.2  INFO    Server(5348)    sources\Listener.cpp[173]  H264 codec infos sent to one listener of alan publication

i get picture.. So is there problem with obs ?
 

zedd

New Member
can someone explain what i need to do here for the windows install?

I'm lost

  • Then set the DLUAJIT_ENABLE_LUA52COMPAT option :
    • On Linux just search DLUAJIT_ENABLE_LUA52COMPAT in src/Makefile and uncomment the line
    • On Windows search the line beginning with @Set LJCOMPILE=cl /nologo /c /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE in src/msvcbuild.bat. Then add the/DLUAJIT_ENABLE_LUA52COMPAT option
  • Finally you can compile luajit (make or src/msvcbuild.bat)
 

thomasJ

Member
thasmog>
You should :
- Only set rtmp://127.0.0.1/ in the url field of OBS and "alan" in the key field
- Then connect to http://raspi.monaserver.ovh/MonaClients/VideoPlayer/?fit&url=rtmfp://127.0.0.1/alan

That's all!

zedd>
For compiling luajit on Windows just change the following line :
"@Set LJCOMPILE=cl /nologo /c /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE"
with
"@Set LJCOMPILE=cl /nologo /c /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE /DLUAJIT_ENABLE_LUA52COMPAT"

Contact us on the google group if you need more help.

Regards
 

Rober

New Member
Hi, I'm getting these 2 messages on MonaServer when I try to watch my own stream on VLC, it shows nothing but doesn't give me any error. Does anyone know what is it? How can I fix this?. Thanks in advance.

1º setBufferTime 3000ms on stream 1

2º getStreamLength not found on application
 

thomasJ

Member
Hi Rober,

These messages are normal, you can ignore them.

How do you connect with vlc? Which url do you use? Notice that VLC needs a directory (application) to be created in the root directory of MonaServer (www).

For example with url rtmp://127.0.0.1/test/stream you should have a directory called "test" in the "www" directory of MonaServer.

Otherwise, which version of Mona do you use? And how do you publish? And finally does it work with our player?

Regards
 

Toshii

New Member
Going further

With MonaServer it's already possible to develop some cool applications like :
- online remote control,
- low cost p2p broadcasting with the use of the Netgroup feature of Flash.
Hello Thomas,

Is it possible to make a point to point game streamingsession to one single person over the internet, plus allowing this person to interact(remote control) with the game?

For example: I want to play a game like Mass Effect and the other person shall watch me play and take control over the ingame conversations (mouse and/or keyboard control).

Would that be somehow possible with OBS and MonaServer?
 
Last edited:

thomasJ

Member
Hi Toshii,

What you want needs very hard work. There was an existing project of remote control using MonaServer and OBS called SWYO, sadly their crowd funding campaign failed so they haven't finalized the solution. If you are ready to invest time or money you can contact them for further information :)

Regards
 

tmitch

New Member
I have Mona running on its own server and I want to it to capture two obs feeds (one is local, one is remote). Both are able to connect to the server successfully and I can view them via VLC, but not at the same time. One can connect and I can view it, but the other I cannot, unless the first one stops streaming. Is this possible to do?
 

thomasJ

Member
Hi tmitch

I think that you are using the same stream name, try to use different names (stream1, stream2) and it should works.

Regards
 

RADRaze2KX

Member
Nevermind i found it's not monaserver, it's the clients I've been using. Can you recommend a good RTMP Player (windows-based) that does not add a large buffer? I am trying to reduce latency down as close to zero as possible. I have found a program called "vMix" that captures it at 1 second, but it's not intuitive to use, nor is it easy to capture in OBS.

kejYZbd.png
 
Last edited:

RADRaze2KX

Member
The issue with capturing w/ ffmpeg is that adding the video into OBS adds 3-6 seconds of buffer to the video. I would need to capture it with a player. I'll try the flash player as you suggested.
 

thomasJ

Member
This should work,

- What publisher do you use on your phone? (I thought you were using ffmpeg on PC)
- Do you have some log from VideoPlayer? And from MonaServer?
 

thomasJ

Member
Hi,

Can you send me a mail with your logging information (log from VideoPlayer and MonaServer)? You can find my mail here.
For a best debugging you should run MonaServer with the maximum level of log + dump enabled :
./MonaServer --log=8 --dump
It is possible with some softwares that the RTMP protocol is not perfectly implemented, we should find a way to debug this.

Regards
 
Top