[Red5] [ot] FLV length in C#
Herres, Mick
mherres at UII.com
Wed Dec 14 09:23:49 EST 2005
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#?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20051214/696bf3b7/attachment.htm
More information about the Red5
mailing list