Skip to main content

ASF and WMV files indexing

Products: Video Capture SDK .Net, Video Edit SDK .Net, Media Player SDK .Net

Some ASF and WMV files do not have indexes. That causes seeking issues. You can use VisioForge.Tools.ASFIndexer class to index files.

Sample code

C# sample usage:

            var indexer = new ASFIndexer();
indexer.OnStop += delegate(object o, EventArgs args)
{
MessageBox.Show("Indexing complete.");
};

indexer.OnError += delegate(object o, ErrorsEventArgs args)
{
MessageBox.Show("Error during indexing: " + args.Message);
};

indexer.OnProgress += delegate(object o, ProgressEventArgs args)
{
Debug.WriteLine("Indexing progress: " + args.Progress);
};

indexer.Start(@"c:\samples\sample.asf", WMIndexerType.FrameNumbers, 4000, WMIndexType.NearestDataUnit);

Required redists

  • SDK redist

Visit our GitHub page to get more code samples.