Hello,
I am trying to crop off 74 pixels top and 74 pixels bottom.
Before I post my output script. Here is the error I get while trying to load it in VirtualDubMod.
Avisynth open failure:
Avisynth error: YV12 images for output must have a width divisible by 4 (use crop)!
LoadPlugin("C:\Program Files\DGIndex\DGDecode.dll")
MPEG2Source("I:\The_Matrix\dvd2avi.d2v")
Crop(74,0,0,74)
+ Reply to Thread
Results 1 to 30 of 52
-
-
the crop values are wrong
you must use :
crop(74,0,0,-74)
in this way you crop left 74, top 0, right 0, bottom 74 (don't know if this crop are correct... seems a little strange)
just use crop(crop_left,crop_top, -crop_right,-crop_bottom)
BHHHDConvertToX, AutoMen, AutoMKV Developer -
Originally Posted by guns1inger
I didn't have it as mpeg. I had it as vob's and made a .d2v. -
Originally Posted by php111
-
Originally Posted by Midzuki
-
I have no luck today.
Alright, I set everything in the DivX codec. I saved the 1st pass run it in job control. Go back to the codec and set up the Nth back and save it 2ndpass.avi run job later. Go down to job control and start it up and all I got was errors. No warnings. The errors was right next to the name on the right side. I tried the VirtualDubMod first and I got the error so I tried using VirtualDub and still got the error. Maybe perhaps I should VirtualDubMpeg2? What am I doing wrong here? -
Can you be more specific about what kind of error message?
What version of avisynth? I had problems with 2.5.8 and when I went back to 2.5.7 they went away
If you've traced the problem to avisynth and you are just doing simple crop & resize, you don't need avisynth. You can open up your VOB's in virtualdubmod and use the internal crop filter. -
Aren't you going to resize? Removing 74 pixels from both the top and the bottom leaves you with a 720x332 video (if from an NTSC DVD). Unless you are planning on having your player do the resize at playback time, this is going to play as a very strange looking AVI. Can't you tell it looks weird in VDubMod? That's if you ever get it to encode. Instead of trying Midzuki's completely unnecessary conversion to RGB32, why not do it correctly instead? Also, those crop values don't make any sense for either a 4:3 or 16:9 NTSC DVD. How did you come up with cropping 74 pixels from both the top and bottom?
Originally Posted by poisondeathray
Originally Posted by php111 -
Alright,
I got 74 pixels from the main DivX forums. Here is what the person gave me from a while or so ago.
http://forums.divx.com/forum/viewTopic.php?id=3683
If I am going to do it right, which should be the right way? I am here to talk about video with scripts and using any of the VDUB. I am not here to talk about GK or AutoGK products. -
That poster had the PAL DVD. Is yours PAL? The crop values will be very different for you. By "right way", part of what I mean is a resize. Since that particular thought didn't seem to have occurred to you, you could do worse than to use AutoGK. However, I admire your attempt to do a manual conversion, as misguided as it has been so far, and we are more than willing to help you out.
-
And are you working with Spiderman, as he is, or The Matrix, as it seems? Why are you using PAL crop values for a completely different NTSC movie. Get the proper crop values for your movie, and then do a proper resize. If you have the full Gordian Knot installed on your computer, open the D2V in GKnot, go to the Resolution Tab, make sure the Input PAR is ticked as NTSC 16:9, crop away the black bars, taking note of the crop values, do a resize to 640x272 or whatever you like, perhaps cropping a bit more to insure getting a low AR Error, and adjust your script accordingly. That's the way I do it, and I then make my own scripts and encode using VDubMod as well.
-
Originally Posted by manono
I have already made a .d2v file and DeMux the audio. -
Well, I can help you get the crop anyway. Make a basic script and open it in VDubMod:
LoadPlugin("C:\Program Files\DGIndex\DGDecode.dll")
MPEG2Source("I:\The_Matrix\dvd2avi.d2v")
Make sure Video is set for Full Processing Mode (although when encoding it should be set for Fast Recompress). Then Video->Filters->Add->Null Transform->Cropping. If you then tell me what crop values you get for (Left, Top, Right, Bottom) and the width you want (512, 640, 720, etc.), I can give you the final script.
By the way, I'm assuming you made the D2V using Force Film, and that it's 23.976fps. You can confirm in VDubMod by going File->File Information and checking the framerate. -
Originally Posted by manono
I would not even know where to begin to guess. I wouldn't even know how to make a final script. X1, Y1 and Y2 are all set at 0's. -
There's also an X2. You can scroll around and see the picture, right? So start increasing the Y1 and Y2 crop values from the initial 0 to somewhere around 60 or so, until the black bars above and below the active video are all gone. You'll want even numbered crop values. If there's any black on the left and right sides (X1 and X2), get rid of it as well.
-
Originally Posted by manono
-
I'm sorry, but I don't understand what you said. Scroll to a place where the picture is bright and there are clear, easily seen lines between the black at top and bottom and the movie itself. Then start increasing first the Y1 (using its bottom arrow) until the top black is gone, and then the Y2 (using its top arrow) until the bottom black is gone. Is that what you're having trouble with? If you still can't get it, post a 720x480 pic of a frame here and any of of us can figure it out for you.
-
Originally Posted by manono
-
Well, you could take a pic using a player. Most players have that ability. One easy to use one is Media Player Classic. Play a VOB, and then go File->Save Image, and save it as a JPEG. Just before posting in this thread, hit that "Browse" button just above the "Submit" button, browse to the pic, and include the pic along with the post.
I'd figure out the crop/resize values for you but I don't own The Matrix. I don't even like those movies. The longer this goes on, though, and the more trouble you have with a simple thing like cropping a video, the more confirmed in my belief I am that you should be using AutoGK instead. -
Originally Posted by manono
-
You could use AviSynth's AutoCrop filter, I suppose. You can find it here:
http://avisynth.org/warpenterprises/
I don't use it, so I can't give any advice if you run into problems. And you'll still have to resize after that. I have to go now, so perhaps someone else will step in to help out. Good luck.
Similar Threads
-
AviSynth open failure in VirtualDub
By fatcharlie in forum Newbie / General discussionsReplies: 5Last Post: 3rd Mar 2011, 21:32 -
Help with cropping & adding black borders with Avisynth
By jda in forum RestorationReplies: 9Last Post: 11th Oct 2010, 07:10 -
Avisynth question open failure FF3TdGPU.dll
By duster1234 in forum Video ConversionReplies: 4Last Post: 15th Oct 2008, 07:29 -
AviSynth open failure:
By rocky12 in forum Newbie / General discussionsReplies: 11Last Post: 29th Jul 2008, 20:35 -
AVIsynth failure in VD
By php111 in forum Newbie / General discussionsReplies: 1Last Post: 1st Jan 2008, 04:08