VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 52
  1. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    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)
    Quote Quote  
  2. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Post a g-spot of your source mpeg file
    Read my blog here.
    Quote Quote  
  3. 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)

    BHH
    HDConvertToX, AutoMen, AutoMKV Developer
    Quote Quote  
  4. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Originally Posted by guns1inger
    Post a g-spot of your source mpeg file

    I didn't have it as mpeg. I had it as vob's and made a .d2v.
    Quote Quote  
  5. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Originally Posted by php111
    Originally Posted by guns1inger
    Post a g-spot of your source mpeg file

    I didn't have it as mpeg. I had it as vob's and made a .d2v.
    I tried it with (-) sign and I get the same error.
    Quote Quote  
  6. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    I tried converting it from YUV to RGB and it doesn't know what dvd2avi means and that is the name of my clip.


    LoadPlugin("C:\Program Files\DGIndex\DGDecode.dll")
    MPEG2Source("I:\The_Matrix\dvd2avi.d2v")
    ConvertToRGB(dvd2avi.d2v, matrix="rec709")
    Crop(74,0,0,-74)
    Quote Quote  
  7. Banned
    Join Date
    Jun 2007
    Location
    UNREACHABLE
    Search Comp PM
    Code:
    ConvertToRGB24()
    Crop(0,74,-0,-74)
    Quote Quote  
  8. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Originally Posted by Midzuki
    Code:
    ConvertToRGB24()
    Crop(0,74,-0,-74)
    Thank you so much. Your a genius! I had to convert it so I figure I convert it from YV12 to RGB
    Quote Quote  
  9. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    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?
    Quote Quote  
  10. 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.
    Quote Quote  
  11. 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
    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.
    Well, he's doesn't have any resize in his script, and he should. And using the VDub crop and resize filters necessitates using the much slower and inferior Full Processing where he should be using Fast Recompress, and is a very bad idea. Making the D2V and using MPEG2Source is by far the better way of doing it. He shouldn't be using the ConvertToRGB32() in the script, either.
    Originally Posted by php111
    Thank you so much. Your a genius! I had to convert it so I figure I convert it from YV12 to RGB
    No, you don't have to do a colorspace conversion, as DivX produces video in YV12, same as the DVD source. Converting to RGB32 and back again is slow and produces inferior results.
    Quote Quote  
  12. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  13. 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.
    Quote Quote  
  14. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Originally Posted by manono
    That poster had the PAL DVD. Is yours PAL?
    Most of mine are but the one I am working on right it is not. It is NTSC 16:9 progressive 720x480 was the results in DGIndex.
    Quote Quote  
  15. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    OK I understand. I will need help doing a manual conversion and I will do one. How ever I rather use the VDub products for my encodes.
    Quote Quote  
  16. 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.
    Quote Quote  
  17. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Originally Posted by manono
    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.
    How do I get the proper crop values?

    I have already made a .d2v file and DeMux the audio.
    Quote Quote  
  18. Hehe, I was editing as you were writing. For me, the easiest way to get both the crop and resize values are with the use of GKnot. You can use VDubMod to get the crop values, but unless you're familiar with the resizing math, getting a low AR Error resize can be tricky.
    Quote Quote  
  19. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Originally Posted by manono
    Hehe, I was editing as you were writing. For me, the easiest way to get both the crop and resize values are with the use of GKnot. You can use VDubMod to get the crop values, but unless you're familiar with the resizing math, getting a low AR Error resize can be tricky.
    Uhh!..... Will you please assist me with getting crop and resize using VDub?
    Quote Quote  
  20. 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.
    Quote Quote  
  21. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Originally Posted by manono
    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.

    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.
    Quote Quote  
  22. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    I do use DGIndex, I just name my .d2v as "dvd2avi.d2v" that's all.







    Originally Posted by manono
    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.
    Quote Quote  
  23. 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.
    Quote Quote  
  24. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Originally Posted by manono
    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 right and left sides (X1 and X2), get rid of it as well.
    It's not going to work for me. If it was changing something besides on guessing on moving bar around that I can't even tell. I would say I go for it. I am not good at judging to see if something will disappear.
    Quote Quote  
  25. 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.
    Quote Quote  
  26. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    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's a clear easily seen line 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.
    How do I post a pic? I never had to upload anything to a forum before. I rarely even take screen shots. I don't know what kind of programs that are out there freeware and what is the smallest format? I don't want nothing like JPEG. I be here all night uploading.
    Quote Quote  
  27. 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.
    Quote Quote  
  28. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    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.
    It's has nothing to do with encoding or writing scripts. Once I know what to write in the script, it's easy. The problem with me I have bad eyes so I really can't tell if a movie is too dark or too light and just because of simple, I am not at all going to use AutoGK for encodes and so on. I just wish there is "one" part that will be easy and that is cropping. If you tell me what to write for a script in pad. I probably will remember the script always.
    Quote Quote  
  29. 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.
    Quote Quote  
  30. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Does this script look good? Did I do it right?


    LoadPlugin("C:\Program Files\DGIndex\DGDecode.dll")
    LoadPlugin("C:\Program Files\Auto_Crop\AutoCrop.dll")
    LanczosResize(640,480)
    MPEG2Source("I:\The_Matrix\dvd2avi.d2v")
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!