Quantcast Avisynth: Trouble with Gripcrop in the MA Script! - digitalFAQ.com Forums [Archives]
  #1  
07-06-2003, 04:50 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
AudioSlave
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
07-06-2003, 05:01 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi audioslave,

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

-kwag
Reply With Quote
  #3  
07-06-2003, 05:17 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
AudioSlave
Reply With Quote
  #4  
07-06-2003, 05:33 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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.
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
Reply With Quote
  #5  
07-06-2003, 05:44 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Where in TMPGEnc can I find "Crop"?

EDIT: Never mind. I found it - "Clip frame" under the "Advanced" tab. Thank you once again, kwag!
__________________
AudioSlave
Reply With Quote
  #6  
07-06-2003, 06:01 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
I'm sorry kwag. But, no, it doesn't work. 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
Reply With Quote
  #7  
07-06-2003, 06:43 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
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...
__________________
AudioSlave
Reply With Quote
  #8  
07-06-2003, 07:19 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
@ audioslave..

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

I didn't realize people were applying filtering in the BLACK too
-vhelp
Reply With Quote
  #9  
07-06-2003, 07:30 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Oh, man. I'm sorry to have wasted both your and my precious time. After a reboot I cropped the image in TMPGEnc and filled in the numbers in MoveStacker. Works like a charm! Think it's time to take a computer break...
__________________
AudioSlave
Reply With Quote
  #10  
07-06-2003, 07:32 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
@ audioslave..

Quote:
Originally Posted by audioslave
Oh, man. I'm sorry to have wasted both your and my precious time. After a reboot I cropped the image in TMPGEnc and filled in the numbers in MoveStacker. Works like a charm! Think it's time to take a computer break...
Yeah, me too. Time for some winnies (hotdogs) Dinner time for me.
-vhelp
Reply With Quote
  #11  
07-06-2003, 08:30 PM
bigggt bigggt is offline
Free Member
 
Join Date: Mar 2003
Location: IamCanadian
Posts: 848
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #12  
07-06-2003, 09:48 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
@ 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

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

-vhelp
Reply With Quote
  #13  
07-07-2003, 07:13 PM
bigggt bigggt is offline
Free Member
 
Join Date: Mar 2003
Location: IamCanadian
Posts: 848
Thanks: 0
Thanked 0 Times in 0 Posts
Thanx Vhelp, i just get a little confused with all the ways to do things,

Just trying to learn a little

Thanx again
Reply With Quote
  #14  
07-07-2003, 07:25 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #15  
07-08-2003, 01:12 AM
vico1 vico1 is offline
Free Member
 
Join Date: Sep 2002
Location: USA
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Reply With Quote
  #16  
07-08-2003, 10:33 AM
J-Wo J-Wo is offline
Free Member
 
Join Date: Nov 2002
Location: Toronto, Canada
Posts: 454
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #17  
07-08-2003, 11:12 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #18  
07-08-2003, 11:19 AM
J-Wo J-Wo is offline
Free Member
 
Join Date: Nov 2002
Location: Toronto, Canada
Posts: 454
Thanks: 0
Thanked 0 Times in 0 Posts
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?

There, that should do it!
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualDub: trouble when loading script.avs in VDub HC_Pensador Video Encoding and Conversion 8 05-26-2004 08:07 AM
KVCD: trouble getting the desired output from the script? Jimblob Video Encoding and Conversion 12 04-30-2004 05:44 PM
Avisynth: Reason for GripCrop and GripSize location in optimal script? FredThompson Avisynth Scripting 15 07-28-2003 11:42 AM
Avisynth: Trouble with MA-Script in PAL? Avalon Avisynth Scripting 45 07-18-2003 04:48 PM
Why no GripCrop/GripSize in new Avisynth script? Grantman Avisynth Scripting 9 06-19-2003 05:26 AM

Thread Tools



 
All times are GMT -5. The time now is 05:33 PM  —  vBulletin © Jelsoft Enterprises Ltd