Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Filesize of RTMP stream

(http://stream-recorder.com/forum/showthread.php?t=6903)

ozBillo 06-23-2010 02:42 PM

Filesize of RTMP stream


 
Hi,

I'm writing a program that runs RTMPdump.

How do I determine the filesize of an RTMP stream before I save it with RTMPDUMP?

Cheers,
Bill

Ed999 06-26-2010 12:55 AM

Using the -W switch


 
You don't.

The RTMPDUMP program contains the switch -W which does that calculation for you automatically.

And all the parameters outputted by the -W switch are saved automatically in a file named .SWFINFO in your RTMPDUMP directory.

The information distibuted with the standard release versions of RTMPDUMP explains what url to specify in the -W switch, using this format:

-W "http://{URL}"

Here's an example -

-W "http://www.bbc.co.uk/emp/9player.swf?revision=18182_20020"

ozBillo 06-26-2010 05:07 AM

Re: Filesize of RTMP stream


 
I was hoping to run rtmpdump minimized/hidden and use a progress bar on my form to track the download (eg. 25MB of 257MB downloaded).

Isn't it possible to get the filesize before starting the download?

Ed999 07-15-2010 08:55 PM

Re: Filesize of RTMP stream


 
RTMPdump v2.1 displays that information in the standard console window handling the rtmp download.

You must run RTMPdump in order to obtain that information. You cannot obtain information from an rtmp:// url using http:// methods.


All times are GMT -6. The time now is 08:14 AM.