digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Correct apect ratio script ? (http://www.digitalfaq.com/archives/avisynth/8023-avisynth-correct-apect.html)

khusru 02-04-2004 10:30 AM

Avisynth: Correct apect ratio script ?
 
can someone please give me a script so that i can keep the correct aspect ratio when encoding, im farely new to the script stuff. also can someone give me a script to make an anamorphic widescreen picture, thanks for all help

khusru 02-04-2004 10:45 AM

also, i tried out my first script
AviSource("C:\once upon a time in mexico.avi"),
and it opened the video file okay, but the picture quality wasnt as good, is this NORMAL, if i open the video file by double clicking it it looks so much better

Dialhot 02-04-2004 10:47 AM

All scripts given in this section and that use "gricrop" handle correctly the A/R problem.

All you have to do is :
- if your source is anamorphic, add source_anamorphic=true in gripcrop line
- if your source isn't anamorphic, add source_anamorphic=false
- if you want to make a TARGET anamorphic add dest_anamorphic=true
- if you want to make a TARGET non-anamorphic add dest_anamorphic=false

Note that by default gripcrop use "source_ana=true" and "dest_ana=false".

Dialhot 02-04-2004 10:51 AM

Quote:

Originally Posted by khusru
is this NORMAL, if i open the video file by double clicking it it looks so much better

All is matter of codecs, directshow filters and settings of all of them. But correctly configured, and with the correct codecs, the playback is the same.

Note: is you are doing avi, you should use the scripts given in avi->kvcd forum. And you MUST stop post in this one.

khusru 02-04-2004 10:56 AM

if i want my output to be anamorphic, is this the full script??


AviSource("C:\once upon a time in mexico.avi")
dest_anamorphic=true


also after using the script to run the video file is it normal for the quality to not be as good as normal

incredible 02-04-2004 11:10 AM

Nope, you have to use Gripfit!

AviSource("C:\once upon a time in mexico.avi")
Gripcrop(704,576, dest_anamorphic_true)
Gripsize("Bicubicresize")
Gripborders()


You see the needed lines, Dialhot just explained the right parameters!
Do look at the optimal scripts in here and you do understand ;-)

Dialhot 02-04-2004 11:37 AM

Quote:

Originally Posted by khusru
also after using the script to run the video file is it normal for the quality to not be as good as normal

You probably missed the post I did 5 min before yours : I already answered.

khusru 02-04-2004 05:30 PM

thanks guys for all help

this is the script as i used it

AviSource("C:\once upon a time in mexico.avi")
Gripcrop(704,576, dest_anamorphic_true)
Gripsize("Bicubicresize")
Gripborders()

but virtual dub game me this error message:
' i dont know what dest_anamporphic true' means

can i use scripts in tmpg and how do i use it? is this script okay if iwant my output to be anamorphic

incredible 02-04-2004 06:21 PM

Quote:

Originally Posted by khusru
thanks guys for all help

this is the script as i used it

AviSource("C:\once upon a time in mexico.avi")
Gripcrop(704,576, dest_anamorphic_true)
Gripsize("Bicubicresize")
Gripborders()

but virtual dub game me this error message:
' i dont know what dest_anamporphic true' means

can i use scripts in tmpg and how do i use it? is this script okay if iwant my output to be anamorphic

Im shure you didn't copy the mentioned lines correctly as the error means you did typ anamporphic! and its called anamorphic!

Dialhot 02-04-2004 06:27 PM

Quote:

Originally Posted by incredible
Im shure you didn't copy the mentioned lines correctly as the error means you did typ anamporphic! and its called anamorphic!

No, in fact he wrote "dest_anamorphic_true" where I said top put EGUALS true.

dest_anamorphic = true

khusru 02-04-2004 07:08 PM

dial hot this is how i typed it now

AviSource("C:\once upon a time in mexico.avi")
Gripcrop(704,576, dest_anamorphic=true)
Gripsize("Bicubicresize")
Gripborders()

and it shows another error message, CANNOT LOAD SYLIA SCRIPTING LANGUAGE ( thats in virtual dub) when i use media player it says THERE IS NO FUNCTION NAMED GRIPCROP,

help as i am lost

khusru 02-04-2004 07:15 PM

can i use scripts in tmpg and how do i use it?

rds_correia 02-04-2004 07:35 PM

Hi there,
Just download yourself a GripFit_YV12 plugin so that those messages coming out of media player and VDub stop annoying you.
You can use your script in tmpgenc but you'll neec ReadAVS.dll plugin.
Make sure you follow the installation notes for ReadAVS and just put GripFit_YV12 in your plugins directory :wink:
C ya

Note: search for those plugins at http://www.avisynth.org/warpenterprises/ :D

mistermickster 02-05-2004 10:30 AM

You're posting in the 'Optimal Scripts' forum, but have you actually taken a look at the Latest Scripts thread :?:

You'll see from that, that your script is far from complete. :?

Also, remove the spaces from your looooooooooong file name, it will save problems later :wink:

khusru 02-05-2004 11:19 AM

AviSource("C:\once upon a time in mexico.avi")
Gripcrop(704,576, source_anamorphic=true)
Gripsize("Bicubicresize")
Gripborders()
LegalClip()

unfilter(50,50)
GripCrop( X, Y )
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0, 8, 32)
# SpaceDust() # Optional - for some "not so clean" DVDs.
temporalsmoother(1,2)
mergechroma(blur(1.50))
mergeluma(blur(0.2))
# Convolution3d or DCTFilter for extreme worse cases.
GripBorders()
LegalClip()

Is this okay for my final script, my source is anamorphic, but i want my destination
to be a 4:3 image with the corret borders

Jellygoose 02-05-2004 01:42 PM

If your source is anamorphic, you'll get egg-headed persons, when you want it to be 4:3. :roll:

btw: you're using the optimal script for AviSynth 2.0x, which is outdated. you should get AviSynth 2.5x and use the optimal script for that version.

EDIT: that script is totally screwed man. You should read a little bit about scripting on the AviSynth Homepage or in the Docs. Why do you have 2 GripCrop lines in it, and one without any values added? :roll:

Dialhot 02-05-2004 01:56 PM

Quote:

Originally Posted by khusru
Is this okay for my final script, my source is anamorphic, but i want my destination
to be a 4:3 image with the corret borders

Your source is an avi and as 99% of chance to NOT be anamorphic.
Only DV avi can be anamorphic. Divx aren't except if the guy that did it is dumb.


All times are GMT -5. The time now is 05:26 PM  —  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.