VideoHelp Forum




+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 52 of 52
  1. Originally Posted by php111
    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")
    You can't use the same script "formula" for every movie.

    Manono was using the crop in virtual dub to see what values are required to be entered into you script for the crop. Am I assuming correctly that you want to cut the "black borders" off such as in the screenshot attached? In this example, the Y1 offset is 80 (but needs to be a bit more to cut the rest of the black border). Once you get your values, you can enter them into your script. What works for the Spider-Man movie might now wort for the Matrix.

    You should crop, then resize. Your script above just resizes. Your 1st script just crops, no resize. What do you want for your final resolution? 640x480 as in your script is no good if the original movie was 16:9. 640x480 is 4:3 SD. You also should use a resolution that is a multiple of 16 for maximum compatibility (mod16) such as 640x368, 608x336 etc... for 16:9 resolutions.

    EDIT: My apologies, I didn't see the autocrop argument! Please continue

    Quote Quote  
  2. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    huh?????? I am total lost. Forget the VDub crop. I said. I rather use AVS scripts.....
    Quote Quote  
  3. The vdub crop was to visually show you how much to crop instead of guessing a number like 72. (i.e. what numbers to enter in your avs script for the crop argument: Crop(left, top, right, bottom) ) They correspond. Otherwise you are guessing a number.

    If you are using autocrop, you don't need to figure out how much to crop. But be warned, autocrop doesn't always work, and isn't the most accurate.

    Cheers
    Quote Quote  
  4. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    The vdub crop was to visually show you how much to crop instead of guessing a number like 72. (i.e. what numbers to enter in your avs script for the crop argument: Crop(left, top, right, bottom) ) They correspond. Otherwise you are guessing a number.

    If you are using autocrop, you don't need to figure out how much to crop. But be warned, autocrop doesn't always work, and isn't the most accurate.

    Cheers
    Everything else I will understand. You tell me how to write a script. Most likely I understand it and encoding in VDub, for sure I will understand it but this cropping is getting to me. I did not understand a thing about. Who cares, if I have to use AutoCrop I will. At least it's writing a script. But how what lines do I put in?
    Quote Quote  
  5. Banned
    Join Date
    Jun 2007
    Location
    UNREACHABLE
    Search Comp PM
    php111 wrote:
    Thank you so much. Your a genius!
    Far from that!

    manono wrote:
    Instead of trying Midzuki's completely unnecessary conversion to RGB32,
    why not do it correctly instead?
    That's right, no need for any color-space conversion
    "AddBorders(0,2,0,2) + Crop(0,76,-0,-76)" would work much better.

    Anyway: if I were the OP, I would take a screenshot of the movie,
    would open it in Paint Shop Pro, and would let my eyes decide how much
    cropping/resizing the proper re-encoding would require.
    Quote Quote  
  6. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    In order for me to crop. Is this the only thing I need to do plus with my MPEG2Souce and LoadPlugin?

    "AddBorders(0,2,0,2) + Crop(0,76,-0,-76)"

    Would that be it?







    Originally Posted by Midzuki
    php111 wrote:
    Thank you so much. Your a genius!
    Far from that!

    manono wrote:
    Instead of trying Midzuki's completely unnecessary conversion to RGB32,
    why not do it correctly instead?
    That's right, no need for any color-space conversion
    "AddBorders(0,2,0,2) + Crop(0,76,-0,-76)" would work much better.

    Anyway: if I were the OP, I would take a screenshot of the movie,
    would open it in Paint Shop Pro, and would let my eyes decide how much
    cropping/resizing the proper re-encoding would require.
    Quote Quote  
  7. Would that be it?
    No. Not at all. Again, that guy was working with a different PAL movie. They have an initial resolution of 720x576 as against the NTSC 720x480. The PAL crop values are different and much greater than are the NTSC ones for the same movie. Using your script from before, in addition to loading the AutoCrop.dll, you also have to have it actually do something. As I said, I don't use it, but it could be as simple as removing one line and adding another to the script:

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

    Read the doc to see if more than that is needed. Or open the script in VDubMod and scroll around to see if the black bars are all gone.

    And after that you'll still have to resize. Again, a pic will be helpful. If you didn't like my suggestion of getting a pic from Media Player Classic, then open the unfiltered script in VDubMod (no Autocrop, just the basic 2 line script I showed you before), go Video->Snapshot Source frame, save it as a PNG (NOT BMP or TGA), and include it here.
    Quote Quote  
  8. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    OK, I save as the image with MPC so please let's go slow.

    The full name of it is VTS_02_0.VOB

    What would be my next step? I tried posting it like that by hitting the browse button under new reply. It is going to take a long time to upload. The reason why because I might be uploading it as a VERY large image.







    Originally Posted by manono
    Would that be it?
    No. Not at all. Again, that guy was working with a different PAL movie. They have an initial resolution of 720x576 as against the NTSC 720x480. The PAL crop values are different and much greater than are the NTSC ones for the same movie. Using your script from before, in addition to loading the AutoCrop.dll, you also have to have it actually do something. As I said, I don't use it, but it could be as simple as removing one line and adding another to the script:

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

    Read the doc to see if more than that is needed. Or open the script in VDubMod and scroll around to see if the black bars are all gone.

    And after that you'll still have to resize. Again, a pic will be helpful. If you didn't like my suggestion of getting a pic from Media Player Classic, then open the unfiltered script in VDubMod (no Autocrop, just the basic 2 line script I showed you before), go Video->Snapshot Source frame, save it as a PNG (NOT BMP or TGA), and include it here.
    Quote Quote  
  9. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    ahh hand holding

    Originally Posted by php111
    Everything else I will understand.
    really?


    more than enough information's been provided so far.
    probably too much.

    if you had posted a screenshot (perfectly explained), you'd have had a script by now.
    even stating whether it's ntsc or pal, would be plenty.

    still,
    i'll take a stab in the dark:
    Code:
    LoadPlugin("C:\Program Files\DGIndex\DGDecode.dll")
    MPEG2Source("I:\The_Matrix\dvd2avi.d2v") 
    crop(4,60,-4,-62)
    lanczos4resize(640,272)

    tripp

    edit: i'd settle for the bmp from dgindex,
    just press b....
    Quote Quote  
  10. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Here it is....
    Quote Quote  
  11. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    whew! thank you so much........






    Originally Posted by 45tripp
    ahh hand holding

    Originally Posted by php111
    Everything else I will understand.
    really?


    more than enough information's been provided so far.
    probably too much.

    if you had posted a screenshot (perfectly explained), you'd have had a script by now.
    even stating whether it's ntsc or pal, would be plenty.

    still,
    i'll take a stab in the dark:
    Code:
    LoadPlugin("C:\Program Files\DGIndex\DGDecode.dll")
    MPEG2Source("I:\The_Matrix\dvd2avi.d2v") 
    crop(4,60,-4,-62)
    lanczos4resize(640,272)

    tripp

    edit: i'd settle for the bmp from dgindex,
    just press b....
    Quote Quote  
  12. All I see when I click on that BMP is a black screen. Is it just me or is it true for others as well? If so, we need to see part of the video so we know where to crop. 45tripp's script may or may not have cropped away the black, but no one can be sure without seeing an actual screen.
    The full name of it is VTS_02_0.VOB
    MPC doesn't save screen caps as VOBs. They will be a bunch of numbers followed by a JPG extension. I think you pressed "Save As" rather than "Save Image"
    Quote Quote  
  13. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Sorry it was a black screen. I am new to uploading so it might take me a few tries to get it. Hold on let me try MPC again.



    Originally Posted by manono
    All I see when I click on that BMP is a black screen. Is it just me or is it true for others as well? If so, we need to see part of the video so we know where to crop. 45tripp's script may or may not have cropped away the black, but no one can be sure without seeing an actual screen.
    The full name of it is VTS_02_0.VOB
    MPC doesn't save screen caps as VOBs. They will be a bunch of numbers followed by a JPG extension. I think you pressed "Save As" rather than "Save Image"
    Quote Quote  
  14. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Save Image is ghosted out so I can't click on it to save it.
    Quote Quote  
  15. Hehe, if it's not one thing it's another. Well, get it from VDubMod, following the instructions I gave before.
    Quote Quote  
  16. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    Originally Posted by manono
    All I see when I click on that BMP is a black screen.
    lol
    yeah what the hell was that...
    just how bad is your eyesight?



    adding borders just to crop them off again was pretty funny too :P
    Quote Quote  
  17. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Why is writing little "scripts" are easier then uploading and cropping?
    Quote Quote  
  18. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Looks like there "won't" be an image uploading because I get an error. Why and can I possibly DeInterlace a video that perhaps to be Interlaced such as using TomsMoComp? That is easy!
    Quote Quote  
  19. If you have a good pic of the movie, but for some reason can't upload it here, then maybe try uploading to a 3rd party site and post the link. Photobucket is good:

    http://photobucket.com/

    or ImageShack:

    http://www.imageshack.us/
    Quote Quote  
  20. Guest34343
    Guest
    Guys, I think php111 is pulling your chains.
    Quote Quote  
  21. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    Originally Posted by neuron2
    Guys, I think php111 is pulling your chains.
    Either that, or he is denser than plutonium.
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  



Similar Threads

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