stats

Problems with Unreal Media Server

stats

Postby shaggyspfld » Thu Sep 04, 2014 9:12 am

Not sure if this is supported or if someone has already done work, but here is a request.

I know in Helix server it kept stats per stream such as max simultaneous viewers/max bandwidth output, given that the unreal server has the media usage summary tab would it be possible through the api or is it already planned to introduce something similar. My need comes from the fact that while I'm broadcasting an event I don't always have time to stare at the media summary tab and mentally maintain a list of what the max number is.

Now I know that sawmill might be able to get me close, but this seems like a fairly useful feature which could/should be able to be done without analyzing log files after the fact.
shaggyspfld
 
Posts: 0
Joined: Tue Jul 09, 2013 10:06 am

Re: stats

Postby admin » Thu Sep 04, 2014 1:19 pm

Well, we don't really plan to add any more logging than we have now.
You can get all the statistics from a log analyzer like sawmill.

Yes, the usage summary is available through the API.
Our SDK has a ServerStats COM object that can give you instant statistics for the usage.
admin
Site Admin
 
Posts: 855
Joined: Fri Aug 21, 2009 10:13 am

Re: stats

Postby Wolfgan » Thu Oct 05, 2017 11:42 am

I was trying to troubleshoot an issue of the server rejecting a connection for a rtmp rebroadcast stream being pushed, but I couldn't find any reference to the UMserver log files location in the FAQ or this forum.
Could anyone point me to the logs and confirm if there's any setting somewhere to make them verbose?
Thx, Wolf
Wolfgan
 
Posts: 0
Joined: Sat Jan 15, 2011 7:14 am

Re: stats

Postby admin » Thu Oct 05, 2017 1:35 pm

Wolfgan,

Unreal Media Server logs are user logs, located in the
C:\Program Files\UnrealStreaming\UMediaServer\LogFiles

so these logs will not help you to troubleshoot RTMP publishing issue.

If you are doing RTMP publishing exactly per FAQ:
http://umediaserver.net/umediaserver/faq.html
then you should be OK. Make sure port 5130 is open on the server computer.

If you cannot solve it, write back here with details - what is your live encoder and how you are configuring it.
admin
Site Admin
 
Posts: 855
Joined: Fri Aug 21, 2009 10:13 am

Re: stats

Postby Wolfgan » Tue Oct 10, 2017 2:56 pm

[quote="admin"]Wolfgan,

Unreal Media Server logs are user logs, located in the
C:\Program Files\UnrealStreaming\UMediaServer\LogFiles

so these logs will not help you to troubleshoot RTMP publishing issue.

If you are doing RTMP publishing exactly per FAQ:
http://umediaserver.net/umediaserver/faq.html
then you should be OK. Make sure port 5130 is open on the server computer.

If you cannot solve it, write back here with details - what is your live encoder and how you are configuring it.[/quote]

Thanks, actually it seems it was a matter of naming issue on the source push (using Android's Larix Broadcaster, and defined the push stream as rtmp://192.168.1.100:5130/live/Camera109/live/ as the source device is IP .109 and Unreal Media Server is at .100 rebroadcasting rtmp as Camera109).
The UMS config properly shows a live encoder connection, but all current thrughput is 0 (I assume because there's no active user consuming the stream).

Problem is I cannot access the output restream. Tried with VLC on the same .100 PC pointing to rmtp://192.168.1.100:5119/live/Camera109/ and errors out as 'cannot open'. Looking at Win10 Firewall logs it says the connection was tried (so no blocking rule) but at app level it just doesn't work (server logs are empty -0 lenght- so it's difficult to troubleshoot).

[code]
Your input can't be opened:
VLC is unable to open the MRL 'rtmp://192.168.1.100:5119/live/Camera109/'
[/code]

Any help? TIA
Wolfgan
 
Posts: 0
Joined: Sat Jan 15, 2011 7:14 am

Re: stats

Postby admin » Thu Oct 12, 2017 3:14 pm

The throughput should not be 0, that's your problem. Not sure why you are experiencing this; could be some strange antivirus/firewall software running on the server and preventing the packets to go in. Could also be a bandwidth issue - maybe your device has a very small or unstable bandwidth or network connection.

We have just tested this Larix Broadcaster app and it works fine; we can play the stream OK.
admin
Site Admin
 
Posts: 855
Joined: Fri Aug 21, 2009 10:13 am

Re: stats

Postby Wolfgan » Fri Oct 13, 2017 9:21 am

[quote="admin"]The throughput should not be 0, that's your problem. Not sure why you are experiencing this; could be some strange antivirus/firewall software running on the server and preventing the packets to go in. Could also be a bandwidth issue - maybe your device has a very small or unstable bandwidth or network connection.

We have just tested this Larix Broadcaster app and it works fine; we can play the stream OK.[/quote]

Thanks. I'll decouple the test then and feed a test stream via ffmpeg as per the FAQ. I assume that my VLC URL was OK then, so I'll try that way.

BTW, just to also test the included material and firewall/AV issues, what URL should I try to play what's included in File Resources / MediaRoot (standby.mp4 & test.avi) via VLC? I tried http://192.168.1.100:5130/MediaRoot/test.avi and subtle variations but it never played succesfully...
Thanks in advance!
Wolfgan
 
Posts: 0
Joined: Sat Jan 15, 2011 7:14 am

Re: stats

Postby admin » Fri Oct 13, 2017 10:06 am

You seem to completely ignore our online documentation:
http://umediaserver.net/umediaserver/faq.html

Port 5130 is only for publishing, not for players.
Here are file links that you can play in VLC:

rtmp://192.168.1.100:5119/vod/mediaroot/standby.mp4
mms://192.168.1.100:5119/mediaroot/test.avi
admin
Site Admin
 
Posts: 855
Joined: Fri Aug 21, 2009 10:13 am

Re: stats

Postby Wolfgan » Sat Oct 14, 2017 8:53 am

[quote="admin"]You seem to completely ignore our online documentation:
http://umediaserver.net/umediaserver/faq.html

Port 5130 is only for publishing, not for players.
Here are file links that you can play in VLC:

rtmp://192.168.1.100:5119/vod/mediaroot/standby.mp4
mms://192.168.1.100:5119/mediaroot/test.avi[/quote]

Thx a lot, it was my bad. I was pointing VLC to :5119 but misstyped it while in here; and even if reading the FAQs I never related the Flash Player entry with what I needed with VLC for the test.
Anyways, the rtmp playing of standby.mp4 worked as you indicated, but not a livestream. Further decoupling my tests, I tried pushing a stream via ffmpeg locally to the same rebroadcast profile as per the FAQ via:

./ffmpeg -stream_loop 5 -re -i "D:\Program Files\UnrealMediaServer\MediaRoot\standby.mp4" -acodec copy -vcodec copy -f flv rtmp://localhost:5130/live/camera109/livestream

Again, UMS shows a successful Live Encoder Connection, but VLC still fails to connect with "VLC is unable to open the MRL 'rtmp://localhost:5119/live/camera109'"

Logfile shows not errors whatsoever, just the successful connections of the VOD attempts:

LogIn User: Anonymous-ID:1288; IP Address: 192.168.1.100; Delivery: RTMP TCP Unicast; Time: 10:17:11 14 October 2017; Resource: mediaroot\standby.mp4
LogOut User: Anonymous-ID:1288; Time: 10:17:32 14 October 2017; KBytes transfered: 682
LogIn User: Anonymous-ID:1972; IP Address: 127.0.0.1; Delivery: RTMP TCP Unicast; Time: 10:17:37 14 October 2017; Resource: mediaroot\standby.mp4
LogOut User: Anonymous-ID:1972; Time: 10:18:09 14 October 2017; KBytes transfered: 681
LogIn User: Anonymous-ID:1580; IP Address: 127.0.0.1; Delivery: RTMP TCP Unicast; Time: 10:35:30 14 October 2017; Resource: mediaroot\standby.mp4
LogOut User: Anonymous-ID:1580; Time: 10:35:53 14 October 2017; KBytes transfered: 682

I'm sincerely lost at this time as everything seems to match the samples on the documentation and the whole test is performed in the same PC to avoid firewall issues...
Thanks for any additional help.
Wolfgan
 
Posts: 0
Joined: Sat Jan 15, 2011 7:14 am

Re: stats

Postby admin » Sat Oct 14, 2017 10:27 am

Try to upgrade to the latest VLC player.
That should help.
Also, you could quickly publish a live RTMP stream from Adobe FMLE or from OBS Studio on the same computer, just for testing.
admin
Site Admin
 
Posts: 855
Joined: Fri Aug 21, 2009 10:13 am


Return to Experience and troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest

cron