MonaSolutions / MonaServer

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

Librtmp can't publish to MonaServer #77

Open liuruosina opened 6 years ago

liuruosina commented 6 years ago

When I use librtmp to publish a flv file to MonaServer, it allerts RTMP session 1 indicates a non-existent 768 FlashStream monaserver then the publishment stopped.

thomasjammet commented 6 years ago

Hi

Can you send us the command you use for publishing? If you can try to publish with ffmpeg :

ffmpeg -i inputFile.flv -c copy -f flv rtmp://localhost/live/streamName

Regards

liuruosina commented 6 years ago

ffmpeg is ok, but I am writing a tool to use librtmp to push flv file to the Mona Server. Now I am not at the side of pc, I will post the detail info later.

aequalb commented 4 years ago

I got the same problem, while running the command ffmpeg -i input.mp4 -c copy -f flv rtmp://localhost/live/streamName

MonaServer outputs : Mona/Protocols.h[102] RTMFP server started on 0.0.0.0:1935 (UDP) Mona/Protocols.h[102] RTMP server started on 0.0.0.0:1935 (TCP) Mona/Protocols.h[102] HTTP server started on 0.0.0.0:80 (TCP) Mona/Protocols.h[94] RTSP server, Permission denied (address=0.0.0.0:554, reuseAddress=true, backlog=64) sources\FlashMainStream.cpp[160] Method client 'releaseStream' not found in application /live sources\FlashMainStream.cpp[160] Method client 'FCPublish' not found in application /live sources\Publication.cpp[87] Publication stream started sources\AMFWriter.cpp[228] Mixed object in AMF0 are not supported, switch to AMF3 sources\Publication.cpp[253] Write stream publication properties sources\Server.cpp[144] 1 clients sources\Publication.cpp[98] Publication stream stopped sources\Server.cpp[144] 0 clients sources\Server.cpp[136] Server stopped

while ffplay outputs : logffplay.txt

Also, when streaming from OBS 26.0.2 (Windows 8.1), there are warnings like this : sources\FlashMainStream.cpp[160] Method client 'FCUnpublish' not found in application /live Problems in the flash player?

thomasjammet commented 3 years ago

From your log file it seems to work correctly. Can you try using -re option of FFmpeg to simulate real time? It should like like this : ffmpeg -i input.mp4 -c copy -f flv rtmp://localhost/live/streamName

Anyway those warnings are correct, it happens always with librtmp trying to call dummy functions. You can ignore those warns.