PDA

View Full Version : avs script problem...


nautilus7
25th May 2006, 18:50
Why does the following script play only the ac3 stream and not both audio and video?

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\NicAudio.dll")
MPEG2Source("F:\DVD rips\DVD 5\cinderella.d2v", idct=5)
NicAC3Source("F:\DVD rips\DVD 5\0Audio-AC3-6ch-48kHz-DRC-English-DELAY 0ms.ac3", DRC=1)
ConvertToYUY2(interlaced=false)

communist
25th May 2006, 18:55
You need to use AudioDub(). Like this:

V=MPEG2Source(...)
A=NicAC3Source(...)
AudioDub(V,A)
ConvertToYUY2(...)

nautilus7
25th May 2006, 19:06
thanks a lot!!!!

nautilus7
27th May 2006, 01:53
Another problem now..... What's wrong with this script?

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
a=MPEG2Source("F:\aaa.d2v", idct=5)
ConvertToYUY2()
b=MPEG2Source("F:\bbb.d2v", idct=5)
ConvertToYUY2()
Compare(a,b)

neuron2
27th May 2006, 02:12
LoadPlugin("DGDecode.dll")
a=MPEG2Source("F:\aaa.d2v", idct=5).ConvertToYUY2()
b=MPEG2Source("F:\bbb.d2v", idct=5).ConvertToYUY2()
Compare(a,b)

A thorough study of the Avisynth documentation would benefit you greatly.

nautilus7
27th May 2006, 14:21
I had a look in the avs documentation, but obviously not wasn't enough.

Thanks for your answer.

neuron2
27th May 2006, 16:06
See here:

http://forum.doom9.org/showthread.php?p=829843#post829843

stickboy
28th May 2006, 06:52
I've always thought that BenRG's original AviSynth tutorial (http://www.neuron2.net/www.math.berkeley.edu/benrg/avisynth-tutorial.html) was good. See the section on "Implicit last".