Re: Problem: color space conversion by DirectShow



AL wrote:

> Because I use AVISynth program and it's DirectShowSource
> function to open AVI files.
>
> After that I call series of filters that requiere YUY2
> color space.
>
> So is there a way to tell the video renderer not to do
> any color space conversions ?
>
> Or can I set some other renderer as default that doesn't
> do this ?

AviSynth clearly does not build the same graph otherwise it
would not be able to extract any data from it (do you see
any filter that can extract data from the graph?). So it
must insert its own sink in place of the renderer which
means that the graph you built in GraphEdit has no meaning.
If the AvuSynth sink accepts YUY2, there won't be any CSC in
its graph.

In any case, as you've already been told, when the sink is
the video renderer, which won't be the case in AviSynth, the
filter is meant to display the video so it will only accept
formats the video card can display thus, if your video card
can not handle YUY2, it will not accept YUY2 and the graph
builder will be forced to insert a CSC from YUY2 to a
supported format (like the more common RGB32 or YV12).


--

// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net


.



Relevant Pages

  • AddSourceFilterForMoniker() locks up sometimes.
    ... I've coded a simple filter graph to capture frames from a video camera ... I can grab frames from the Sample Grabber with no ...
    (microsoft.public.win32.programmer.directx.video)
  • AddSourceFilterForMoniker() locks up sometimes.
    ... I've coded a simple filter graph to capture frames from a video camera ... I can grab frames from the Sample Grabber with no ...
    (microsoft.public.multimedia.directx.dshow.programming)
  • Unable to Stop a graph
    ... I wrote code to programmaticaly build a filter graph to play MPEG-2 ... As MPEG-2 video decoder, I am using the ULead, uldsmpeg.ax filter. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Green artifacts when rendering YUY2
    ... I have a filter graph which basically connects my camera to the renderer. ... But if the camera outputs YUY2, ... Are you sure the media type is YUY2? ...
    (microsoft.public.win32.programmer.directx.video)
  • AVI mux does not create a valid file, while renderer displays content very good!?
    ... One is connected to video source and last filter is ... source filter which is client for server filter from the first graph. ...
    (microsoft.public.win32.programmer.directx.video)