Log in

View Full Version : batch, script Question


king22491
18th January 2006, 10:29
hi
i was wondering about people who use batch, scripts to encode to x264. In general do people use avisynth or just notepad. What are the pro's of using batch, script. Quality? Functionality?
id liked to gain knowledge of Batch, script encoding :D
thanks in advance

Sylf
18th January 2006, 16:38
Both.

I use notepad to edit both the avisynth script and the batch file. AVS script contains all the normal video filtering. Batch file contains all the parameters to be passed to the x264 cli. With this, I can store all the settings I used for any particular encodes. Exact same quality can be achieved without using batch file, or by using MeGUI. But I can't do without avisynth.

(I'm not sure what the exact intent of this question really is?)

unmei
18th January 2006, 16:53
Actually, Sylf said everything already :]

There really isn't anything special to it, at least not to how i use it. Its simply a way to pass switches into x264 other than using a GUI or typing them manually.

For to "learn", any manual on DOS commands and writing .bat files will do - in most of my script all i use is the call itself and passing in batch variables with "%1", "%2" etc.., but of course you can go further and write branched batches using ERRORLEVEL and GOTO..

[edit]
Oh, did you mean AviSynth files by "scripts" (that is not what i interpreted the "scripts" in the poll as, even tho i also use them - for these, head to avisynth.org and the AviSynth section of this forum)

king22491
19th January 2006, 03:04
ive got another question. is a script for encoding x264 and encoding xvid the same. ie BicubicResize(320,240). will that resize both x264 nad xvid as the same?

deets
19th January 2006, 04:33
in your avs file, yep. the resize get passed to avisynth before it gets to the encoder :)

king22491
19th January 2006, 07:35
thanks :D
do you know where i can get codes for sifferent functions
thanks :thanks:

MeteorRain
19th January 2006, 07:40
do you know where i can get codes for sifferent functions
Install "AviSynth" first. There's a documentation link in your start menu. Read it, and you will know what you want to know.

Such statements like "BicubicResize(320,240)" is a filter, which make the input to be resized, and output them. so the avs is actually appears like a video in 320x240. No matter if you pass it to x264, or XviD, or even play it back.

king22491
19th January 2006, 07:51
thanks i found it
:D