Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Librtmp can't publish to MonaServer #77

Open
liuruosina opened this issue May 27, 2018 · 4 comments
Open

Librtmp can't publish to MonaServer #77

liuruosina opened this issue May 27, 2018 · 4 comments

Comments

@liuruosina
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link

aequalb commented Nov 5, 2020

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants