digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Trouble with GripCrop in the MA script! (http://www.digitalfaq.com/archives/avisynth/4362-avisynth-trouble-gripcrop.html)

audioslave 07-06-2003 04:50 PM

Trouble with GripCrop in the MA script!
 
Hi guys!
I'm having trouble with GripCrop in the MA script. Sometimes it work and sometimes it doesn't. I'm about to encode Bram Stoker's Dracula at the moment. And when I load the script into ToK and press start TMPGEnc gives me "Avisynth: caught an access violation at 0x0408f051, attempting to read from 0x03c910fe"... If I change to BicubicResize instead of GripCrip it usuallt works perfect. I think GripCrop is easier to use though and I would be thankful I someone could help me out with my problem.

kwag 07-06-2003 05:01 PM

Hi audioslave,

GripCrop behaves very strangely with some sources. In that case, use AviSynth's bicubic resizing with MovieStacker.

-kwag

audioslave 07-06-2003 05:17 PM

Okay, kwag,
I've found that using bicubic resizing produces ugly edges between the borders and the movie. Wouldn't mind getting rid of those. :wink:

kwag 07-06-2003 05:33 PM

Quote:

Originally Posted by audioslave
Okay, kwag,
I've found that using bicubic resizing produces ugly edges between the borders and the movie. Wouldn't mind getting rid of those. :wink:

Make sure you open your .d2v with TMPEG, and go to "Crop". Then cut out the black areas, and find the actual "Film pixels" area. Feed that to MovieStacker in the "Film pixels" fields, and then your resizing will be perfect ;)

-kwag

audioslave 07-06-2003 05:44 PM

Where in TMPGEnc can I find "Crop"? :roll:

EDIT: Never mind. I found it - "Clip frame" under the "Advanced" tab. :wink: Thank you once again, kwag!

audioslave 07-06-2003 06:01 PM

I'm sorry kwag. But, no, it doesn't work. :cry: What I mean is probably caused by ASharp (I would guess). The contrast between the film area and the border area of the frame makes ASharp enhance the contrast even more. This in turn will make the top and bottom lines of the movie area appear softer/lighter than the rest of the frame. And thus creating the "ugly border edge". Just my $0.02... Is there a way of making ASharp work only on the active film area?

EDIT: Do you want to see an example of what I'm talking about? Can I post or send you an image?

audioslave 07-06-2003 06:43 PM

I've made some tests now. And here are the results:
The combination of ASharp (1, 4) and MergeChroma(blur(1.50) is the cause of this "bleeding" border edge. I will make some more tests and I'll get back to you...

vhelp 07-06-2003 07:19 PM

@ audioslave..

can't you just move your Asharp() after your boarder() cleanup ??

I didn't realize people were applying filtering in the BLACK too 8O
-vhelp

audioslave 07-06-2003 07:30 PM

Oh, man. I'm sorry to have wasted both your and my precious time. :oops: After a reboot I cropped the image in TMPGEnc and filled in the numbers in MoveStacker. Works like a charm! :wink: Think it's time to take a computer break...

vhelp 07-06-2003 07:32 PM

@ audioslave..

Quote:

Originally Posted by audioslave
Oh, man. I'm sorry to have wasted both your and my precious time. :oops: After a reboot I cropped the image in TMPGEnc and filled in the numbers in MoveStacker. Works like a charm! :wink: Think it's time to take a computer break...

Yeah, me too. Time for some winnies (hotdogs) Dinner time for me.
-vhelp

bigggt 07-06-2003 08:30 PM

OK ,i am having the same trouble with gripfit as Audioslave.But now i'm getting confused when you use moviestacker and uncheck grifit it does the resizing for you and then you just copy and paste the BicubicResize line and then add borders, correct?But when you do it throught Tmpge the black borders on top and bottom are a lot smaller.Which is the best way to do it. :?

Thanx

vhelp 07-06-2003 09:48 PM

@ bigggt..

One solution might be to continue using GripFit(), THEN add a BicubicResize()
but make sure that the resize is proportionate to the final output size that
you are aiming for, via your DVD player :!:

Again, this is just "one" solution, but not THE solution.

when you GRIP/add your borders, resize right after to the desired size.

The key here is to know that you can't get the exact same letterboxing
or widescreen measurements as whats on the DVD when you're dealing
with MPEG-1 encodes :!:
Leave that to MPEG-2, but most everybody here uses MPEG-1, so the 4:3
AR seems to be the way to go since there is no support for 16:9 widescreen
format in MPEG-1.
So, if your borders are slightely more coverage than what's on the DVD,
that's fine. And, the reverse just as well. Just so long as the AR is not
messaged up ie, squished peoples and things - you know :wink:

Kwag seems to have this under control. Maybe he has a better
suggest for you all and your MPEG-1 encodings bliss :)

-vhelp

bigggt 07-07-2003 07:13 PM

Thanx Vhelp, i just get a little confused with all the ways to do things,

Just trying to learn a little :D

Thanx again

vhelp 07-07-2003 07:25 PM

hi bigggt..

The above method I laid out worked in a few test encodes I did, so I was
just sharing a bit of my experience, that's all.

But, when you do 4:3 AR (and, I'm not knocking it) after you do your
gripfig() 'ishy thing, somewhere's in between.. you ad in your prefered
method for resizing. Whatever works for ya, pal.

Code:

## First, we CROP the video ##
 # GripCrop(720, 480, source_anamorphic=false, overscan=0)
 # GripSize()
 # GripBorders()

 ## Next, we RESIZE (for correct AR) for TMPG ##
 # bicubicResize(720,272)

But, do watch out for your 4:3 AR, else you could mess it up I think.

The above was based on a past encode project I was toying around with.
But, you observe your AR and Croping and work out the difference. But,
I think that MStacker does all this for ya automatically. But, if you don't
have MStacker or just don't feel like running it through it, then you can
try my suggest above, and see how your's goes in comparison to MStacker.

It's fun, trying new and different technique's out, ain't it ?? :)
-vhelp

vico1 07-08-2003 01:12 AM

I`ve also had the "Gripfit" components choke on a few movie encodes as well.
(the latest being "Final Fantasy-spirits within")

When that happens I drop it, and take the few extra steps to use MStackers "BicubicResize"
and "AddBorders" parameters...usually fixes it right up.


*******************************
The Devil`s always.....in the Details!

J-Wo 07-08-2003 10:33 AM

Quote:

Originally Posted by kwag
Make sure you open your .d2v with TMPEG, and go to "Crop". Then cut out the black areas, and find the actual "Film pixels" area. Feed that to MovieStacker in the "Film pixels" fields, and then your resizing will be perfect ;)

Just wondering, but when is it necessary to do this? I always assumed that Moviestacker and/or Gripfit would handle all that stuff for me. I never bothered to check if my source was letterboxed or not and needed to be cropped. Should one do this for all .d2v files, since dvd2avi always adds black bars to the top and bottom? What about avi files which have no black bars?

kwag 07-08-2003 11:12 AM

Hi J-Wo,

I wouldn't use GripCrop on avis that don't have black bars. It usually throws off GripCrop. To give you an example, even my DVD of "The Boondock Saints" was thrown off by GripCrop :!:
The DVD is 4:3, but the movie is wide screen. So the black bars are really not "black" :)
In this case I HAD to manually find the film pixel area, and feed that to MovieStacker. Then I got a perfect aspect and resize ;)

-kwag

J-Wo 07-08-2003 11:19 AM

Okay, I think I'm confused!! :?

Quote:

Originally Posted by kwag
I wouldn't use GripCrop on avis that don't have black bars.

So you would use GripCrop on avis that do have black bars?

Quote:

Originally Posted by kwag
The DVD is 4:3, but the movie is wide screen. So the black bars are really not "black"

Ack what does that mean? If the dvd is 4:3 but the movie is wide does that mean it's anamorphic?

Okay maybe I should ask my questions more clearly:
1) When should one use GripCrop?
2) When should one use Clip Frame in TMPGEnc and feed that to Moviestacker under Film Pixels?

:D There, that should do it!


All times are GMT -5. The time now is 11:18 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.