PDA

View Full Version : rtmpdump parameters are too complicated. easy way to use rtmpdump?


MIJ-VI
12-04-2010, 10:51 AM
RTMP streams are not cached.

Note that you can use rtmpsuck and rtmpsrv in Linux. See rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm) for more.

I tried using rtmpdump a couple of days ago but ran into this snag...

rtmpdump parameters:

* --help|-h Prints this help screen.
* --rtmp|-r url URL (e.g. rtmp//hotname[:port]/path)
* --host|-n hostname Overrides the hostname in the rtmp url
* --port|-c port Overrides the port in the rtmp url
* --protocol|-l Overrides the protocol in the rtmp url (0 - RTMP, 3 - RTMPE)
* --playpath|-y Overrides the playpath parsed from rtmp url
* --swfUrl|-s url URL to player swf file
* --tcUrl|-t url URL to played stream (default: "rtmp://host[:port]/app")
* --pageUrl|-p url Web URL of played programme
* --app|-a app Name of player used
* --swfhash|-w hexstring SHA256 hash of the decompressed SWF file (32 bytes)
* --swfsize|-x num Size of the decompressed SWF file, required for SWFVerification
* --auth|-u string Authentication string to be appended to the connect string
* --flashVer|-f string Flash version string
* --live|-v Save a live stream, no --resume (seeking) of live strems possible
* --flv|-o string FLV output file name, if the file name is - print stream to stdout
* --resume|-e Resume a partial RTMP download
* --timeout|-m num Timeout connection num seconds
* --buffer|-b Buffer time in milliseconds, this option makes only sense in stdout mode
* --skip|-k num Skip num keyframes when looking for last keyframe to resume from. Useful if resume fails

...because I don't know how to obtain the rtmp portion of the file name, nor its port #, not do I know how to define a path for said file.

rtmp//hotname[:port]/path

Until now I've not been aware of rtmpsuck or rtmpsrv. I'll have to look for them after I get some sleep.

Stream Recorder
12-04-2010, 01:23 PM
Using rtmpsuck and rtmpsrv in Ubuntu is pretty easy:

How to use rtmpsuck in Ubuntu 10.04 Lucid Lynx
How to use rtmpdump with rtmpsrv in Linux