Log in

View Full Version : Should I DirectShow video or not? (Newbie)


Yuta
18th July 2006, 20:50
I mean, what will be faster:

video=MPEG2Source("VTS_01_1.d2v")
audio=DirectShowSource("VTS_01_1.ac3")
AudioDub(video,audio)

OR

DirectShowSource("c:\THE_CONSTANT_GARDENER\VIDEO_TS\VTS_01_1.VOB")

Both seem to work fine for feeding VirtualDubMod. All I want is to encode video to Xvid and audio to MP3.

IanB
19th July 2006, 00:14
, what will be faster:That will depend on what Directshow MPEG2 codec you have installed.

Mpeg2Source strives for decoding accuracy in favour of speed, but it is by no means slow. Many Directshow codecs with lineage back to the 200Mhz Pentium era cut corners (quality) to achieve the required realtime performance. These may well be faster.

Mpeg2Source, of course, requires you to preparse the vob files. Doing this guarantees frame exact positioning. Frame exact postioning is not a requirement for DirectShow. This will not be a problem for simple scripts you play from frame 1 thru to the end once in a contiguous manner, but can cause problems in scripts with more advanced temporal requirements.

krieger2005
19th July 2006, 00:37
Why using DirectShow for loading AC3-File. Use AC3Source.

Wilbert
19th July 2006, 13:53
Why using DirectShow for loading AC3-File. Use AC3Source.
... because AC3Source downmixes incorrectly. You can also use NicAudio.

Yuta
19th July 2006, 15:53
Thanks, IanB.
Excellent response.