cURL / Mailing Lists / curl-users / Single Mail

curl-users

Can't get curl to download my stream

From: Alessandro Calcaterra <acb764se_at_gmail.com>
Date: Wed, 1 Aug 2012 08:25:49 +0200

Hi,
I have installed curl on a Fedora 12 laptop in my home:

localhost:~$ curl --version
curl 7.27.0 (i686-pc-linux-gnu) libcurl/7.27.0
Protocols: dict file ftp gopher http imap pop3 rtsp smtp telnet tftp
Features: IPv6 Largefile

I have downloaded the source from the curl site and "made" it, see the
attached log file from configure, make completed without any error
(that I saw). Note the presence of rtsp among the accepted protocols
in the lines above.

Now, I want curl to download a 10 seconds movie from one of my
security cameras to a file on my laptop, but it does not sem to work:

(I got the rtsp string exact, VLC viewer from VideoLAN shows my camera allright)

localhost:~$ curl -m 10 -o test.mp4 -v
"rtsp://admin:admin_at_192.168.1.6:6554/ipcam.sdp"
* About to connect() to 192.168.1.6 port 6554 (#0)
* Trying 192.168.1.6...
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0* connected
* Connected to 192.168.1.6 (192.168.1.6) port 6554 (#0)
> OPTIONS * RTSP/1.0
> CSeq: 1
> User-Agent: curl/7.27.0
>
< RTSP/1.0 200 OK
< CSeq: 1
< Public: DESCRIBE, SETUP, TEARDOWN, PLAY
<
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Connection #0 to host 192.168.1.6 left intact
* Closing connection #0

I interpret the above messages as saying that 1) my laptop does reach
the camera,
2) the camera answers with the possible RTSP options, but then curl does not
issue the PLAY and disconnects, leaving connection 0 "intact" (imagine should it
ruin my connection......;-).

What am I missing, or failing to do, or failed to have done?
Thank you very much for any information!

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2012-08-01