VideoHelp Forum




+ Reply to Thread
Results 1 to 22 of 22
  1. Is there a better method to double-rate deinterlace the attached (pathologic) source?
    Some trials attached.

    WARNING:
    Watching this video may cause nausea or epileptic seizure to sensitive viewers.
    Image Attached Files
    Last edited by Sharc; 5th Apr 2024 at 07:37. Reason: WARNING added
    Quote Quote  
  2. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    My head's spinning!
    Quote Quote  
  3. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    My generic QTGMC setting shows less artifacts on the third region with horizontal only lines. Just a quick run, I did not experiment anything else...

    Code:
    QTGMC(preset="slow", matchpreset="slow", matchpreset2="slow", sourcematch=3, tr1=2, tr2=1, NoiseTR=2, sharpness=0.1)
    comparison: comp.avi
    Quote Quote  
  4. You should put an epileptic seizure warning

    TDeint looks the least bad to me in that group

    For this specific case you could "cheat" by using an lowpassed odd field luma mask + RIFE . You could overlay that on tdeint base with some temporalmedian applied. You'd expect the first few frames and last few to be messed up before it settles into the pattern per scene
    Image Attached Files
    Quote Quote  
  5. Originally Posted by poisondeathray View Post
    You should put an epileptic seizure warning
    Yup, I missed it. I hope I won't be sued

    TDeint looks the least bad to me in that group

    For this specific case you could "cheat" by using an lowpassed odd field luma mask + RIFE . You could overlay that on tdeint base with some temporalmedian applied. You'd expect the first few frames and last few to be messed up before it settles into the pattern per scene
    Amazing result with your approach tailored for this specific case
    The source may be awkward and far from natural video but I think it reveals the basic weaknesses of deinterlacers, each one exhibiting its specific artefacts, actually "damaging" the source. One reason why I am usually hesitant to deinterlace for "archiving" purposes.
    At the end I think we would need to view this on an interlaced display? Unfortunately today's progressive monitors do not (and most likely will not in future) offer a setting to behave like a field oriented interlaced display such as legacy CRT's.

    (Btw it's also enlightening to stream the source to the TV to see how its deinterlacer behaves.)
    Last edited by Sharc; 5th Apr 2024 at 02:02.
    Quote Quote  
  6. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    it's also enlightening to stream the source to the TV to see how its deinterlacer behaves.
    Mine is ugly, although that particular video isn't very realistic.

    You should put an epileptic seizure warning
    I hope I won't be sued
    I think you should put a warning in your first post. That could be harmful to someone.
    Quote Quote  
  7. Code:
    clip = havsfunc.QTGMC(Input=clip, Preset="Fast", InputType=0, TFF=False, TR2=0, SourceMatch=0, Lossless=2, opencl=True, Denoiser="KNLMeansCL", TR0=2, TR1=2, Rep0=2, Rep1=4, Rep2=8, DCT=5, Sbb=1, NoiseProcess=0, GrainRestore=0.0, NoiseRestore=0,  StabilizeNoise=False, Sharpness=0
    should also work fine, main point is to disable sharpening, renoising and keep things lossless,...
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  8. Originally Posted by Selur View Post
    Code:
    clip = havsfunc.QTGMC(Input=clip, Preset="Fast", InputType=0, TFF=False, TR2=0, SourceMatch=0, Lossless=2, opencl=True, Denoiser="KNLMeansCL", TR0=2, TR1=2, Rep0=2, Rep1=4, Rep2=8, DCT=5, Sbb=1, NoiseProcess=0, GrainRestore=0.0, NoiseRestore=0,  StabilizeNoise=False, Sharpness=0
    should also work fine, main point is to disable sharpening, renoising and keep things lossless,...
    The 1-pixel horizontal band on top is still flashing (line twitter black-white-black-white ......).
    Anyway, not as a need a solution. I was just wondering whether I missed something trivial.
    Quote Quote  
  9. Which do you mean, looking at odd&even fields


    isn't the top meant to flicker?
    Last edited by Selur; 7th Apr 2024 at 12:04.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  10. Originally Posted by Sharc View Post
    The 1-pixel horizontal band on top is still flashing (line twitter black-white-black-white ......).
    It's supposed to be flashing black and white. An interlaced analog TV shows one field at a time. Since one field is black and the other is white (in that section) the picture should flicker black and white.

    You forgot a simple bob(0.0, 1.0) which is pretty much what one would see on a 59.94 Hz analog interlaced TV (lots of flicker). Careful though, some monitors and TVs will attempt to "fix" this video.
    Last edited by jagabo; 6th Apr 2024 at 12:56.
    Quote Quote  
  11. Originally Posted by Selur View Post
    isn't the top meant to flicker
    Originally Posted by jagabo View Post
    Originally Posted by Sharc View Post
    The 1-pixel horizontal band on top is still flashing (line twitter black-white-black-white ......).
    It's supposed to be flashing black and white. An interlaced analog TV shows one field at a time. Since one field is black and the other is white (in that section) the picture should flicker black and white.

    You forgot a simple bob which is pretty much what one would see on an analog interlaced TV (lots of flicker). Careful though, some monitors and TVs will attempt to "fix" this video.
    Makes sense, yes. (Btw a simple bob is included in my deint.mp4 as last case). I thought a legacy CRT may flicker less nervously because of its natural gradual brightness decay of the fluorescent screen. Maybe I am wrong. I don't have an old CRT anymore to verify. Anyway it was interesting to see how the various deinterlacers (and TVs) behave with this synthetic source.
    Quote Quote  
  12. Originally Posted by Sharc View Post
    Btw a simple bob is included in my deint.mp4 as last case
    Sorry, I missed that. Did you notice your deinterlaced video is 50p not 60p (from a 30p source)? So you are comparing a frame rate change as well as deinterlacing.
    Quote Quote  
  13. Attached is a 60p version.

    Code:
    LWLibavVideoSource("source_IL.ts") 
    AssumeBFF()
    
    v0 = last.ChangeFPS(60000, 1001).Subtitle("interlaced_x2")
    v1 = QTGMC().Subtitle("qtgmc")
    v2 = BWDIF(field=2).Subtitle("bwdif")
    v3 = yadifmod2(mode=1).Subtitle("yadifmod2")
    v4 = tdeint(mode=1).Subtitle("tdeint")
    v5 = nnedi3(field=2).Subtitle("nnedi3")
    v6 = bob().Subtitle("bob")
    
    v0+v1+v2+v3+v4+v5+v6
    
    prefetch(8)
    In truth, I don't think this is a good test video for deinterlacing. It's way too artificial.
    Image Attached Files
    Quote Quote  
  14. Originally Posted by jagabo View Post
    In truth, I don't think this is a good test video for deinterlacing. It's way too artificial.
    Yes, that's almost exactly the script which I used. I just added AssumeFPS(25) at the beginning of the script for "PAL" framerate compliance - which makes the flicker more annoying.
    I agree it's artifical-experimental and not a good test for practical deinterlacing. Yet one may find some of these 'deinterlacing defects' with anime sources or even 'natural' video.
    Last edited by Sharc; 7th Apr 2024 at 05:15.
    Quote Quote  
  15. Banned
    Join Date
    Nov 2022
    Search PM
    Originally Posted by jagabo View Post
    An interlaced analog TV shows one field at a time.
    Not really. It meshes the fields with one field being painted while another fades away, hence interlacing, not 60p. It is a progscan TV set that shows one field at a time in the basic line-doubled bob mode.
    Quote Quote  
  16. Originally Posted by Bwaak View Post
    Originally Posted by jagabo View Post
    An interlaced analog TV shows one field at a time.
    Not really. It meshes the fields with one field being painted while another fades away
    The previous field has mostly faded away long before the new field is drawn. If you look at very high speed photography of an analog TV screen you'll see that a scanline has mostly faded away even as the next scanline of the same field is being drawn. You can see an example here:

    https://youtu.be/3BJU2drrtCM?t=207

    If you watch an analog TV showing a video where one field is all black and the other is all white it flickers horribly.
    Last edited by jagabo; 7th Apr 2024 at 13:02.
    Quote Quote  
  17. Banned
    Join Date
    Nov 2022
    Search PM
    @Jagabo, is it interlaced or progscan? Impressive footage.
    Quote Quote  
  18. Early in that video (around the time I linked to) he is showing an inexpensive interlaced CRT TV. Later he shows a progressive LCD display where the situation is different.
    Quote Quote  
  19. Banned
    Join Date
    Nov 2022
    Search PM
    Originally Posted by jagabo View Post
    Early in that video (around the time I linked to) he is showing an inexpensive interlaced CRT TV. Later he shows a progressive LCD display where the situation is different.
    I was asking about the CRT. If it is interlaced, then those lines are pretty damn close.

    I wish he "froze" one field and overlayed the next field onto it to show how the second field fills the gaps in the first one. But I get the point - the phosphors decay very fast, which is surprising to me. Thanks.
    Quote Quote  
  20. Originally Posted by Bwaak View Post
    ...But I get the point - the phosphors decay very fast, which is surprising to me. Thanks.
    The decay was much slower for old B&W TV's - some hundreds of microseconds as compared to some tens of microseconds of later color CRT TVs. It has to be seen in relation to the scanline duration. The basic effect is similar though.
    Quote Quote  
  21. The scanlines are "close" because the electron beam isn't so highly focused that there's a gap between the lines. This makes the screen brighter and reduces the flicker (with a normal picture).
    Quote Quote  
  22. Banned
    Join Date
    Nov 2022
    Search PM
    Originally Posted by jagabo View Post
    The scanlines are "close" because the electron beam isn't so highly focused that there's a gap between the lines. This makes the screen brighter and reduces the flicker (with a normal picture).
    It depends. The beam could be more or less focused as needed.

    A useless fun fact: with System A, as the size of TV screens grew, it was found that a wide beam makes the picture blurry and low-res, while a narrower beam leaves spaces between the lines. So a special technique was devised that used a narrow beam that wobbled up and down, producing oval-shaped spot. This allowed to preserve horizontal resolution and to close the gaps at the same time.
    Quote Quote  



Similar Threads

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