Josh
 
1. There is no magic workaround. If the duration is missing from the metadata of an FLV, then your only options are a) inject it yourself b) use FMS to query the file length. You cannot get or even estimate the duration from the NetStream properties that are exposed, other than by playing it to completion.
 
2. If your app is a web app, then keep a local copy of FMS running and use it for nothing but querying the length of FLV files on your SAN.
 
3. If your app is a desktop app, then write your own very simple parser that would figure out the duration of a FLV file and build it into your app.  Since FLV is an open format (see http://www.adobe.com/licensing/developer/), this should be simple and quick.  In fact I know it's both since a guy at VitalStream wrote exactly this to figure out the duration of user-uploaded files (they have the same problem of missing metatdata from older encoders) and it only took him a morning to create. I doubt they would release that code, since its company specific, but if you approached your Fireant C++ guru, he may have as quick an answer.
 
Cheers
 
Will
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Kinberg
Sent: Thursday, June 01, 2006 8:50 PM
To: [email protected]
Subject: Re: [videoblogging] Re: Flash Video question for Actionscripters

> I've been looking for a Flash player that
> will load FLV files from a RSS feed and play through them. Any chance
> that this project will have this functionality?

Yes, exactly. It currently supports FLV videos from RSS and XSPF
playlists. But the videos must be Flash 8 (or have proper FLV metadata
injected) until I can figure out a work around for the issue mentioned
in this thread. Unfortunately, all the docs on Adobe simply suggest to
either re-encode the videos or inject the metadata...

I'm having a hard time believing that there is just no other work
around. Come on, Adobe!

-Josh


On 6/1/06, Bill Streeter <[EMAIL PROTECTED]> wrote:
> Josh,
>
> I'm sorry I don't have an answer to your problem but I would like to
> know more about the project. I've been looking for a Flash player that
> will load FLV files from a RSS feed and play through them. Any chance
> that this project will have this functionality?
>
> Bill Streeter
> LO-FI SAINT LOUIS
> www.lofistl.com
>
> --- In [email protected], "Joshua Kinberg" <[EMAIL PROTECTED]>
> wrote:
> >
> > This is a question for the Flash developers out there...
> >
> > I'm creating a little side-project Flash application that plays Flash
> > Video files (FLV) from a playlist.
> >
> > I've run into a documented bug in FLV versions prior to Flash 8 where
> > the duration metadata is incorrect. This screws up the time progress
> > bar and seeking functionality of my video controller. There must be a
> > trick to get the duration for older versions of FLV since its obvious
> > that other Flash video controllers can do this. Any advice from the
> > Actionscripters out there?
> >
> > Here's some documentation of the bug (scroll to the bottom):
> > <http://www.jeroenwijering.com/?item=FLV_Video_Compression>
> >
> > and here: <http://www.sti-media.com/blog/archives/000111.html>
> >
> > This documented bug is quite common since most video upload sites
> > automatically compress with Sorensen (Flash Video 6/7 codec).
> >
> > I've used a tool called FLV Metadata Injector to correct the FLV
> metadata:
> > <http://www.buraks.com/flvmdi/>
> >
> > This does work, but I'd rather be backwards compatible with Flash
> Video 6/7.
> >
> >
> > -Josh
> >
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


__________ NOD32 1.1574 (20060601) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com


SPONSORED LINKS
Fireant Individual Typepad
Use Explains


YAHOO! GROUPS LINKS




Reply via email to