How to get the snapshot of the first video frame of MPEG-2 video?
From: kimi (kimi_at_intervideo.com.cn)
Date: 11/09/04
- Next message: The March Hare [MVP]: "Re: How to get the snapshot of the first video frame of MPEG-2 video?"
- Previous message: dlb: "Re: BDA AnalogTV tuning examples - resources MSVidCtl.zip [4/5]"
- Next in thread: The March Hare [MVP]: "Re: How to get the snapshot of the first video frame of MPEG-2 video?"
- Reply: The March Hare [MVP]: "Re: How to get the snapshot of the first video frame of MPEG-2 video?"
- Reply: Jeremy Noring: "Re: How to get the snapshot of the first video frame of MPEG-2 video?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Nov 2004 12:45:42 +0800
I use the DirectShow to build a filter graph which can render the many video
types. I wanna to capture the first frame of the video to display it in the
app window.The way I try list following:
1. run the graph, and pause it, get the Video Render Filter and call the
GetCurrentImage method.
2. pause the graph directly(don't play it first), call GetCurrentImage.
3. step the graph 1 frame, and call getcurrentImage.
all ways can be work well when I render the MPEG-1, AVI, WMV, and so on, the
only one they cannot work well on is MPEG-2 video. When I use the any way of
above to get the frame, the method return S_OK, but the Image is black
screen!(I am sure it should not be a black screen)
Do you have any good way to get the Image? I have tried the IMediaDet, it's
still cannot solve the problem.
- Next message: The March Hare [MVP]: "Re: How to get the snapshot of the first video frame of MPEG-2 video?"
- Previous message: dlb: "Re: BDA AnalogTV tuning examples - resources MSVidCtl.zip [4/5]"
- Next in thread: The March Hare [MVP]: "Re: How to get the snapshot of the first video frame of MPEG-2 video?"
- Reply: The March Hare [MVP]: "Re: How to get the snapshot of the first video frame of MPEG-2 video?"
- Reply: Jeremy Noring: "Re: How to get the snapshot of the first video frame of MPEG-2 video?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|