When encoding MPEG-2 files into WMV using the Expression program, the file gets indexed first. This takes about 1-2 minutes. When encoding the same file using the SDK, the encoding starts without indexing step and results often in an error or wrong file duration. I cannot find the function in the SDK to index the MPEG-2 file first. Anyone know this?
Unfortunately I don't think we expose the code that builds the index for the MPEG-2 file. I'll enter a suggestion into our database for a future version. Regards Dean.