Log in

View Full Version : Tips for resizing half D1 PAL 352x576 ?


ChrisW77
20th November 2006, 16:57
I've had a good look around the forum, and spent a few days looking at topics, most around 4-5 years old, for any tips on resizing half D1.

Basically, I've just bought a DVD recorder and spent the last few days recording some old UK comedy shows on VHS, simply because most will never make a DVD release (if ever), and I've only just found out that I recorded most of them in LP mode 352x576, and I've now thrown them out (or rather the wife's thrown them out as part of her tiding up regime :scared: ). The rest I'll record in SP mode.
Playing them back on the recorder, they look pretty good, as I suppose the recorder uses hardware stretching to stretch the horizontal. On a PC, however, they look like a bilinear stretch has been applied, and the quality is pretty poor.

Sorry for the long post but, anyone got any tips for how to resize 352x576 ?
Should I leave them at that res, and allow the player to scale ?
Or resize the vertical to 288, and end up with PAL VCD res ?

My main aim is to end up with xvids of the shows, so I can pass them to friends and family, some using divx players, some using a PC.
I've ripped the vobs of one of the DVDs, to my HD, and written a simple avisynth script to clean up the noise, crop the edges, and resize to 640x480 using lancos4resize, and it looks ok.

God, I hate being a noob when it comes to this stuff, lol.

droolian01
20th November 2006, 17:39
Hi there

(i'm no expert and havent been encoding for some time - bit rusty!) but i would just crop to mod 16 (8 pixels off the top, bottom, left and right) and not resize at all and let the software resize it. The original vobs probably looked bad on the pc because they were interlaced and not denoised. Might be a good idea to post your script. But if your 640x480 res encodes look good - carry on with that!

hope this helps.

Chainmax
20th November 2006, 18:46
I'd filter the source appropriately first, then use EEDI2() to bring it to 704x576 and if you still need to resize use Lanczos4Resize(whatever)

ChrisW77
20th November 2006, 19:35
Thanks for the help, guys.

I'd filter the source appropriately first, then use EEDI2() to bring it to 704x576 and if you still need to resize use Lanczos4Resize(whatever)

Doesn't EEDI2, only stretch the vertical ?
Any tips on using EEDI2 ? Sorry, I'm still learning this stuff ;)

The original vobs probably looked bad on the pc because they were interlaced and not denoised

Hi droolian01, I always use VLC as my playback, and use on-the-fly interlacing of VLC, just to get a rough idea of what they look like.

Here's a script I am fiddling with.

LoadPlugin("C:\AviSynth\plugins\DeGrainMedian.dll")
LoadPlugin("C:\AviSynth\plugins\DGDecode.dll")
LoadPlugin("C:\AviSynth\plugins\mpasource.dll")

video = mpeg2source("D:\VHStests\test1.d2v", cpu=4, iPP=true, idct=5)
audio = MPASource("D:\VHStests\test1 T01 DELAY -384ms.mpa")

AudioDub(video, audio)

ConvertToYUY2(interlaced=true)
AssumeTFF()

Setparity(false)
separatefields()
DeGrainMedian(limitY=5,limitUV=10,mode=2,interlaced=true)
Weave()

parity = GetParity() ? 1 : 0
LeakKernelDeint(order=1,threshold=10,sharp=true)

Crop(10,8,-10,-8)
addBorders(10,8,10,8)
Lanczos4Resize(640,480)

Chainmax
20th November 2006, 20:03
Thanks for the help, guys.



Doesn't EEDI2, only stretch the vertical ?
Any tips on using EEDI2 ?
...

Yeah, you're right. It would be TurnRight().EEDI2().Lanczos4Resize(whetever).TurnLeft() then.
Also, if you are going to deinterlace anyway, first of all use TDeint+EEDI2 in this fashion:

For TFF Clips:
Interp = SeparateFields().SelectEven().EEDI2(field=1)
TDeint(order=1,field=1,edeint=Interp)

For BFF Clips:
Interp = SeparateFields().SelectEven().EEDI2(field=0)
TDeint(order=0,field=0,edeint=Interp)


right after loading the source, as combing removal should be the first thing you do. Everything else should go afterwards.

ChrisW77
20th November 2006, 20:44
Thanks again, chainmax.
I take it that, from your example, I would need to remove the leakkerneldeint from my script, and use TDeint ?

Everything else should go afterwards.

Do you mean that filtering should be after deinterlacing ?
Is it better to keep the filters before you weave, then ?

Thanks for all your help, much appreciated. I'm slowly starting to understand this avisynth beast. :D

Chainmax
20th November 2006, 23:05
I didn't notice you were new here :o. Welcome to Doom9, and be prepared to immerse yourself in the wonderful world of video editing :D.

I didn't check the whole script. If you are going to deinterlace, I don't think there's much point in filtering before it unless the source is so screwed up that you fear it might confuse the deinterlacer. Therefore, there's no need to separate the fields and weave, just do everything after the deinterlacing line.

Since you're new then, I'd recommend you to take a few hours to read Decomb's (http://www.neuron2.net/decomb/decombnew.html) readmes and tutorials, the IVTC tutorial (http://www.doom9.org/ivtc-tut.htm) and the capture guide (http://forum.doom9.org/showthread.php?t=78797) a couple of times each. They are a great source of starter knowledge as they explain interlacing, telecining and field order with great detail in an easy to understand way. Other than that, be sure to use the search function as much as you can and read the stickys :).