Hi Paul,

How were your FLV files encoded?  If it is always returning false, then
perhaps they don't have any metadata.  A quick way to check this would be
to drop the files under the oflaDemo application and try to play them
there, then check the streams folder and see if the .meta files were
created for your FLV files.  If they did, but are empty, then perhaps you
need to look at how your FLV files are being encoded so they contain
metadata.

Otherwise, I'm not that familiar with the FLV class you're using, so
someone else might notice something in your code that I wouldn't.

Nathan


On Fri, 8 Jun 2007, Paul deCoursey wrote:

> I'm trying to use the org.red5.io.flv.impl.FLV class. I specify true for 
> the generateMetadata, I just want to read the metadata for a bunch of 
> FLV files and dump them into a file.  But hasMetaData always returns 
> false... is there somthing else I have to do?
> Here is basically what I am doing.
> 
>             File f = new File(name);
>             System.out.println(f.exists());
>             FLV flv = new FLV(f, true);
>             if(flv.hasMetaData()) {
>                 IMetaData md = flv.getMetaData();
>                 System.out.println(md.toString());
>             } else {
>                 System.out.println("No metadata");
>             }
> 
> 
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
> 


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to