How to download a RTSP stream?

Deng Jianfeng via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <SG2PR02MB37523EE583D7196AC8D1B641CABA9@SG2PR02MB3752.apcprd02.prod.outlook.com>
I noticed in the man page: "curl supports RTSP 1.0 downloads", and I thought I could use the curl to download the video stream from the RTSP server to a local file. Just like this: 
`curl -o test.rtp rtsp://127.0.0.1:554/test'
However, when I execute this command, no local file is generated, and curl successfully exits (exit code is 0). 
By viewing the server log, I saw that the RTSP server had received only one OPTIONS request and no DESCRIBE, SETUP and PLAY requests required for pull streaming.
So, what did I do wrong, and how to download a RTSP stream with curl?
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.