Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?



On Mar 3, 9:38 am, Tim Roberts <t...@xxxxxxxxx> wrote:
mahantesh<mahantagoudae...@xxxxxxxxx> wrote:

If you are passing along AVI frames from an AVI file, and you hope to be
able to display them, then your source filter has to tell the rest of the
graph that it is sending AVI frames.  Your major type would be
MEDIATYPE_Stream, and your subtype is MEDIASUBTYPE_Avi.
--
Tim Roberts, t...@xxxxxxxxx
Providenza & Boekelheide, Inc.

According to you I have set the majortype and subtype but I am
confused what are the values to set for VIDEOINFOHEADER structure, and
also BITMAPINFOHEADER values of this structure.

VIDEOINFOHEADER and BITMAPINFOHEADER are only used by MEDIATYPE_Video.  You
do not have video data, you have a compressed stream.  For
MEDIATYPE_Stream, you would use FORMAT_None.

What are you REALLY sending along to the graph?  Are you just reading an
AVI file a few kilobytes at a time, and sending that raw data downstream?
If so, then MEDIATYPE_Stream is correct.  The graph builder will insert an
AVI parser next, and that parser will figure out what the real audio and
video formats are.
--
Tim Roberts, t...@xxxxxxxxx
Providenza & Boekelheide, Inc.

Yes Sir, I am reading the data from file and pushing that raw data to
downstream filter, I have observed that if I read the file using
AddSourceFilter method then the connection between source and AVI
splitter is connected but if I use my push source filter then no
connection is taking place and also set the major type what yooooy
told and code is

p_mediatype->SetSubtype(&MEDIASUBTYPE_Avi);
p_mediatype->SetFormatType(&FORMAT_VideoInfo);
p_mediatype->SetType(&FORMAT_None);
p_mediatype->SetSampleSize(p_vid_info_hdr-
bmiHeader.biSizeImage);
p_mediatype->SetTemporalCompression(FALSE);

Still connectin is not taking place please tell am I setting the
correct format or not.
.



Relevant Pages

  • Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
    ... I am getting the output pin of source filter and I extracted the ... input pin avi decompressor, but when the control goes into ... The AVI ... If you want to feed the frames from an AVI-compressed file into a graph, ...
    (microsoft.public.win32.programmer.directx.video)
  • YV12 and AVI Decompressor
    ... I have a graph with my own source filter, which has an output pin of YV12. ... My Source filter won't connect to an AVI Decompressor, unless, DivX Codec ... on most computers, but on one computer only the AVI header is written - 64K ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
    ... input pin avi decompressor, but when the control goes into ... If you want to feed the frames from an AVI-compressed file into a graph, ... And in the source filter I changed subtype to RGB32 only but still it ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
    ... input pin avi decompressor, but when the control goes into ... frames, and then advertise that format, so the graph can hook up the right ... And  in the source filter I changed subtype to RGB32 only but still it ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: IMediaDet and VFW_E_INVALIDMEDIATYPE
    ... MediaDet simply builds a graph and asks the ... if the output is of subtype AVI, ... look at the video output of the AVI Splitter to tell what the video ... even using a custom function that does not rely on IMediaDet will ...
    (microsoft.public.win32.programmer.directx.video)