Re: MPEG-2 Frame Count



On Fri, 2 Jun 2006 05:31:02 -0700, tomg wrote:

The duration of MPEG-2 movies as reported by IMediaSeeking::GetDuration
returns a time that is not an integer multiple of the bit rate contained in
the VIDEOINFOHEADER.

Is there a reliable way to get frame count without manually parsing the MPEG
file or playing the movie through once?

Did you look on Google Groups?

http://groups.google.com/groups?as_q=mpeg%20duration&as_epq=&as_oq=&as_eq=&as_ugroup=microsoft.public.win32.programmer.directx.video

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
.



Relevant Pages

  • Re: all keyframes
    ... You can do that quite easily by multiplying the frame count by the ... AvgTimePerFrame member of the VIDEOINFOHEADER or VIDEOINFOHEADER2 in ... the pin connections AM_MEDIA_TYPE. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: all keyframes
    ... You can do that quite easily by multiplying the frame count by the ... AvgTimePerFrame member of the VIDEOINFOHEADER or VIDEOINFOHEADER2 in ... the pin connections AM_MEDIA_TYPE. ...
    (microsoft.public.win32.programmer.directx.video)