curl / Mailing Lists / curl-users / Single Mail

curl-users

RTMP streams and '--max-filesize'

From: Gisle Vanem via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 5 Dec 2017 18:27:56 +0100

I've been building libcurl + curl with 'USE_LIBRTMP'.
But not with any crypto since the latest Rtmp v.2.3 is
hopelessly outdated when it comes to current OpenSSL/mbedTLS.

Anyway, this test works fine:
   curl -o test.flv --max-filesize 10000000 rtmp://ossrs.net/live/livestream

Except that the 'test.flv' is way larger than the given
'--max-filesize'. I guess it does not make sense for an endless
stream.

But I'm annoyed that I cannot say "--max-filesize 10M".
Attached is a patch for that.

-- 
--gv


-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html

Received on 2017-12-05