VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Hi, cats


    please watch my avisynth script

    Code:
    FFVideoSource("c:\gopr1234.mp4")
    ColorMatrix(mode="Rec.709->Rec.601")
    IResize(720,576)
    
    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()
    } 
    AssumeTFF()
    SeparateFields()
    Ev=SelectEven().sharpen(0.20)
    Od=SelectOdd().sharpen(0.20)
    Interleave(Ev,Od)
    Weave()
    Assumetff().SeparateFields().SelectEvery(4, 0, 3).Weave()
    
    CHANGEFPS(25)
    AssumeFPS(25)
    ConvertToYUY2(interlaced=true)
    I wonder: how I have to do in virtualdub to insert the line

    Assumetff().SeparateFields().SelectEvery(4, 0, 3).Weave()

    because my source is 50 fps?
    Quote Quote  
  2. Use VirtualDub's Interlace filter. Progressive Frames, Even Field First.
    Quote Quote  
  3. thanks, please consider another avisynth script:

    Code:
    FFVideoSource("c:\inputInterlaced1440x1080.mxf")
    src = last
    src = src.width>720 || src.height>608?src.ColorMatrix(mode="Rec.709->Rec.601"): src 
    src.framerate<26 ? src:src.AssumeTFF().SeparateFields().SelectEvery(4,0,3).Weave() 
    src.width==720&&src.height==608?src.crop(0,32,0,0):src 
    ConvertToYUY2(interlaced=true)
    AssumeFPS(25)
    ChangeFPS(25)
    now I would like to insert the line of resize 720x576

    Where I have to put the resize line to avoid chroma ghost or artifarcts?
    Quote Quote  
  4. I don't know exactly what you think your script is doing. But you need to resize while the video is progressive. So if it's interlaced you need to deinterlace, reszize, then reinterlace.
    Quote Quote  
  5. I understand: and the ConvertToYUY2(interlaced=true) have to insert after or before the resize?
    Quote Quote  
  6. Generally, after. But there could be situations when you do it before.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!