PDA

View Full Version : How to use rtmpdump for rtmp url coming from FMS?


cb24
01-07-2011, 03:47 AM
Hi All,

This is my first post :).

I was using rtmpdump to download rtmpurls under Linux. But ...
Currently, one of my friend is encoding Live stream using FMLE (Flash Media Live Encode), and pushing to FMS (Flash media sever).

FMS is streaming the same using rtmp.
I am confirmed that using, JWPlayer Wizard .

There it played well, The url looks like this,

rtmpserver : rtmp://192.168.1.12/live
Streamname: livestream

Equivalent Javascript code to play is
<script type='text/javascript' src='swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
var so = new SWFObject('player.swf','mpl','470','290','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','livestream');
so.addVariable('streamer','rtmp://192.168.1.12/live');
so.write('mediaspace');
</script>.

Also,




C:\Users\Owner\Downloads\rtmpdump-2.3>rtmpdump.exe -r "rtmp://192.168.1.12/live" -o sample.flv
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: You must specify a playpath (--playpath) or url (-r "rtmp://host[:port]/playpath") containing a playpath

C:\Users\Owner\Downloads\rtmpdump-2.3>

When i only used application Name,
C:\Users\Owner\Downloads\rtmpdump-2.3>rtmpdump.exe -r "rtmp://192.168.1.12/live/livestream" -o sample.flv
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: Closing connection: NetStream.Play.StreamNotFound

C:\Users\Owner\Downloads\rtmpdump-2.3>

When i used both app, stream name i got above error.



C:\Users\Owner\Downloads\rtmpdump-2.3>rtmpdump.exe -r "rtmp://192.168.1.12/live/_definst_/livestream" -o sample.flv
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: Closing connection: NetStream.Play.StreamNotFound

C:\Users\Owner\Downloads\rtmpdump-2.3>rtmpdump.exe -r "rtmp://192.168.1.12/live/_definst_" -o sample.flv
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: Closing connection: NetStream.Play.StreamNotFound

C:\Users\Owner\Downloads\rtmpdump-2.3>rtmpdump.exe -r "rtmp://192.168.1.12/_definst_/live" -o sample.flv
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close

C:\Users\Owner\Downloads\rtmpdump-2.3>
.

Can anybody tell me what should be the actual URL to be given to rtmpdump?

Thanks

Stream Recorder
01-07-2011, 05:40 AM
When you download live streams, you need to use the following switch:
--live|-v Save a live stream, no --resume (seeking) of live streams possible

Another problem is that 192.168.0.0 – 192.168.255.255 IP addresses are common in home and office local area networks (LANs). These addresses are private because they are not globally delegated, meaning they aren't allocated to a specific organization. If such a private network needs to connect to the Internet, it must use either a network address translator (NAT) gateway, or a proxy server. So if you are trying to use rtmpdump outside your LAN, you will fail.

rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm) comes with rtmpsrv and rtmpsuck that can be used for finding RTMP parameters that are needed to be used with rtmpdump. So just try to use them.