Re: [Flashcoders] Estimate FLV file size?

2007-12-26 Thread Cory Petosky
To be picky about nomenclature --

Amongst those in the know, b is bit and B is byte -- so 10 Mbps is
10 megabits per second but 12 MB is twelve megabytes. It's also totally
acceptable (and advocated by at least one proposed standard) to use the word
bit fully (e.g., 512 kbit/s).

In practical use, I've only ever seen kbps/Mbps refer to bitrates,
regardless of capitalization. When rates are used with bytes, I always see a
slash instead of the p -- that is, I have a 6 Mbps (megabit per second)
connection, so I usually download files at around 800 kB/s (kilobytes per
second).

Of course, people aren't generally as precise as they should be, so even if
you know the various standards out there, you've got to keep the context of
the number in mind to make sure it makes sense. :)

On 12/23/07, Micky Hulse [EMAIL PROTECTED] wrote:

 Latcho wrote:
  512 Kbits / 8 bitsperbyte = streaming 64 KBytes per sec = 3840 KBytes
  per minute = (3840 / 1024)  3.75 MBytes

 Wow, thanks for that. ;)

 Interesting stuff.

 I finally had a chance to compress a vid (using settings I mentioned in
 first post) and the file size was compressed to about 13mb (note to
 self, mb = megabytes) :D

 Playing with the numbers now though... the formula above is good to
 know. Thanks Latcho and Marc!

 Cheers,
 Micky

 --
 Wishlist: http://tinyurl.com/22xonb
 Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
 My: http://del.icio.us/mhulse
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Cory Petosky : Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FLV Buffering Weirdness with Flash CS3 and AS3

2007-12-26 Thread Wendy Serrell
Hi,

 

I want to display a buffering message whenever a progressively downloaded
flv is buffering. According to the docs, this should be possible.

 

When the NetStream.Buffer.Empty event is fired, the swf displays some kind
of buffering message to the user.

 

When the NetStream.Buffer.Full event is fired, the swf removes the buffering
message.

 

But in practice this never quite works, when testing both locally and from a
server. Here's some sample code in a class for handling NetStream events:

 

private function netStatusHandler(event:NetStatusEvent):void

{

switch (event.info.code)

{

case NetStream.Play.Start:

trace(NetStream.Play.Start, currentTime is:, stream.time);

break;

case NetStream.Buffer.Empty:

trace(NetStream.Buffer.Empty, currentTime is:, stream.time);

break;

case NetStream.Buffer.Full:

trace(NetStream.Buffer.Full, currentTime is:, stream.time);

break;

}

}

 

And here's what appears in the output window when the video is loaded:

 

NetStream.Play.Start, currentTime is: 0

NetStream.Buffer.Empty, currentTime is: 0.94

NetStream.Buffer.Full, currentTime is: 0.94

 

One problem is that Buffer.Empty is fired long after the video starts
playing. A different result occurs by changing the default bufferTime
setting from 0.1 seconds to something longer. If the bufferTime is five
seconds, the output window shows this:

 

NetStream.Play.Start, currentTime is: 0

NetStream.Buffer.Full, currentTime is: 1.044

 

Shouldn't Buffer.Full fire before the video starts playing? In all the tests
I've done, this event fires between half a second to one second after the
video has started. And why does changing the bufferTime cause the
Buffer.Empty event to not fire at all?

 

TIA for any insight.

 

Wendy

 

 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Estimate FLV file size?

2007-12-26 Thread Micky Hulse

Cory Petosky wrote:

To be picky about nomenclature --
...snip...
the number in mind to make sure it makes sense. :)


Wow, great additional info! Thanks Cory. :)

Kinda reminds me of the width always comes first for measurements.

Thank you for the detailed info. I am definitely bookmarking this thread.

Have a great new year!
Cheers.
Micky

--
Wishlist: http://tinyurl.com/22xonb
Switch: http://browsehappy.com/
BCC?: http://snipurl.com/w6f8
My: http://del.icio.us/mhulse
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders