[Red5] [ot] FLV length in C#

John Grden neoriley at gmail.com
Wed Dec 14 10:53:20 EST 2005


If I remember correctly, Luke had said the metaData was in the header of the
FLV, so if you can figure out how to isolate that, and the metadata IS
included, you should be able find it.

Luke, was that right?

On 12/14/05, Jim Tann <Jim at avtgroup.com> wrote:
>
>  Mick,
>
>
>
> Thanks for the response, I meant the length in milliseconds, I am new to
> C# and have a lot to learn.
>
>
>
> Jim
>
>
>
> -----Original Message-----
> *From:* Red5-bounces at osflash.org [mailto:Red5-bounces at osflash.org] *On
> Behalf Of *Herres, Mick
> *Sent:* 14 December 2005 14:24
> *To:* Red5 at osflash.org
> *Subject:* Re: [Red5] [ot] FLV length in C#
>
>
>
> Hi Jim,
>
>
>
> If you are talking about the physical length (in bytes) of the file
> itself, the following code will do that.
>
>
>
>
>
>                   System.IO.FileStream theFLV = System.IO.File.OpenRead("
> myFLVFile.flv");
>
>                   int fileLength = theFLV.Length;
>
>
>
> If you are talking about parsing the .flv to figure out the total size of
> the video/audio bytes (minus header data), I am assuming you would need to
> treat the .flv file as a collection of AMF objects and parse them
> accordingly.
>
>
>
> Hope this helps,
>
>
>
> mick
>
>
>  ------------------------------
>
> *From:* Red5-bounces at osflash.org [mailto:Red5-bounces at osflash.org] *On
> Behalf Of *Jim Tann
> *Sent:* Wednesday, December 14, 2005 5:34 AM
> *To:* Red5 at osflash.org
> *Subject:* [Red5] [ot] FLV length in C#
>
>
>
> A quick off topic question. Does anyone know how to retrieve the length of
> an .FLV file with C#?
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>


--
John Grden - Blitz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20051214/97b02fbe/attachment-0001.htm


More information about the Red5 mailing list