How to download a rtmp stream on Linux?

How to download a rtmp video stream on Linux?

You can use mplayer to dump the rtmp stream like:

mplayer -dumpstream rtmp://example.com/path/to/stream.mp4

It will generate ./stream.dump and you can rename it to the file with the extension you need like stream.mp4.

The rtmp link usually can be found from the HTML or JavaScript source code of the webpage if you just have a web url.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *