Results 1 to 7 of 7

Thread: rtmp?

  1. #1
    Join Date
    Nov 2008
    Location
    Maine
    Beans
    1,126
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question rtmp?

    Hi All I am trying to fetch several lectures from Cornell's rtmp server. I tried wget, amd that failed.
    I tried curl that also failed. (tried installing from latest stable source too) and it still gave me the same message:
    protocol rtmp not supported or disabled in libcurl.

    Are there any tools to help me get rtmp hosted files?
    things like wget or curl?
    ~Conradin~

  2. #2
    Join Date
    Nov 2008
    Location
    Maine
    Beans
    1,126
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: rtmp?

    Found and compiled the rtmpdump source. What i dont see is any recursive options to get all files in a directory, or all the .mp4 files.
    There are persistent articles that say curl supports RTMP like this one:http://www.thegeekstuff.com/2012/07/wget-curl/
    Last edited by conradin; September 16th, 2012 at 02:15 PM. Reason: article
    ~Conradin~

  3. #3
    Join Date
    Nov 2008
    Location
    Maine
    Beans
    1,126
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question Re: rtmp?

    So to get rtmp support in curl you need librtmp. It seems odd to me but couldn't just get that library. Oh well.
    Code:
    sudo apt-get install build-essential gcc make subversion libssl0.9.8 libssl-dev libssl0.9.8
    then got the rtmpdump source
    Code:
    svn co svn://svn.mplayerhq.hu/rtmpdump rtmpdump
    then move to that directory and install
    Code:
    cd rtmpdump/trunk
    then make an install
    Code:
    $make
    $make install
    then cd to the curl source and run ./configure where I then got the line:
    Code:
      curl version:     7.27.0
      Host setup:       i686-pc-linux-gnu
      Install prefix:   /usr/local
      Compiler:         gcc
      SSL support:      enabled (OpenSSL)
      SSH support:      no      (--with-libssh2)
      zlib support:     enabled
      krb4 support:     no      (--with-krb4*)
      GSSAPI support:   no      (--with-gssapi)
      SPNEGO support:   no      (--with-spnego)
      TLS-SRP support:  no      (--enable-tls-srp)
      resolver:         default (--enable-ares / --enable-threaded-resolver)
      ipv6 support:     enabled
      IDN support:      no      (--with-{libidn,winidn})
      Build libcurl:    Shared=yes, Static=yes
      Built-in manual:  enabled
      --libcurl option: enabled (--disable-libcurl-option)
      Verbose errors:   enabled (--disable-verbose)
      SSPI support:     no      (--enable-sspi)
      ca cert bundle:   /etc/ssl/certs/ca-certificates.crt
      ca cert path:     no
      LDAP support:     no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)
      LDAPS support:    no      (--enable-ldaps)
      RTSP support:     enabled
      RTMP support:     enabled (librtmp)
      metalink support: no      (--with-libmetalink)
      Protocols:        DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS POP3 POP3S RTMP RTSP SMTP SMTPS TELNET TFTP
    great, so now its going to work! ... right??
    did $make and $make install in the curl directory.

    the moment of truth:
    Code:
    $ curl rtmp://s12kj1swe9ii1t.cloudfront.net/cfx/st/mp4:cs145/videos/01-01-introduction.mp4 
    curl: (1) Protocol rtmp not supported or disabled in libcurl
    well now what?
    config said it was enabled, and it was in the list of supported protocols... ...??
    ~Conradin~

  4. #4
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,364
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: rtmp?

    Quote Originally Posted by conradin View Post
    Code:
      curl version:     7.27.0
      Host setup:       i686-pc-linux-gnu
      Install prefix:   /usr/local
    great, so now its going to work! ... right??
    did $make and $make install in the curl directory.

    the moment of truth:
    Code:
    $ curl rtmp://s12kj1swe9ii1t.cloudfront.net/cfx/st/mp4:cs145/videos/01-01-introduction.mp4 
    curl: (1) Protocol rtmp not supported or disabled in libcurl
    well now what?
    config said it was enabled, and it was in the list of supported protocols... ...??
    The Install prefix means that "make install" will have installed it in /usr/local/bin. Are you sure you are running this, or are you running the old one in /usr/bin?

  5. #5
    Join Date
    Nov 2008
    Location
    Maine
    Beans
    1,126
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: rtmp?

    Quote Originally Posted by spjackson View Post
    The Install prefix means that "make install" will have installed it in /usr/local/bin. Are you sure you are running this, or are you running the old one in /usr/bin?
    Code:
    $ which curl
    /usr/local/bin/curl
    is that an acceptable way to tell which version Im running?
    ~Conradin~

  6. #6
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,364
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: rtmp?

    In that case, I'm not sure. Perhaps you need to build libcurl3 with rtmp support and then build curl, but I don't really know.

  7. #7
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    13,050
    Distro
    Kubuntu Development Release

    Re: rtmp?

    At the prompt, type "echo $PATH". You'll see the order in which directories are accessed when you run an executable program from the command prompt. Usually /usr/local/bin is ahead of /usr/bin.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •