VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 43
  1. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    Im encoding a dvd with a 4:3 A/R to 16:9.

    When I select the option to do this in DVD-RB, its doesn't look right so I'm trying to enter my own params with cropping.

    Here is what DVD-RB inputs:

    Code:
    SeparateFields().LanczosResize(720,240,0,30,720,180).Weave()
    And here is what I would like to input:

    Code:
    SeparateFields().LanczosResize(720,480,12,64,702,352).Weave()
    Problem is I don't know the correct values to enter as its separating the fields and then weaving them back together, so with my script, size is coming out double the height..
    I can see that the DVD-RB script has halved the values so I know my script should be changed.

    Any help appreciated..
    Quote Quote  
  2. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    Code:
    SeparateFields().LanczosResize(720,240,0,60,720,180).Weave()
    Code:
    SeparateFields().LanczosResize(720,240,0,32,0,-88).Weave()
    Code:
    SeparateFields().LanczosResize(720,240,8,60,704,180).Weave()
    Quote Quote  
  3. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    Can u pls explain a bit more on the above?

    Thanks.
    Quote Quote  
  4. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    Can you provide more info on your source and the problem you're having with the target result?
    Pictures even.
    Have you tried any of the above?

    4/3 dvd has an actual width of 640.
    640/1.78=360.
    480-360=120. Crop 60 off bottom and 60 off top.
    Letterbox?
    If you're actually cutting into the image, then you're more likely to lose valuable image from the top, so you crop 32 (less) from the top and 88 (more) from the bottom.

    Separating a frame you get it's two fields; each with half the vertical resolution.
    480/2=240.
    360/2=180.

    http://avisynth.org/Resize

    https://www.videohelp.com/forum/archive/determining-aspect-ratios-and-resolutions-t174200.html
    Quote Quote  
  5. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    My source is 4:3 original resolution, Im trying to encode to 16:9 using the DVD-RB in built feature. I can add just
    Code:
    LanczosResize(720,480,12,64,702,352)
    and it looks fine but if I add
    Code:
    SeparateFields().LanczosResize(720,480,12,64,702,352).Weave()
    it comes out double the height. I wanted more info on the numbers and what they mean.

    I'll read up on the links you have given and post back if I still need help.

    Thanks mate.
    Quote Quote  
  6. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    regarding more info,
    You could provide gspot/mediainfo info, screenshots, a video sample even.

    Originally Posted by romi7519
    Code:
    SeparateFields().LanczosResize(720,480,12,64,702,352).Weave()
    it comes out double the height.
    Originally Posted by 45tripp
    Separating a frame you get it's two fields; each with half the vertical resolution.
    480/2=240
    360/2=180
    vertical=height
    720,480 frame splits to two 720,240 fields.

    Originally Posted by romi7519
    I can add just
    Code:
    LanczosResize(720,480,12,64,702,352)
    and it looks fine
    separatefields().resize().weave() is an easy way to resize interlaced material.
    If your source is interlaced it shouldn't look ok.
    If it's not there is no reason to seperate fields, resize and weave.

    gl
    Quote Quote  
  7. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    I wouldve provided sample in the 1st post but I thought it would be a pretty straightforward answer to my question.

    Heres the sample: http://maxupload.com/799560F0

    I would like to crop the excess bits to the left & right and resize to 16:9 AR (720x480)

    This is what I got from PARonoia
    Code:
    LanczosResize(720,480,12,64,702,352)
    but my material is interlaced.

    Cheers!
    Quote Quote  
  8. SeparateFields().LanczosResize(720,240,12,34,702,1 76).Weave()

    If it's not interlaced (Are you sure it's interlaced? How are you figuring that out?), then:

    LanczosResize(720,480,12,64,702,352)
    Quote Quote  
  9. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    ^ tried that, didnt work in dvd-rb. that was actually the 1st thing I tried.

    EDIT: Ignore the above, just noticed a diff

    Code:
    SeparateFields().LanczosResize(720,240,12,34,702,176).Weave()
    I was trying:
    Code:
    SeparateFields().LanczosResize(720,240,12,64,702,176).Weave()
    Lemme see...
    Quote Quote  
  10. I tested it myself. It works. Except I made a mistake also, but not enough to throw off DVD-RB; just enough to crop more than necessary. Do this:

    SeparateFields().LanczosResize(720,240,12,32,702,1 76).Weave()
    Quote Quote  
  11. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    manono, is there a better way to go about resizing interlaced material?

    How would I go about using this: http://forum.doom9.org/showthread.php?t=74906 with the above?
    Quote Quote  
  12. Yeah, there's a better way, as scharfi explains in the thread. You SmartBob, filter (crop and resize), Separate the fields, choose the ones you want (SelectEvery), and Weave them back together again:

    LeakKernelBob(Order=1)#if TFF
    LanczosResize(720,480,12,64,702,352)
    SeparateFields()
    SelectEvery(4,0,3)#if TFF
    Weave()
    ConvertToYUY2(Interlaced=True)#for CCE, although DVD-RB adds it, I think

    Again I ask though, if you're sure it's interlaced and how you're telling. Don't rely on DGIndex or some other software, is what I'm getting at. Check with your eyes.
    Quote Quote  
  13. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    it's interlaced
    SeparateFields().LanczosResize(720,240,16,34,-8,-34).Weave()

    edit:
    for bob
    LanczosResize(720,480,16,64,-8,-64)
    Quote Quote  
  14. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    Yes its interlaced, the sample is there. Thank you 45tripp and manono for your help. I think I have got to grips with this method of resizing now.

    Cheers!
    Quote Quote  
  15. Originally Posted by romi7519
    Yes its interlaced...
    Well, not exactly. It's a typical Indian DVD converted to NTSC by field-blending a PAL source. It can be made progressive again using the RePAL filter, or a number of other unblenders. The script goes something like this:
    SetMTMode(2)#For dual core CPUs
    LoadPlugin("C:\Path\To\DGDecode.dll")
    LoadPlugin("C:\Path\To\RePAL.dll")
    LoadCPlugin("C:\Path\To\Yadif.dll")
    LoadPlugin("C:\Path\To\ColorMatrix.dll")
    MPEG2Source("C:\Path\To\Sample.d2v",Info=3)
    ColorMatrix (mode="Rec.601->Rec.709", hints=true,Interlaced=True)
    Yadif(Order=1,Mode=1)#or any other SmartBobber you prefer
    RePAL()
    Crop(16,64,-8,-64)#or use your crop/resize settings
    Lanczos4Resize(720,480)
    ConvertToYUY2()#for CCE
    You need the ColorMatrix filter because the source is SMPTE 170M and CCE expects BT.709. The result is a progressive 24.975fps MPV which can be made DVD compliant by running it through DGPulldown set for 24.975->29.97fps. This is nothing you can do using DVD-Rebuilder, though. You'll have to do it manually. Also, I'm not convinced the AR as on that DVD is even correct. That guy is mighty thin, and the fan, which is pointed straight at us, I think, is oval shaped. I didn't mess with that, though. Here's the progressively reencoded 16:9 and pulled down M2V:

    http://www.badongo.com/file/3246017
    Quote Quote  
  16. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    In the clip you uploaded, the A/R seems OK. What would you say it should be if you don't mind taking a dig at it pls?

    Cheers for taking the time to provide that script!
    Quote Quote  
  17. Hi-

    What would you say it should be if you don't mind taking a dig at it pls?

    I don't really know, as all I really have to go on is the fan and the very thin man. And the man really could be that thin. You have the complete movie, and if you wanted to be sure, go and find something round, like a sun, moon, a ball, or clock or something like that. If they look like ovals rather than like circles, then you'll know you're onto something. And it's not at all unusual for Indian DVDs to get the AR wrong. Eros is notorious for it.
    Quote Quote  
  18. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    Change the end of the script with these,
    with the last being most probable.

    Crop(16,64,-8,-64)#or use your crop/resize settings
    Lanczos4Resize(720,462)
    addborders(0,8,0,10)
    ConvertToYUY2()#for CCE

    Crop(16,64,-8,-64)#or use your crop/resize settings
    Lanczos4Resize(720,412)
    addborders(0,34,0,34)
    ConvertToYUY2()#for CCE

    Crop(16,64,-8,-64)#or use your crop/resize settings
    Lanczos4Resize(720,392)
    addborders(0,44,0,44)
    ConvertToYUY2()#for CCE
    Quote Quote  
  19. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    Guys, I'm really grateful to you for helping me out here.
    Just one lil question @ 45tripp.

    I'm guessing I need to adjust the params to fit between SeparateFields() & Weave() as I don't want to deinterlace and just do a str8forward encode using DVD-RB.
    Quote Quote  
  20. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    yes,
    it's worth doing it manono's way though.

    SeparateFields().LanczosResize(720,230,16,34,-8,-34).Weave()
    addborders(0,10,0,10)

    SeparateFields().LanczosResize(720,206,16,34,-8,-34).Weave()
    addborders(0,34,0,34)

    SeparateFields().LanczosResize(720,196,16,34,-8,-34).Weave()
    addborders(0,44,0,44)
    Quote Quote  
  21. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    ^ cheers 45tripp!
    Quote Quote  
  22. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    Manono, is there a way to make CCE encode at 24.975? It always uses 'legal' numbers like 25 but this changes video duration. I once wanted it for PAL restoration but finally had to speed up audio by 0.1% instead of planned pulldown (got progressive PAL at least). Previously tried to 'fool' DGPulldown by typing input 24.975 instead of actual 25 (assumed by Avisynth before encoding) but it kept video duration.
    Quote Quote  
  23. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    U need to add

    assumefps(25)

    to your script and do the lil trick as u mentioned in dgpulldown.
    Quote Quote  
  24. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    Originally Posted by romi7519
    U need to add

    assumefps(25)

    to your script and do the lil trick as u mentioned in dgpulldown.
    That was what I tried to do.
    If that trick worked (I had some hope that DGPulldown like Avisynth could assume a different framerate/length for the input number of frames) I'd get video length corrected back (after I had changed it in Avisynth by assuming 25 for originally 24.975 video) but I didn't. Also tested on bigger numbers by typing pulldown settings 25=>29.97 for a 23.976 video - the output duration was the same with both 'correct' and 'incorrect' settings. Do you get other results?
    Quote Quote  
  25. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    I have done 24.975 using assumefps(25) in my scripts then feeding it to dgpulldown using 24.975-->29.97

    works fine so far..
    Quote Quote  
  26. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    Originally Posted by romi7519

    works fine so far..
    AssumeFPS() changes video duration (0.1% in our case). Do you mean you have audio in synch (in the end of your movie) at this?
    Quote Quote  
  27. Manono, is there a way to make CCE encode at 24.975?
    No, but you don't have to. It comes out OK in the end after running it through DGPulldown set for 24.975->29.97fps. That will reset the framerate/length. I see the recommendation to add AssumeFPS(25) to the script, but I've never done that. The audio always comes out in synch.

    If you're converting to PAL and don't want to stretch the audio, then you'd do 24.975->25.
    Quote Quote  
  28. Member
    Join Date
    Mar 2007
    Location
    United Kingdom
    Search Comp PM
    ^ CCE wont accept it if assumefps(25) isn't added.
    Quote Quote  
  29. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    @romi7519: from what I've tried, it does accept 24.975 for encoding at 25 (I use 2.70 SP) and does it the same way as if the source were 25fps.

    @manono: thanks for the answer but I still get the original length with 24.975 =>25 setting for 25fps source (DGPulldown 1.0.11); tried to check/uncheck 'set timecodes'. Same with 29.97 target.
    Quote Quote  
  30. Originally Posted by romi7519
    ^ CCE wont accept it if assumefps(25) isn't added.
    I never add it, and I've done maybe 150 of these things. Uncheck "For DVD" at the top. I told you you can't do it within DVD-RB. Or are you experimenting doing it on your own?

    @manono: thanks for the answer but I still get the original length with 24.975 =>25 setting for 25fps source (DGPulldown 1.0.11); tried to check/uncheck 'set timecodes'. Same with 29.97 target.

    I thought original length was the whole idea. That way you don't have to stretch the audio. If you add AssumeFPS(25) and stretch the audio a bit, then you have no need to apply pulldown at all (if making a PAL 720x576 DVD).

    If you add AssumeFPS(23.976) to the script for 720x480 NTSC DVD and stretch the audio, then you apply DGPulldown (or use the 2:3 or 3:2 pulldown available within CCE) at the default 23.976->29.97fps. Either way, you don't check the Custom box and fill in 24.975->Whatever.

    Did I not understand something?
    Quote Quote  



Similar Threads

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