digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Need parameters for my script! (http://www.digitalfaq.com/archives/avisynth/12559-avisynth-parameters-script.html)

Mecha 10-11-2004 01:42 PM

Avisynth: Need parameters for my script!
 
I have this script that I got from a dude here on the forum:

Code:

LanczosResize(WIDTH-(OVERSCAN*16), HEIGHT-(OVERSCAN*16))
AddBorders((OVERSCAN*8),(OVERSCAN*8),(OVERSCAN*8),(OVERSCAN*8))

You guys should see what it does (for who dont, it shrinks the video and adds black borders around it to prevent the overscan problem some have).

All I wanna know is wich one I should increase to make the borders on the sides wider. Now they are symmetric. The ones on the top and bottom are perfect for my TV. But the sides are still a bit small.

Over and Out Mecha

Prodater64 10-11-2004 03:18 PM

Re: Need parameters for "my" script! :)
 
Quote:

Originally Posted by Mecha
I have this script that I got from a dude here on the forum:

Code:

LanczosResize(WIDTH-(OVERSCAN*16), HEIGHT-(OVERSCAN*16))
AddBorders((OVERSCAN*8),(OVERSCAN*8),(OVERSCAN*8),(OVERSCAN*8))

... The ones on the top and bottom are perfect for my TV. But the sides are still a bit small.

Over and Out Mecha

Usually, each overscan unit is equal to 16 pixels by side. Then, your new values would be:

Quote:

LanczosResize(WIDTH-(OVERSCAN*32), HEIGHT-(OVERSCAN*16))
AddBorders((OVERSCAN*16,(OVERSCAN*8),(OVERSCAN*16),(OVERSCAN*8))
But if that is so much for your TV, you can try:

Quote:

LanczosResize(WIDTH-(OVERSCAN*24), HEIGHT-(OVERSCAN*16))
AddBorders((OVERSCAN*12,(OVERSCAN*8),(OVERSCAN*12),(OVERSCAN*8))
If this values doesn't makes interference with other options in the script. (It would show error when previewing if so)

Mecha 10-11-2004 05:16 PM

I didnt really see any difference between 32*16 and 16*8.. was the same on my TV. Seems kinda strange. But.. Ive been working my ass off for like 3 weeks now to get this damn anime-dvd right.. And I aint gonna give up now.

So any suggestions? :)

Prodater64 10-11-2004 05:49 PM

Quote:

Originally Posted by Mecha
I didnt really see any difference between 32*16 and 16*8.. was the same on my TV. Seems kinda strange. But.. Ive been working my ass off for like 3 weeks now to get this damn anime-dvd right.. And I aint gonna give up now.

So any suggestions? :)

Well, better from scratch. Could you post your wholw script.
In some place into your script must to be defined a varable called OVERSCAN, in a way similar to OVERSCAN=1 or OVERSCAN=2 or OVERSCAN=3. If it is one change to 2, and if it is 2 change to 3.
But it would be a little bit strange as more than 2, only a few people need it.

Mecha 10-12-2004 07:35 AM

Hmm.. this is really the whole script:

Code:

converttoyv12()
LanczosResize(WIDTH-(OVERSCAN*16), HEIGHT-(OVERSCAN*16))
AddBorders((OVERSCAN*8),(OVERSCAN*8),(OVERSCAN*8),(OVERSCAN*8))
AddAudio()

No more, no less.

Prodater64 10-12-2004 08:07 AM

Quote:

Originally Posted by Mecha
Hmm.. this is really the whole script:

Code:

converttoyv12()
LanczosResize(WIDTH-(OVERSCAN*16), HEIGHT-(OVERSCAN*16))
AddBorders((OVERSCAN*8),(OVERSCAN*8),(OVERSCAN*8),(OVERSCAN*8))
AddAudio()

No more, no less.

With that script, you can't view anything when preview it, neither encode nothing. Who give the value to variables OVERSCAN, HEIGHT and WIDTH.
How do you encode your movie? Do you load succefully this script in any encoder?

Mecha 10-12-2004 01:49 PM

I encode my videos in DIKO and it works fine, no errors or what so ever. If you see something is wrong with the script maybe you wanna correct the problem and give me the right script to the job? :)

Boulder 10-12-2004 02:08 PM

Quote:

Originally Posted by Mecha
I encode my videos in DIKO and it works fine, no errors or what so ever. If you see something is wrong with the script maybe you wanna correct the problem and give me the right script to the job? :)

Not.

Start reading the forums and learn to use Avisynth.

Prodater64 10-12-2004 02:59 PM

Quote:

Originally Posted by Mecha
I encode my videos in DIKO and it works fine, no errors or what so ever. If you see something is wrong with the script maybe you wanna correct the problem and give me the right script to the job? :)

@Boulder: I beg your pardon, but I would like to teach Mecha some basics.

@Mecha: That script won't work outside DIKO, as it has some "VARIABLES" defined for DIKO itself. If you don't define those, the scrip won't work.
Use fitCD to find LanczosResize and Addborders values.
As you are noobie in this questions, I advise you to use Gripcrop, Gripsize, Gripborders in place of LanczosResize.
Use Dialhot's V4 script (avi sources) or Kwag's MA script (dvd sources). Search forum to find its.
And do also that what my friend Boulder said you.

Boulder 10-12-2004 03:25 PM

@Mecha: I may sound rude, but you're much better off starting at www.avisynth.org like Dialhot already told you in the thread at the DIKO forum. These forums are meant for discussing advanced techniques, which require a basic knowledge of Avisynth. If we explained every basic thing about AVS and related stuff, that would be all that we had the time for.

@Pro: No probs :wink:

Mecha 10-12-2004 03:35 PM

yeah I get your point.. But I just wanted one script that I could use over and over again, cuz Im not gonna go pro in this area. I just wanna make a template/script in DIKO so I dont have to do that stuff over and over again. I have no intention of learning AVISynth, that may sound ignorant becuase we are in the AVISynth forum. But thats what I want, and if you guys are to busy its ok. You should always try before you give up ;P

Prodater64 10-12-2004 05:09 PM

Quote:

Originally Posted by Mecha
yeah I get your point.. But I just wanted one script that I could use over and over again, cuz Im not gonna go pro in this area. I just wanna make a template/script in DIKO so I dont have to do that stuff over and over again. I have no intention of learning AVISynth, that may sound ignorant becuase we are in the AVISynth forum. But thats what I want, and if you guys are to busy its ok. You should always try before you give up ;P

DIKO has the better avs script, using V4 and MA ones, for DivX/XviD and DVD material respectively.


All times are GMT -5. The time now is 07:48 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.