VideoHelp Forum




+ Reply to Thread
Results 1 to 18 of 18
  1. [Removed original post]
    Last edited by Tri P; 14th Oct 2021 at 09:36.
    Quote Quote  
  2. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    You need to find a download site that doesn't try to install malware. Otherwise, you can upload those samples directly into the forum. There are size restrictions, but the two samples don't appear to be anywhere near the limits. When you start a reply, look below the reply window for "UploadFiles/Manage attachments".

    Otherwise, your links wouldn't download.
    Last edited by sanlyn; 21st Mar 2014 at 08:39.
    Quote Quote  
  3. For a start, try using Mpeg2Source's deblocking and deringing options.
    Quote Quote  
  4. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    double post, Not a good day.
    Last edited by sanlyn; 21st Mar 2014 at 08:39.
    Quote Quote  
  5. [Removed original post]
    Last edited by Tri P; 14th Oct 2021 at 09:37.
    Quote Quote  
  6. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    Right, -140-, All you have to0 do is hit the right "download" button. Wrong button=adware. As I said, not a bad day.

    @Tri P, you could use the stab() plugin to steady the frame hopping a little more. It's a bit oversaturated, especially red. But your encode doesn't looks pretty good otherwise.

    Why are you resizing? Is this for PC-only display?

    ED:
    Apparently the guys at your download site must have fixed something. The downloads worked this time. But thanks for your patience.
    Last edited by sanlyn; 21st Mar 2014 at 08:40.
    Quote Quote  
  7. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    OK, here's an effort with some different filters. The source is film, which inherently has some fine grain to begin with; removing all of it will result in banding (a little of which is showing up already). I retained the original frame size, but that's up to you.

    In my haste I forgot the audio. oh, well.....

    Script attached.

    ED: In playback I just noticed some junk along the right-hand border. My fault. It can be cropped off. I should have saved the Crop() and AddBorders() until last. Like I said, bad day going on here....
    Image Attached Files
    Last edited by sanlyn; 21st Mar 2014 at 08:40.
    Quote Quote  
  8. [Removed original post]
    Last edited by Tri P; 14th Oct 2021 at 09:35.
    Quote Quote  
  9. You want really heavy noise reduction? Try McTemporalDenoise(settings="very high"). I posted stab() a few days ago:
    https://forum.videohelp.com/threads/359380-Restoring-Cartoons?p=2273034&viewfull=1#post2273034
    Quote Quote  
  10. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    Originally Posted by Tri P View Post
    Great job you did with the video.Could you send me the stab.avs since I don't have it in my plugins folder and I cannot download it from avisynth wiki.Also I have a little problem:I cannot autoload plugins and scripts.i don't know why,I putted all plugins in avisynth folder and in the megui folder.
    Don;t know what's going on with that wiki, but I';ve some trouble with it recently myself. I think they'r making a big server change (?). Why the plugins have to be in Megui9's folders is a mystery. Haven't used that app in some time now, I don't even think I remember how.

    Stab attached. You'll also need:
    - DePan http://avisynth.org.ru/depan/depan1100.zip
    - RemoveGrain package http://home.arcor.de/kassandro/prerelease/RemoveGrain-1.0.rar

    RemoveGrain has multiple dll's. Just use the ones with "SSE2" in the name.

    Stab() will literally move the whole frame around to stabilize it, so you'll see some side border pixels "vibrate" after running it. Most people just crop them off and use AddBorders to get the frame size back. They'll "pop" maybe 1 or 2 pixels in each direction. Moral: you can't have everything.

    A touch of MCTemporalDenoise as jagabo suggests might make things even smoother. I'd stick with settings of medium or lower; anything really heavy is likely to be overkill. I also tried this effort afterward and it calmed things down even more:

    Code:
    QTGMC(preset="faster",InputType=1)
    InputType=1 tells QTGMC that your video is progressive. I don't like to denoise animation too much; it's a hassle to fight off banding afterward if you overdo it.
    Last edited by sanlyn; 21st Mar 2014 at 08:41. Reason: The usual typos. The letters move around when you're not looking.
    Quote Quote  
  11. [Removed original post]
    Last edited by Tri P; 14th Oct 2021 at 09:35.
    Quote Quote  
  12. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    Originally Posted by Tri P View Post
    I have the problem with the DePanEstimate.dll.After I load plugin it says "Can't load FFTW3.dll". Can someone send me that file and do I need to put it in the system32 folder or SYSWOW64?

    EDIT:Solved the problem.
    Good work. Yes, if you're a little behind the curve with AVisynth filters, it's a hassle keeping them straight. Sorry there was a delay here, but there are actually two syslib dll's involved.

    Attached are files required by MCTemporalDenoise and a copy of VariableBlur. The fftw3 dll's are also inside. The big MCTD zip has a folder of plugins, a folder of the fftw3 stuff, a folder of documentation, and a text file of instructions. The files used by MCTD are required by many other plugins, and include nifty standalone filters like LSFMod and GradFun2DBmod. You might already have some of the plugins; if you do, continue using those that you already installed.
    Last edited by sanlyn; 21st Mar 2014 at 08:41.
    Quote Quote  
  13. [Removed original post]
    Last edited by Tri P; 14th Oct 2021 at 09:35.
    Quote Quote  
  14. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    Not really. It's the result of previously poor processing and low-bitrate encoding. This kind of noise should be treated early-on in lossless yuv media before other filtering. You can try a few fixes such as derainbow filters like BiFrost.avsi, or chroma movers like ChromaShift.dll . The original oversaturation and juiced-up contrast didn't help, either. Another problem: the effects are intermittent, look different in other shots, and don't appear in some at all. It would involve playing with chroma cleaners forever and splitting the video into separate shots to suit each filter for each problem. In the shot posted, you didn't note the red bleed on the shirt sleeve and the magenta smear on the white elbow.
    Last edited by sanlyn; 21st Mar 2014 at 08:42.
    Quote Quote  
  15. [Removed original post]
    Last edited by Tri P; 14th Oct 2021 at 09:35.
    Quote Quote  
  16. This struck me as an interesting problem so I spent some time on it. I came up with something that almost works for that one image. I don't know how well it will work with the entire video. My first idea was to convert the bright areas of the picture to greyscale. Unfortunately, when setting the threshold low enough to remove the color bleeding in the white areas it ended up removing colors in other bright parts of the picture (the blue eyes, the tan background). So I decided to build a mask that combined the brightness with the saturation (inverted) of the image. So only bright areas that are already nearly white are converted to greyscale. Here's what I came up with:

    Code:
    # return the saturation of the clip, must be YUV
    # this isn't really saturation but it's close enough for our purposes here
    function Saturation(clip clip)
    {
      umask = UtoY(clip)
      umask = Overlay(umask.ColorYUV(off_y=-128), umask.Invert().ColorYUV(off_y=-128), mode="add")  # abs(U-128)
    
      vmask = VtoY(clip)
      vmask = Overlay(vmask.ColorYUV(off_y=-128), vmask.Invert().ColorYUV(off_y=-128), mode="add")  # abs(V-128)
    
      # add the u and v saturations
      Overlay(umask, vmask, mode="add")
    
      # back to the original frame size
      BilinearResize(clip.width, clip.height)
    }
    
    
    ImageSource("4mru.jpg", start=0, end=23, fps=23.976) 
    ConvertToYV12()
    
    # build a mask based on the brightness of the image
    greymask=GreyScale().ColorYUV(off_y=-160).ColorYUV(gain_y=10000)
    
    # build a mask based on the saturation of the image, inverted
    satmask = Saturation()
    # saturation less than 16 removed, then mask brightened and inverted
    satmask = satmask.ColorYUV(off_y=-16).ColorYUV(gain_y=10000).Invert()
    
    # multiply the two masks together -- only areas where both masks are bright pass though, soften the edges
    mask=Overlay(greymask, satmask, mode="multiply").Blur(1.0)
    
    # use the mask to overlay a greyscale version of the image
    Overlay(last, GreyScale(last), 0, 0, mask)
    Click image for larger version

Name:	cleaned.jpg
Views:	311
Size:	36.9 KB
ID:	20698

    Unfortunately, it also removed the slight cyan tinge on the front side of the glasses. It will do the same on any other near white areas. And it only removes the tinge on bright areas. If Donald was grey the tinge would not be removed.

    A similar approach would be to remove the color on all parts of the image that are already nearly grey. You could do that with this script by only using satmask. That would get rid of the tinge and still have the problem where the glasses turn white. But it would also work on grey and black areas.
    Last edited by jagabo; 21st Oct 2013 at 20:24.
    Quote Quote  
  17. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    Cool. I figured some sort of masking technique would be the only way.
    Last edited by sanlyn; 21st Mar 2014 at 08:42.
    Quote Quote  



Similar Threads

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