Re: grabbing frames - MPEG vs AVI

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: The March Hare \(MVP\) (phil_at_ndsm.maps)
Date: 03/18/04


Date: Thu, 18 Mar 2004 12:31:01 -0700


> I am working on a frame grabber program to extract all the frames of a
> video using a proxy transform filter. For avi's, all the frames
> appear to be extracted. But for MPEGs, it appears to be losing
> frames. For example, a mpeg video that should have 154 frames has 128
> frames extracted. What would be the difference between MPEG and AVI
> that might cause this?

Possible reason: frame dropping.

> Any suggestions on a fix?

Pause the graph and step through each frame using
IMediaSeeking::SetPositions



Relevant Pages

  • Re: How to decode a single WMV frame
    ... To begin with, it can be a single keyframe, although a ... the content to the previous keyframe, ... interested in dealing with a single frame. ... WMSyncReader, which will let you extract any frame you want, ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: create sequences from video file in Matlab
    ... % Open the rhino.avi demo movie that ships with MATLAB. ... numberOfFrames = size; ... % Extract out the various parts of the filename. ... % Each frame will be in a separate file with unique name. ...
    (comp.soft-sys.matlab)
  • Extract frame from wmv
    ... I need to extract a frame from a wmv file and save it as a jpg. ... In fact I need to extract a frame from each one of a collection of several thousand wmv files, ... They've installed pyglet for me, but it won't run without ctype, and they don't suport it. ...
    (comp.lang.python)
  • JMF, FrameAccess, sound, faster processing
    ... The Processor processes data according to the frame rate specified in the file. ... As the file is processed, a sound is generated and can be listened to through a sound card's output. ... How does one extract sound from a video file? ... I'm stuck in an implementation of Codec interface, much like JMF's example PreProcessCodec.java, but with AudioFormat, so I can access a sound frame through a Buffer, but I don't know how to proceed. ...
    (comp.lang.java.programmer)
  • Re: How to Store Pixel Intensity Values in Image Sequence
    ... You mean like in this demo where I extract the value of the image at ... % Demo macro to extract frames and get frame means from an avi movie ... numberOfFrames = size; ... % Each frame will be in a separate file with unique name. ...
    (comp.soft-sys.matlab)