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