rtmpdump
Download RTMP streaming media
TLDR
SYNOPSIS
rtmpdump -r url [-o file] [options]
DESCRIPTION
rtmpdump downloads media streams using the Real-Time Messaging Protocol (RTMP), which was originally developed by Adobe for Flash-based streaming. It connects to RTMP servers and saves the stream data to a local file, supporting both live broadcasts and on-demand video content.The tool handles the full RTMP handshake and protocol negotiation, including SWF (Shockwave Flash) verification when servers require it. RTMP URLs consist of a server address, application path, and playpath, which may need to be specified separately. For live streams, the -v flag enables live mode where recording continues until the stream ends or the user interrupts.Interrupted downloads can be resumed with the --resume flag, which is particularly useful for long recordings over unreliable connections. The tool outputs FLV (Flash Video) format by default, which can be converted to other formats using tools like ffmpeg.
PARAMETERS
-r URL, --rtmp URL
RTMP URL of the stream to download.-o FILE, --flv FILE
Output file name. If not specified, streams to stdout.-y PATH, --playpath PATH
Override the playpath parsed from the RTMP URL.-a APP, --app APP
Name of application to connect to on the RTMP server.-v, --live
Specify that the media is a live stream. No resuming or seeking is possible.-W URL, --swfVfy URL
URL of the SWF player. Hash and size are computed automatically.-s URL, --swfUrl URL
URL of the SWF player for the media. Required by some servers for verification.--resume
Resume an incomplete download.-T TOKEN, --token TOKEN
Key for SecureToken response.--timeout SECS
Timeout the session after SECS seconds without receiving data.-n HOST, --host HOST
Override the hostname in the RTMP URL.-c PORT, --port PORT
Override the port number in the RTMP URL.--hashes
Display a hash mark for each 1% of progress.-q, --quiet
Suppress all command output.-V, --verbose
Verbose output.-z, --debug
Debug level output with hex dumps of all packet data.
CAVEATS
RTMP is declining in use as modern streaming protocols like HLS and DASH have replaced it. Some servers require SWF verification or token authentication. Output is always in FLV format.
HISTORY
rtmpdump was created as an open-source RTMP client. It enabled downloading Adobe Flash video streams before modern streaming protocols became common.
SEE ALSO
ffmpeg(1), streamlink(1), youtube-dl(1), curl(1)
