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:
And here is what I would like to input:Code:SeparateFields().LanczosResize(720,240,0,30,720,180).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..Code:SeparateFields().LanczosResize(720,480,12,64,702,352).Weave()
I can see that the DVD-RB script has halved the values so I know my script should be changed.
Any help appreciated..
+ Reply to Thread
Results 1 to 30 of 43
-
-
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()
-
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 -
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)
Code:SeparateFields().LanczosResize(720,480,12,64,702,352).Weave()
I'll read up on the links you have given and post back if I still need help.
Thanks mate. -
regarding more info,
You could provide gspot/mediainfo info, screenshots, a video sample even.
Originally Posted by romi7519Originally Posted by 45tripp
720,480 frame splits to two 720,240 fields.
Originally Posted by romi7519
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 -
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 PARonoiaCode:LanczosResize(720,480,12,64,702,352)
Cheers! -
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) -
^ 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()
Code:SeparateFields().LanczosResize(720,240,12,64,702,176).Weave()
-
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? -
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. -
it's interlaced
SeparateFields().LanczosResize(720,240,16,34,-8,-34).Weave()
edit:
for bob
LanczosResize(720,480,16,64,-8,-64) -
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! -
Originally Posted by romi7519
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
http://www.badongo.com/file/3246017 -
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! -
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. -
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 -
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) -
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.
-
U need to add
assumefps(25)
to your script and do the lil trick as u mentioned in dgpulldown. -
Originally Posted by romi7519
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? -
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.. -
Originally Posted by romi7519
-
Manono, is there a way to make CCE encode at 24.975?
If you're converting to PAL and don't want to stretch the audio, then you'd do 24.975->25. -
@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. -
Originally Posted by romi7519
@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?
Similar Threads
-
Need help with DVD resize
By Enkidu in forum Newbie / General discussionsReplies: 15Last Post: 21st Jan 2011, 12:18 -
DVD to HD (resize and enhance image quality)
By SB4 in forum RestorationReplies: 12Last Post: 14th Dec 2010, 16:54 -
.avi to DVD + resize
By grandsire02 in forum Video ConversionReplies: 2Last Post: 9th Mar 2009, 17:28 -
VHS to DVD resize 640x480 or 720x480
By opti280 in forum Authoring (DVD)Replies: 2Last Post: 26th Feb 2008, 18:43 -
Resize Suggestion for AVI-DVD Encode
By Soopafresh in forum Video ConversionReplies: 10Last Post: 26th Jun 2007, 11:01