Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
3rd January 2005, 15:31 | #1 | Link |
I'm afraid we've to stop
Join Date: Mar 2003
Location: Amongst mad people
Posts: 5,398
|
new version of AutoCrop plugin
Here we go - version 1.2. Change log:
- fixed bug when preview and actual crop values were different - fixed bug when AR was not properly enforced (rounding errors) - threshold 0 ensures that no cropping is done unless necessary for AR - fixed bug when leftAdd and rightAdd parameters were not properly working in YUY2 mode - wMulfOf and hMultOf cannot be zero now - wMultOf is relaxed to be mod2 for YV12 (previously mod4) - added mode=3 which is mode 0 plus mode 2 (cropping and logging at the same time) Download: http://len0x.leffe.dnsalias.com/autocrop12.zip
__________________
Gordian Knot Family: Gordian Knot: website, download Auto Gordian Knot: Website and download, tutorial, FAQ |
5th January 2005, 11:42 | #3 | Link |
I'm afraid we've to stop
Join Date: Mar 2003
Location: Amongst mad people
Posts: 5,398
|
It is protected via referrers feature, so downloads are only possible via clicking through this forum.
__________________
Gordian Knot Family: Gordian Knot: website, download Auto Gordian Knot: Website and download, tutorial, FAQ |
24th April 2006, 11:29 | #4 | Link |
Registered User
Join Date: Nov 2005
Posts: 7
|
A lot of time has passed since the last post...
I would like to use this promising filter to crop, on the fly, my DVDs (or whatever video file) through ffshow + Avisynth. BTW, it seems doesn't work very well. Strange things happen. When I use this call, the simpleAutoCrop(), I get this situation: It seems do not crop (as preview) the frame. If I click on the ffdshow properties, and I modifiy and resave (with the apply button) the Avisynth call, the preview changes as following screenshot: So, I try to crop for real the source. I change the AutoCrop call with: AutoCrop(mode=0,aspect=-1) (the aspect parameter should be maintain the original aspect ratio). But the result is very odd; the frame is very little (indicated by the arrow): Some ideas? Last edited by stealth82; 24th April 2006 at 11:34. |
26th April 2006, 10:07 | #6 | Link | |
Registered User
Join Date: Nov 2005
Posts: 7
|
Quote:
BTW, I'm start to think that's impossible achieve my goal. In a DVD the frame dimensions change several times and the AutoCrop function don't recognize this (it would be useful a sort of reexecution). So, I get a cutted frame even when not necessary (based on the first "sample"). Thanks anyway. |
|
31st December 2006, 18:03 | #7 | Link |
Registered User
Join Date: Oct 2006
Posts: 204
|
Dumb question about this plugin.. If you define samples = 50 and give some broad range for start and end frame (say, 7500 and 30000), does autocrop pick randomly 50 frames in that range or just 50 sequential frames in 7500 onwards?
|
19th May 2007, 02:19 | #9 | Link |
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
I think there's a bug in the plugin. Even when wMultOf and hMultOf are specified, the plugin will pick top and bottom points which aren't multiples of those numbers. This can be really bad when dealing with YV12 video. For example, regardles of the MultOf values, the filter might still do Crop(6,2,64,128). This will effectively mess up the chroma in a YV12 video.
|
19th May 2007, 11:51 | #10 | Link |
I'm afraid we've to stop
Join Date: Mar 2003
Location: Amongst mad people
Posts: 5,398
|
I think that would have been noticed ealier if it was a common problem... what's you avisynth script and how do you know it doesn't respect the parameters?
__________________
Gordian Knot Family: Gordian Knot: website, download Auto Gordian Knot: Website and download, tutorial, FAQ |
19th May 2007, 21:16 | #11 | Link | |
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
Quote:
I used the log function to verify that it was cropping on mod2 dimensions. Also, there was chroma ghosting in the cropped video. Converting the video to YUY2 made the chroma problem go away - which would strongly suggest AutoCrop was not respecting mod4 cropping for YV12. |
|
19th May 2007, 22:02 | #12 | Link |
I'm afraid we've to stop
Join Date: Mar 2003
Location: Amongst mad people
Posts: 5,398
|
You should probably re-read what those parameters actually do: "Ensures that the width/height of the cropped clip will be a multiple of the number specified. Use
this to ensure that clip is a valid for whatever codec you are going to compress with." It does NOT ensure the crop itself will be done as mod16 in your case, but just height/width...
__________________
Gordian Knot Family: Gordian Knot: website, download Auto Gordian Knot: Website and download, tutorial, FAQ |
21st May 2007, 10:39 | #13 | Link | ||
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
Quote:
Quote:
|
||
21st May 2007, 18:28 | #14 | Link |
I'm afraid we've to stop
Join Date: Mar 2003
Location: Amongst mad people
Posts: 5,398
|
That is probably true, but I'm just pointing out that there is no bugs in existing parameter implementation. I didn't write the original plugin, so I can't comment on what was the intended use, but since no one raised this for many years before I'm guessing no one is using it on interlaced material (I always deinterlace before crop)...
__________________
Gordian Knot Family: Gordian Knot: website, download Auto Gordian Knot: Website and download, tutorial, FAQ |
22nd May 2007, 19:32 | #16 | Link |
I'm afraid we've to stop
Join Date: Mar 2003
Location: Amongst mad people
Posts: 5,398
|
Frankly I don't understand the question and not only the question itself, but logic behind it...
__________________
Gordian Knot Family: Gordian Knot: website, download Auto Gordian Knot: Website and download, tutorial, FAQ |
29th May 2007, 11:13 | #17 | Link | |
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
Quote:
|
|
13th April 2008, 21:10 | #19 | Link |
ASXGui Developer
Join Date: Sep 2007
Posts: 248
|
I'm having a problem, some videos can't be auto cropped because they aren't YUY2 or YV12, so I add ConverttoYV12() to the script before autocrop and it hangs whenever I open the AVS in any program.
Last edited by morphinapg; 13th April 2008 at 21:15. |
14th April 2008, 07:20 | #20 | Link |
HDConvertToX author
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
|
a simple workaround for not yv12 file could be this
Code:
movie = directshowsource("myfile.mkv",fps=25.000000,convertfps=true,audio=false) movie = isRGB(movie) ? ConvertToYV12(movie,interlaced=true) : movie movie = isYUY2(movie) ? ConvertToYV12(movie,interlaced=true) : movie BHH
__________________
HDConvertToX: your tool for BD backup MultiX264: The quick gui for x264 AutoMen: The Mencoder GUI AutoWebM: supporting WebM/VP8 |
|
|