digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KDVD: Resize or not resize, that is the question. (http://www.digitalfaq.com/archives/encode/13783-kdvd-resize-resize.html)

incredible 09-12-2005 03:40 AM

@ Supermule

IF GripFit_YV12.dll does work, then I would let Gripfit do the job as it gots an internal movie-frames-sample-count autocropper following by a PAR! based resizer. Gripfit does a very good job mainly on PAR1:1 inputs.

So if no Errors do occur (example: in case of using makeavis.exe), then try it.

supermule 09-12-2005 03:57 AM

Quote:

Originally Posted by incredible
@ Supermule

IF GripFit_YV12.dll does work, then I would let Gripfit do the job as it gots an internal movie-frames-sample-count autocropper following by a PAR! based resizer. Gripfit does a very good job mainly on PAR1:1 inputs.

So if no Errors do occur (example: in case of using makeavis.exe), then try it.

Thanks incred, I have often seen gripfit being used(it seems quite popular) but never tried it myself. Will try it.

supermule 09-15-2005 05:10 AM

Quote:

Originally Posted by supermule
Quote:

Originally Posted by incredible
@ Supermule

IF GripFit_YV12.dll does work, then I would let Gripfit do the job as it gots an internal movie-frames-sample-count autocropper following by a PAR! based resizer. Gripfit does a very good job mainly on PAR1:1 inputs.

So if no Errors do occur (example: in case of using makeavis.exe), then try it.

Thanks incred, I have often seen gripfit being used(it seems quite popular) but never tried it myself. Will try it.

Where can I find a Gripfit, I searched with no results.

incredible 09-15-2005 05:30 AM

www.incredible.de.tf/Downloads/GripFit_YV12.rar

danpos 09-17-2005 12:40 PM

Quote:

Originally Posted by Dialhot
Because they do not take in account borders that exist in original DVD sources and that should be cropped before the calc to enhance the result (and speed).

This is not truth: The functions below take the features that you said into account:


Code:

Function SimpleDVDCrop(clip c, bool interlaced) {
  global SourceDVDHeight=c.height()
  global SourceDVDWidth=c.width()
  c=(interlaced==false) ? AutoCrop(c,0, 4, 2, 2, 2, 2, 2, 40, 10) : c
  return(c)
}

Function SimpleDVDResize(clip c, int NewFullWidth, int NewFullHeight, int source_widescreen, int widescreen) {
  SAR=(source_widescreen==0) ? 1.3333 : 1.77777
  DAR=(widescreen==0) ? 1.3333 : 1.77777
  #Factor is: (SourceHeight with borders*SourceAspectRatio) /
  #            (Newheight with borders*DestinationAspectRatio)
  factor= ((SourceDVDHeight*1.0)*SAR) / ( (NewFullHeight*1.0)*DAR)
  # Stores parameters to be used again later
  global gNewFullWidth = NewFullWidth
  global gNewFullHeight = NewFullHeight
  #

Function SimpleAddBorders(clip c) {
  HorizontalBorder=((gNewFullWidth-c.width()) != 0 ) ? (gNewFullWidth-c.width)/2 : 0

  FullVerticalBorder=((gNewFullHeight-c.height()) != 0 ) ? (gNewFullHeight-c.height) : 0
  TopBorder=(FullVerticalBorder !=0) ? round((FullVerticalBorder/16))*8 : 0
  BottomBorder=(FullVerticalBorder !=0) ? ( round((FullVerticalBorder/16))*8+(FullVerticalBorder % 16) ) : 0
  c=addborders(c,HorizontalBorder,TopBorder,HorizontalBorder,BottomBorder)
  return(c)
}

Just for clarifying the things up (no "war flame" at all, OK ???).

Cya!

rds_correia 09-17-2005 01:40 PM

Quote:

Originally Posted by danpos
Just for clarifying the things up (no "war flame" at all, OK ???).

And why would we think of such a thing, Danilo?
All is fine from my point of view.
Nice seeing you around ;-).
Cheers

EDITED
BTW from where I stand, I think we should never use GripFit, DivxResize - or whatever plugin or function out there - to resize our video.
Simply take Moviestacker or FitCD and do the job manually.
This way one get's the feeling of what will happen to the video with more overscan or less overscan and all.
But the above mentioned tools are good for newbies that don't know how to use MS or FitCD and want to see a movie encoded just to get started.

Boulder 09-17-2005 03:04 PM

Many times AutoCrop (or any other automatic cropping method) will fail to crop some garbage lines. I usually run AutoCrop and then check the result manually, there are often some extra pixels to crop.

kwag 09-17-2005 04:27 PM

The best cropping tool is Vdub with null transform filter applied, and manually finding out film pixel area ;)

-kwag

Dialhot 09-17-2005 05:23 PM

Quote:

Originally Posted by danpos
This is not truth: The functions below take the features that you said into account:

You're right. I'd read and read again the function to find where it was done and I just see the "autocrop" line now.
:arrow: But it does this only with non interlaced sources.


Code:

Function SimpleDVDCrop(clip c, bool interlaced) {
  global SourceDVDHeight=c.height()
  global SourceDVDWidth=c.width()
  c=(interlaced==false) ? AutoCrop(c,0, 4, 2, 2, 2, 2, 2, 40, 10) : c
  return(c)
}

Note: autocrop always fails by 2 pixels on the left side.

danpos 09-17-2005 05:59 PM

Quote:

Originally Posted by Dialhot
:arrow: But it does this only with non interlaced sources.

Now I've to say: this is very true :!: :D For interlaced sources there are other functions available only for GOLD user.

@All

Obviously I agree that do use 'manual' crop/resize procedure does the trick (I mean to use FitCD - my preferred tool for now - or other equivalent tool) cos in this way the advanced user can tweak the parameters in accordance with your taste. The above functions are intended for another kinda user, which are the guys that like of solutions 'one click button and go to take a beer' :lol:.

That's all folks!

Cya!

incredible 09-17-2005 06:59 PM

What was the problem with GripCrop?
I never had a problem except using it when doing a fake avi using makeavis.exe out of such a script.


Is there a source of addbordes() available?
Maybe I could fix and compile it as new using MinGw. Or Vmesquita could have a look at it as he gots much more skills in c++ work and compiling such a dll.

kwag 09-17-2005 07:25 PM

Quote:

Originally Posted by incredible
Is there a source of addbordes() available?
Maybe I could fix and compile it as new using MinGw.

I think you need VC exclusively to compile AviSynth and filters.

-kwag

Prodater64 09-17-2005 10:25 PM

I got the message removegrain: invalid mode???

supermule 09-18-2005 12:09 AM

Quote:

Originally Posted by Prodater64
I got the message removegrain: invalid mode???

You get that if you are not on the latest version 0.9.............so upgrade pls.

Dialhot 09-18-2005 03:52 AM

Quote:

Originally Posted by incredible
What was the problem with GripCrop?
I never had a problem except using it when doing a fake avi using makeavis.exe out of such a script.

Very common "avisynth caugth an error..." during the encoding that disappears when you remove Gripcrop. This can have been solved with newer avisynth release but I do not use Gripfit since 2.5.4.

incredible 09-18-2005 07:59 AM

Ah, I see ...

Then maybe someone should at least give Latexx a PM if he maybe could again look at the sources and maybe mod them for proper avs 2.54 and up usage as he was the one who made GripFit capable handling YV12 sources also.

supermule 09-18-2005 09:22 AM

Quote:

Originally Posted by incredible
Ah, I see ...

Then maybe someone should at least give Latexx a PM if he maybe could again look at the sources and maybe mod them for proper avs 2.54 and up usage as he was the one who made GripFit capable handling YV12 sources also.

If I understand this particular post correctly, let me tell you, its not in good taste.........you need to respect ppl specially who are not with us now and have contributed so much..........................

Boulder 09-18-2005 09:27 AM

Quote:

Originally Posted by supermule
Quote:

Originally Posted by incredible
Ah, I see ...

Then maybe someone should at least give Latexx a PM if he maybe could again look at the sources and maybe mod them for proper avs 2.54 and up usage as he was the one who made GripFit capable handling YV12 sources also.

If I understand this particular post correctly, let me tell you, its not in good taste.........you need to respect ppl specially who are not with us now and have contributed so much..........................

WTF?

digitall.doc 09-18-2005 09:38 AM

supermule:
- what do you think is not respectous in Inc post?. Just opposite, his kind suggestion is in order to help developer fix a bug :?:
- when you say Latexx is not with as now you mean with us at KVCD.net, or that he is not with us and won't be never again. Please clarify this. I don't like it when someone disappears from forums and we don't know about them ever again (like bilu and many others). I know, it's silly, but makes me worry.

Boulder 09-18-2005 09:44 AM

And actually Latexxx hasn't disappeared anywhere, he's for example active at the Hydrogenaudio forums. Inc meant that someone should ask him if he could check the code and see if he can fix it. SansGrip's not been around for a while so I don't think he's going to do anything about it.


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

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