Log in

View Full Version : Which one is faster: AviSynth or DirectShow


haazheel
24th February 2004, 01:05
Hello everybody,

I'd like to know which of these 2 methods is faster when encoding a video:

a plain DirectShow program, or VDubMod for example...

Thanks in advance...

celtic_druid
24th February 2004, 05:17
Why don't you run some tests yourself?

Mug Funky
24th February 2004, 09:16
hmmm... which is faster? a red car or a blue car?

the answer: we've got to know more about them... a red car will usually win unless the blue one has speedholes.

heavy filtering in avisynth will be slow, but heavy filtering is also possible (but more clunky to implement with graphedit, etc) in directshow, in which case it will be slower.

haazheel
24th February 2004, 09:54
Originally posted by celtic_druid
Why don't you run some tests yourself?

Because I don't know any programs which can encode a video using directshow...

And the comparison would be without any filters...

sh0dan
24th February 2004, 10:54
Originally posted by haazheel
And the comparison would be without any filters...
Bingo! You hit the nail on the head!

Passthrough speed is not very interesting for the enduser. Passthrough in AviSynth takes very little CPU compared to the encoding application.

If you just avoid colorspace conversions in all your setups don't expect the speed difference to be anything significant.

haazheel
24th February 2004, 11:12
;)

Well, to be exact, I'm developping a soft which, among other things, permits to encode DV films in DivX...

And i was just wondering which method was the fastest, knowing that I must use a resize filter to lower the resolution...

That's all!

bond
24th February 2004, 13:23
Originally posted by haazheel
Because I don't know any programs which can encode a video using directshow...3ivx offers a dshow encoder, xvid too after 1.0final

sh0dan
24th February 2004, 13:34
I would personally go for VFW. It is probably also slightly faster, as the DS way has to go through the AVI parser/splitter. VFW interfaces direstly with AviSynth.

morsa
24th February 2004, 16:01
I've been making some comparisons and when I open any Mpeg4 material (DivX, Xvid,etc,etc,etc) Directshow (through FfDshow) is far faster than Avisource,may be twice as fast.Don't know if it is machine specific.

sh0dan
24th February 2004, 16:12
I assume we are talking frame delivery from AviSynth -> SomeApp, and not decoding of video?

morsa
24th February 2004, 16:19
Oh, sorry.
I've tested using VdubMod and compressing with Xvid.