SourceForge has been redesigned. Learn more.
Close

#139 DirectShowSource bug

v2.5x
closed-remind
Filters (75)
5
2005-10-21
2005-04-26
Anonymous
No

I'm posting this as a bug in DirectShowSource. After
a discussion with DirectShow experts in a MS forum
who tested this.

Just to summarize the problem.

capture video in YUY2 color space ( "capture.avi" ),
HuffYUV codec

----------------------
DirectShowSource("capture.avi")
Info()
----------------------

I opened the script in VirtualDub and the color format is
incorrect - in color space RGB32

But if I use
----------------------
AVISource("capture.avi")
Info()
----------------------

The same file color space is correctly in YUY2

Here are the findings of the MS directshow guy who
tested this on his machine:

-------------------------------------------------------------

The problem lies in the internals of AviSynth's
DirectShowSource() plugin.

AviSynth builds its graph by first adding its sink then it
invokes RenderFile() which, however, ends up building a
playback graph with a video renderer (the VMR7, but it
depends on your system) and the CSC instead of
connecting
the sink, then AviSynth removes the renderer and
connects
its sink but it either does not remove the CSC or does
not
re-negotiate the video format.

This is the summary of what the graoh builder does:

- add sink
- add AsyncFileSource
- add AviSplitter
- add AviDecompressor
- failed to connect to sink
- failed to connect VideoRendererDefault
- add ColorSpaceConverter
- failed to connect sink
- add VideoRendererDefault (VR|VMR7)
- finished: sink is not connected

As you can see, DirectShow tries to use the sink first
and
only uses the CSC+VRD as a last resort.

Why the sink refuses to accept the YUY2 format offered
by
the wrapped HuffYUV is anyone's guess. Also, the log
shows
some strange behavior on the part of the AviSynth
custom
sink.

email: alatinak@adelphia.net

Discussion

  • Wilbert Dijkhof

    Wilbert Dijkhof - 2005-05-09
    • assigned_to: nobody --> sh0dan
     
  • Ian Brabham

    Ian Brabham - 2005-09-12

    Logged In: YES
    user_id=673887

    Try latest DSS, 2.5.6-rc1

     
  • Ian Brabham

    Ian Brabham - 2005-09-12
    • labels: --> Filters
     
  • Ian Brabham

    Ian Brabham - 2005-10-04
    • assigned_to: sh0dan --> ianb1957
     
  • Ian Brabham

    Ian Brabham - 2005-10-07
    • status: open --> pending
     
  • Ian Brabham

    Ian Brabham - 2005-10-07
    • status: pending --> pending-remind
     
  • SourceForge Robot

    • status: pending-remind --> closed-remind
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.