digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Encode, Convert for discs (https://www.digitalfaq.com/forum/video-conversion/)
-   -   Hd2sd for AviSynth - download? (https://www.digitalfaq.com/forum/video-conversion/9358-hd2sd-avisynth-download.html)

Nickr54 01-21-2019 11:50 AM

Hd2sd for AviSynth - download?
 
Hi,
I'v got a project to downscale some local football (soccer) HD footage to go onto DVD.
I've been scouring the web for hd2sd but all the links are out of date, for instance:
Quote:

The link for hd2sd that's shown in the tutorial has changed. The new link is: http://3dvp.com/hd2sd_sd2hd.zip
Has anyone got a copy I can use?

sanlyn 01-21-2019 01:56 PM

Likely HD2SD is difficult to find because it's buggy and no one uses it these days. The preference is for a doom9 script that is used as-is on both progressive and interlaced video. The function does low-pass filter "automatically" during resizing to reduce chroma shift, aliasing, and interline twitter. The biggest problem with HD2SD and other downscaling is interline twitter: .https://en.wikipedia.org/wiki/Interl...erline_twitter

Code:

# ###############################################################################################
# IResize by Gavino and IanB
# https://forum.doom9.org/showthread.php?t=140233
# ###############################################################################################
#

function IResize(clip Clip, int NewWidth, int NewHeight) {
  Clip
  SeparateFields()
  Shift=(GetParity() ? -0.25 : 0.25) * (Height()/Float(NewHeight/2)-1.0)
  E  = SelectEven().Spline36resize(NewWidth, NewHeight/2, 0,    Shift)
  O  = SelectOdd( ).Spline36resize(NewWidth, NewHeight/2, 0,  -Shift)
  Ec = SelectEven().Spline36Resize(NewWidth, NewHeight/2, 0,  2*Shift)
  Oc = SelectOdd( ).Spline36Resize(NewWidth, NewHeight/2, 0, -2*shift)
  Interleave(E, O)
  IsYV12() ? MergeChroma(Interleave(Ec, Oc)) : Last
  Weave()

You can copy that function into a script or save it as an .avsi plugijn file.

Example of use:
Code:

source=AviSource(“d:\fs.avi”).
Resize(source,720,480)
ColorMatrix(mode="Rec.709->Rec.601",clamp=0)


Nickr54 01-22-2019 08:37 AM

Thanks, I'll give that a go.

sanlyn 01-22-2019 05:15 PM

And by the way, somehow or other the last, ending character (closing brace "}") in that iResize function script didn't get posted. So I'm posting it again with the missing "}" closing brace at the end:
:smack:


Code:

# ###############################################################################################
# IResize by Gavino and IanB
# https://forum.doom9.org/showthread.php?t=140233
# ###############################################################################################
#

function IResize(clip Clip, int NewWidth, int NewHeight) {
  Clip
  SeparateFields()
  Shift=(GetParity() ? -0.25 : 0.25) * (Height()/Float(NewHeight/2)-1.0)
  E  = SelectEven().Spline36resize(NewWidth, NewHeight/2, 0,    Shift)
  O  = SelectOdd( ).Spline36resize(NewWidth, NewHeight/2, 0,  -Shift)
  Ec = SelectEven().Spline36Resize(NewWidth, NewHeight/2, 0,  2*Shift)
  Oc = SelectOdd( ).Spline36Resize(NewWidth, NewHeight/2, 0, -2*shift)
  Interleave(E, O)
  IsYV12() ? MergeChroma(Interleave(Ec, Oc)) : Last
  Weave() }



All times are GMT -5. The time now is 10:16 AM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.