Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 07-28-2012, 05:56 PM
jetnine jetnine is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
jetnine is on a distinguished road
Default

Check if RTMP is live or not


Using 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
Reply With Quote
  #2  
Old 07-29-2012, 02:47 AM
greenythebeast greenythebeast is offline
Senior Member
 
Join Date: Dec 2011
Posts: 105
greenythebeast is on a distinguished road
Default

Re: Check if RTMP is live or not


Unfortunately, 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.
Reply With Quote
  #3  
Old 07-29-2012, 03:11 AM
jetnine jetnine is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
jetnine is on a distinguished road
Default

Re: Check if RTMP is live or not


Can 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.
Reply With Quote
  #4  
Old 07-29-2012, 09:06 AM
Elgero Elgero is offline
Senior Member
 
Join Date: Feb 2012
Posts: 177
Elgero is on a distinguished road
Default

Re: Check if RTMP is live or not


You 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
Reply With Quote
  #5  
Old 07-29-2012, 05:29 PM
jetnine jetnine is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
jetnine is on a distinguished road
Default

Re: Check if RTMP is live or not


Even 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?
Reply With Quote
  #6  
Old 07-29-2012, 06:04 PM
megalivestream megalivestream is offline
Junior Member
 
Join Date: Jul 2012
Posts: 23
megalivestream is on a distinguished road
Default

Re: Check if RTMP is live or not


This 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
Reply With Quote
  #7  
Old 07-29-2012, 08:10 PM
jetnine jetnine is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
jetnine is on a distinguished road
Default

Re: Check if RTMP is live or not


I now have it so I can determine if it is live or not, but in the case when it is live, it will run forever until the stream stops. How can I just get the header info and then stop rtmpdump?
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 10:11 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons