PDA

View Full Version : DirectShowSource and AVISource


Corrado
18th December 2001, 17:59
Hi,

does anybody know why opening an AVI file with DirectShowSource() is MUCH faster than with AVISource()? If I use the .avs with VirtualDub to encode to DivX4.11, the first method gives 14-18fps and the second method only 9-10fps.

The AVI is a DV-type2 movie from Pinnacle Studio DV (the full-res capture from a DV camcorder, not edited or reprocessed).

I thought that AVIfile should be the better way to do it, but...

Corrado

tai
23rd December 2001, 22:46
I guess when you use avisource, windows need to find an appropriate VFW codec and convert the dv type 2 data so that it can be used by that codec. I also found that the video quality when using direcshowsource is better but the problem is I can't get any sound from it. I can't wait for avisynth version which support directshow audio!

Psyche
24th December 2001, 00:37
In fact, I think it may be an issue with colorspace. Some codecs can't output YUY2 in VFW (Divx 3.11 is one of them if I'm not wrong) but many can in DirectShow (again Divx 3.11).
But beware, because many DirectShow avi (not sure if it's the DirectShow architecture itself) codecs drop frames when they find a dropped frame in the avi (not duplicate them) resulting in severe audio desynch.
So if you really want to use DirectShowSource be sure your avi does not have dropped frames. I haven't tested this thoroughly though.

Merry Christmas and Happy New Year to every member in this board (ok, ok and to everybody just seeing this :D ).

esby
27th December 2001, 20:21
i have tried to open an avi with avisource and to reencode it with nandub.
I got a strange problem , nandub was considering all the frame as keyframes.
I retried with directshow and the encode was normal ...

does anybody know why ?

esby