VideoHelp Forum




+ Reply to Thread
Results 1 to 19 of 19
  1. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    at the tv station i work at we have a setup for transferring our beta tapes. the issue is that the encoder that we have SUUUCKS. 10mbps mpeg2, anamorphic widescreen 480i with pillarboxing, and the fields are screwed. the raw video when imported in premiere is jagged and jumpy. i know you gotta do what you gotta do if you're in a time crunch but i wanted to see if this could be fixed in software.
    Click image for larger version

Name:	EQx2lJS.png
Views:	27
Size:	428.8 KB
ID:	90661

    i was able to fix this in vapoursynth with some help, but i'm much more familiar with avisynth. plus trimming both video and audio at the same time is much easier for me. is there a way to fix this in avisynth? sample attached.
    Image Attached Files
    Quote Quote  
  2. QTGMC+SpotLess+Small_Deflicker should work, but you can probably do whatever you did in Vapoursynth,...

    Cu Selur
    Last edited by Selur; 4th Jan 2026 at 04:34.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  3. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by Selur View Post
    QTGMC+SpotLess+Small_Deflicker should work, but you can probably do whatever you did in Vapoursynth,...

    Cu Selur
    can't seem to get it to look as good as the vapoursynth script i used. it sucks because trimming is a LOT easier in avisynth :/
    Quote Quote  
  4. What does your Vapoursynth script look like?
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  5. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    @ENunn, difficult to experiment without knowing what you achieved with Vapoursynth. Can you post an example of that.

    Re trimming, can't you do that in Premiere?

    MPEG 2 in AVI is rather odd, I would have thought. And the frame size is normally for PAL, not 29.97/NTSC.

    Surely a standard modern USB digitiser would do a far better job than the current gear the station is using. That sample really does look bad. The video itself looks pretty good, just badly captured.
    Last edited by Alwyn; 4th Jan 2026 at 08:36. Reason: Link comment removed.
    Quote Quote  
  6. @Alwyn: Thanks, fixed the link of Small_DeFlicker to https://forum.doom9.org/showthread.php?p=1812060#post1812060
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  7. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Here's my attempt with AVISynth.

    Code:
    v=LWLibavVideoSource("H:\Videohelp\Enunn\Monday 10PM B Week Cap 2 clip2.avi")
    a=LWlibavAudioSource("H:\Videohelp\Enunn\Monday 10PM B Week Cap 2 clip2.avi")
    AudioDub(v,a)
    ConvertToYV16()
    Spline16Resize(400,300)
    santiagmod(3,3)
    QTGMC(inputtype=2)
    converttoyv12()
    lsfmod(strength=100,Smode = 3)
    Spline64Resize(720,576)
    dehalo_alpha()
    Image Attached Files
    Quote Quote  
  8. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    Alwin, I did not check the source neither the outcomes, but a dehaloing after a sharpening makes little sense in principle. Are you sure of the sequence of the operations in your script?
    Quote Quote  
  9. DeHalo after sharpening makes sense if you want to remove some artifacts introduced by the sharpening.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  10. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    Which makes no sense. Better to play on the sharpening parameters than, because dehaloing is a (global) destruptive operation

    But maybe there is a good reason for this source, I did not check it...
    Quote Quote  
  11. DeHalo should be mainly around edges and not 'global',...
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  12. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    @Lollo, since LSFMod creates halos, I thought Dehalo should come after.
    Quote Quote  
  13. I use DeHalo filters (mostly YAHR) quite often to remove halos caused by sharpen filters. ¯\_(ツ)_/¯
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  14. The fields are stored in the wrong spacial order. Ie, the lines of the top field are stored below the lines of the bottom field.
    Code:
    LWLibavVideoSource("Monday 10PM B Week Cap 2 clip2.avi") 
    ConvertToYV24(interlaced=true) # to allow cropping one line off the top and adding one at the bottom
    Crop(0,1,-0,-0).AddBorders(0,0,0,1)
    SwapFields()
    QTGMC()
    You can then fix other issues...
    Image Attached Files
    Last edited by jagabo; 4th Jan 2026 at 11:12.
    Quote Quote  
  15. Originally Posted by jagabo View Post
    The fields are stored in the wrong spacial order. Ie, the lines of the top field are stored below the lines of the bottom field.
    Wow! Good catch!
    Quote Quote  
  16. Originally Posted by Sharc View Post
    Originally Posted by jagabo View Post
    The fields are stored in the wrong spacial order. Ie, the lines of the top field are stored below the lines of the bottom field.
    Wow! Good catch!
    I've dealt with this many times before. There was an old Matrox capture device that stored video that way.
    Quote Quote  
  17. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by Selur View Post
    What does your Vapoursynth script look like?
    Originally Posted by Alwyn View Post
    @ENunn, difficult to experiment without knowing what you achieved with Vapoursynth. Can you post an example of that.
    someone cobbled this up in vapoursynth and sent it to me.
    Code:
    import vssource
    import vstools
    import vsdeinterlace
    import vskernels
    import ctypes
    import sys
    import os
    import adjust
    
    vs, core = vstools.vs, vstools.core
    
    
    clip = vssource.BestSource.source(r"Monday 10PM B Week Cap 2 clip.mxf").std.SetFieldBased(2)
    
    luma = vstools.get_y(clip)
    
    fields = luma.std.SeparateFields()
    fixed_top = vskernels.Point().scale(fields[::2], shift=(1, 0))
    woven = vsdeinterlace.reweave(fixed_top, fields[1::2], True).std.SetFieldBased(1)
    fixed = vstools.join(woven, clip).std.CopyFrameProps(clip, "_ChromaLocation")
    
    qtgmc = vsdeinterlace.QTempGaussMC(fixed)
    qtgmc.basic(noise_restore=0.5)
    qtgmc.source_match(tr=2, mode=qtgmc.SourceMatchMode.TWICE_REFINED)
    qtgmc.lossless(mode=qtgmc.LosslessMode.PRESHARPEN)
    qtgmc.final(tr=2, noise_restore=0.25)
    deinterlaced = qtgmc.deinterlace()
    
    vstools.set_output(clip)
    vstools.set_output(fixed)
    vstools.set_output(deinterlaced)
    Originally Posted by Alwyn View Post
    Re trimming, can't you do that in Premiere?
    yeah i could. i have to encode the whole thing out but i definitely could.

    Originally Posted by Alwyn View Post
    MPEG 2 in AVI is rather odd, I would have thought. And the frame size is normally for PAL, not 29.97/NTSC.
    it was originally an mxf file, but videohelp doesn't support attaching mxf files for some reason so i rewrapped it into an avi file.

    Originally Posted by Alwyn View Post
    Surely a standard modern USB digitiser would do a far better job than the current gear the station is using. That sample really does look bad. The video itself looks pretty good, just badly captured.
    right?? even my jank setup at home looks better than this! whoever set this up should be fired lmao

    Originally Posted by jagabo View Post
    The fields are stored in the wrong spacial order. Ie, the lines of the top field are stored below the lines of the bottom field.
    Code:
    LWLibavVideoSource("Monday 10PM B Week Cap 2 clip2.avi") 
    ConvertToYV24(interlaced=true) # to allow cropping one line off the top and adding one at the bottom
    Crop(0,1,-0,-0).AddBorders(0,0,0,1)
    SwapFields()
    QTGMC()
    You can then fix other issues...
    thanks!! that helped a lot!!
    Quote Quote  
  18. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    yeah i could. i have to encode the whole thing out but i definitely could.
    Just open the AVS in VDub2 and trim there. Depends what you want to do with it, of course.
    Quote Quote  



Similar Threads

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