Khoramdin


Hello,

I am trying to get the current location of DVD Play Back.  To achieve this I am using "IDvdInfo2.GetCurrentLocation" method.

Using this method I am expecting to get the current frame.  In order to step the frames I am using "IVideoFrameStep.Step" methd to step throu the DVD movie.

This means I should be able to get the frame number if I step throu the movie and for every step I display the current location of the DVD movie.

My finding is that is not the case as the values "timeCode.bHours,  timeCode.bMinutes, timeCode.bSeconds, and timeCode.bFrames" of the "IDvdInfo2.GetCurrentLocation" method are refreshed every 14 Frames.  This means the display value for the "timeCode.bFrames" which represents the current frame is stocked on the same number till is gets refresh which is every 14 steps.

Here is my codes:

private void stepForwardToolStripMenuItem_Click(object sender, EventArgs e)
    {
        int hr;
        DvdPlayLocation theVariable;
        
        playState = PlayState.Paused;
        hr = videoStep.Step(1, null);
        dvdInfo.GetCurrentLocation(out theVariable);
        txtlogDvd.AppendText("bFrames  : " + theVariable.timeCode.bFrames + "\r\n" +
                                        "bHours   : " + theVariable.timeCode.bHours + "\r\n" +
                                        "bMinutes : " + theVariable.timeCode.bMinutes + "\r\n" +
                                        "bSeconds : " + theVariable.timeCode.bSeconds); 
    }

Could you be kind enough to share your opion regarding this issue and help me out to get the Frame number for every frame that I step throu.  Thank you very much and have a great day.

Khoramdin





databaseforum