PDA

View Full Version : help with a script


junglemike
27th November 2004, 00:11
Hi folx
First, i need to say that i'm a complete newbie in Avisynth usage.
I'm trying to encode a video for my Palm hendheld (480x320 screen)
Here's the script that i use:

LoadPlugin ("D:\Program Files\AviSynth 2.5\plugins\FluxSmooth.dll")
LoadPlugin ("D:\Program Files\AviSynth 2.5\plugins\convolution3d.dll")


avisource("L:\my_movie.avi")
bilinearresize(480,256)
selecteven()
ConvertToYUY2()
Convolution3D (0, 3, 4, 3, 4, 2.8, 0)
FluxSmoothT()
turnleft()


I'm using Xvid and pretty small bitrate - about 200 kbits/sec - (in order to put the file to 128 or 256mb SD card)
That's why i'm trying to use some smoother filters - to encrease compressibility of the file, so it will look better.
When i tried to use convolution - i was told by avisynth that i need a yuv colorspace - so i added a convert function.
But i don't know in what order to use the funtions.
Is there any way to speed it up?
Or maybe there is better way to do it?
TIA

Ark
27th November 2004, 00:26
This script seems rather ok, i'll change only the ConvertToYUY2() to ConvertToYV12(), to speed things up and avoid another conversion to YV12 (done by XviD and which occur in every encode).

junglemike
27th November 2004, 00:58
Thank ARk,
Is there an possibility to process also audio by Avisynth and not by virtualDubMod?
Also, what should i write (instead of avisource()) if i want to process an mpeg file instead of .avi.
Can Avisynth hand .ogm files as well
Tia

Wilbert
29th November 2004, 10:51
Also, what should i write (instead of avisource()) if i want to process an mpeg file instead of .avi.
1) DirectShowSource (mpeg1/mpeg2)

2) dvd2avi/mpeg2dec3 (mpeg2): most recent version is DGIndex.exe/DGDecode.dll

http://neuron2.net/fixd2v/decodefix.html

3) there are some other possibilities ...

Can Avisynth hand .ogm files as well
Use DirectShowSource, but you might need to remove the subtitles first (if there are any).