Just a note - the reason I'm not doing that in our environment is that we publish a number of video files a day. Video files are typically an hour long - copying is not instantaneous. If we automatically scan them, we risk creating an incorrect meta file from an incomplete FLV.
Good luck! .b On Tue, Jul 03, 2007 at 01:08:07AM +1000, Dan Rossi wrote: > OK I'll take a look at a system to pre-generate for new files or files > with no meta file while the server starts up .. > > Thanks heaps. > > Ben H Kram wrote: > > Dan, > > > > > >> Is this in java ? Maybe it could be run onappstart. ? > >> > > > > It is java. I just did the same calls the system does. The code looks > > something like this: > > > > Let "String path" equal the path to an FLV without a meta file: > > > > File flvFile = new File(path); > > FLVReader reader = new FLVReader(flvFile, true); > > FileKeyFrameMetaCache cache = new FileKeyFrameMetaCache(); > > cache.saveKeyFrameMeta(flvFile, reader.analyzeKeyFrames()); > > > > Hope this is helpful, > > ben > > > > > > > _______________________________________________ > Red5 mailing list > [email protected] > http://osflash.org/mailman/listinfo/red5_osflash.org -- Benjamin H Kram [EMAIL PROTECTED] 617.998.8592 _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
