Has anyone been able to use the indexing methods for MPEG files ?
In my own code, the process of indexing the MPEG proceeds as expected, but as soon as I try and tell the demuxer to use the resulting index file it refuses.
In my own code, I've managed to trace the probably root cause to the problem ... when CIndex is created, it tries to get the video filename from the index file but appears to be looking in the wrong place. The index file starts :-
01 01 01 00 45 00 3A 00 5C 00 52 00 65 00 66 00 65 00 72 00 65 00 6E 00 63 00 65 00 44 00 56 00
which is '....E.:.\.R.e.f.e.r.e.n.c.e.D' etc.
The code appeares to assume the string starts at location 0 whereas it starts at location 4 !!! Surely this bug would mean indexing would _never_ work
I assume the initial 01 01 01 00 is the stream type code ? In which case it is looking in the wrong place for that too.
The demo in the SDK (AdvPlayer) also fails. After indexing is complete it fails to build the graph, with a message saying the video file (that it previously opened prior to indexing) does not exist ! This seems to be consistent with the problem I have in my own code.
So, anybody know how to fix this bug ? Is a patch available ?