Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
Check if RTMP is live or notUsing rtmpdump, how can I quickly determine if a rtmp server has a live video being streamed or not?
I'm looking for something like the following to give me a fast result: rtmpdump -status rtmp://myserver |
#2
|
|||
|
|||
Re: Check if RTMP is live or notUnfortunately, there's no command that does this as of yet. The best way to do it would be to just run the command you want and if it errors out it's probably offline, otherwise it's online and will download.
|
#3
|
|||
|
|||
Re: Check if RTMP is live or notCan you give me an example of a command to use that will return a response quickly? Everything that I have tried takes a few minutes.
|
#4
|
|||
|
|||
Re: Check if RTMP is live or notYou can set the timeout in rtmpdump to a few seconds with the -m parameter. If it doesn't connect within 5 seconds, then you can be quite sure that there's no stream.
Code:
-r rtmp://website.com −m 5 -o stream.flv |
#5
|
|||
|
|||
Re: Check if RTMP is live or notEven though the stream is not live, it is still connecting:
Connecting ... DEBUG: RTMP_Connect1, ... connected, handshaking DEBUG: HandShake: Type Answer : 03 DEBUG: HandShake: Server Uptime : 1619478894 DEBUG: HandShake: FMS Version : 3.5.6.1 DEBUG: HandShake: Handshaking finished.... DEBUG: RTMP_Connect1, handshaked DEBUG: Invoking connect INFO: Connected... DEBUG: HandleServerBW: server BW = 2500000 DEBUG: HandleClientBW: client BW = 2500000 2 DEBUG: RTMP_ClientPacket, received: invoke 242 bytes This is followed by much more. How can I determine if this is actually live? |
#6
|
|||
|
|||
Re: Check if RTMP is live or notThis is what i would do .
find to any swf player , i use jw player wizard http://www.longtailvideo.com/support...rd?example=204 1- Change Option #1 to flvplayer with an rtmp stream 2- under file properties go change file to the actual playpath file name .flv if it is an flv type 3- change External Communication streamer to your rtmp path Hope this helps . Thanks |
Tags: rtmp |
Thread Tools | |
Display Modes | |
|
|