scratch removal - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html) +--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html) +--- Thread: scratch removal (/thread-3911.html) |
scratch removal - mohanohi - 16.10.2024 Hi, Any idea to remove the bottom scratch? Each clip at the end of the frame scratch exists. https://pasteboard.co/nR0xQ2PL3Utd.png RE: scratch removal - Selur - 16.10.2024 Since it's about an image: use an image editor and fill the line. If it's a video, you should remove the problem before doing upscaling 2048x1556 seems like an upscaled resolution. Looking at the separated YUV channels the scratch is only in the Y channel. Share a sample and I can suggest something depending on the nature of the problem (depending on whether the line is static or not different approaches are possible) Other than that: a. you could write a custom script in which you: 1. downscale the source to a resolution where the line isn't visible 2. upscale to the original resolution 3. replace the line with the down- and upscaled version by masking it b. with some masking something like Balanced Border, EdgeFixer or Bore might work. c. if it's static: create a mask and use proPainter (or other inpainting methods), this will likely result in the best output, but is probably overkill at the current resolution. Got a few ideas, but without an actual video they are probably not really helpful. => should be fixable, but will require some tweaking Cu Selur RE: scratch removal - mohanohi - 16.10.2024 Thanks for the reply. This is a film scan sequence file. Not an image. These line occurs when a negative cutter make a bad tape joint 😄. This line is consistent with each clip end frame only. No entire clip. I am doing a feature film Restoration right now, and because of budget problem they are not going for Damiant / phoenix Restoration. I am doing color grading and some cleanup in Davinci. Davinci has revival tool to manually do inpaint where in it looks into previous frame and does inpaint. But the result is not that great. Can't do upscale and loose information. In feature film Restoration every frame is a diamond!!!. Was able to remove hairs and spots with spotless. If you could implement Deltarestore it would be great. Any other tips for this situation? RE: scratch removal - Selur - 16.10.2024 Detarestore will not help with that scratch, it's basically a wrapper around Spotless to make it less destructive. (restore some moving parts) Haven't seen anyone do a port for Vapoursynth or make it a proper script, even for Avisynth, so I wouldn't hold my breath for it to appear in Hybrid any time soon. Got just the last frame in the native resolution? (normal Inpainting should work fine on this, but applying it on high resolution content is a pain, since you easily run out of memory.) Cu Selur Ps.: https://forum.doom9.org/showthread.php?t=184550 might be interessting RE: scratch removal - Selur - 16.10.2024 Quick test with inpainting through VSGAN, proPainter should be better, but for that resolution is too high: # Imports Not that good, but tunning multiple Inpainting calls with multiple masks probably would work even when using this inpainting model. Another 1pass cv based inpainting examples using https://github.com/dnjulek/VapourSynth-cv_inpaint: InpaintFSR: InpaintNS: InpaintShiftMap: InpaintTelea: like I wrote multiple inpainting passes with different masks will probably help more. Cu Selur Ps.: https://forum.doom9.org/showthread.php?t=184485 might also be interessting. RE: scratch removal - mohanohi - 05.11.2024 Does this script help to remove the line? https://silentaperture.gitlab.io/mdbook-guide/filtering/dirty_lines.html#bbmod RE: scratch removal - Selur - 05.11.2024 I doubt it, but bbmod=BalancedBorders in Hybrid, so you can try it yourself. RE: scratch removal - mohanohi - 05.11.2024 Thanks. |