VideoHelp Forum
+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. Hello,

    I'm trying to remove a transparent logo from a video, and I assumed it would be straightforward. I created a mask in Photoshop and used the InpaintLoc(Loc="100,100,-100,-100") function to fine-tune the Loc values.

    I'm using Automask=0 since I'm providing my own mask.

    I've been working on this for the past 4 hours, carefully reading the documentation, but I feel like I'm missing something. I'm relatively new to AviSynth and using the latest versions of AvsPmod, AviSynth, and InpaintDelogo.

    I've seen other users achieve perfect results with similar logos, like the Shutterstock and Adobe watermarks, but I'm struggling with artifacts and blurriness.

    Here’s my current script:

    Code:
    FFmpegSource2("source.mp4")
     InpaintDelogo(mask="C:/mask.bmp", Show=0, Automask=0, Analyze=3, Loc="772,346,-770,-356", Mode="Deblend")

    I’ll attach the video file as well. Any help would be greatly appreciated!


    https://mega.nz/folder/Hp0XkALI#zlUWk2UjHOdgjnBQmyj70w



    Thank you!
    Quote Quote  
  2. I've seen other users achieve perfect results with similar logos, like the Shutterstock and Adobe watermarks, but I'm struggling with artifacts and blurriness.
    haven't used InpaintDelogo a lot, but you struggling, seems not that surprising to me.
    clip got: short scenes, near to no motion under the logo in most scenes, some noise pattern in some scenes where the logo is.
    => This seems like a real hart case for any inpainting approach

    I also threw your mask (converted to png) at ProPainter using:
    Code:
    # Inpainting using ProPainter
    from vspropainter import propainter as ProPainter
    clip = ProPainter(clip=clip, img_mask_path="C:/Users/Selur/Desktop/InpaintDelogo/mask.png", length=50, mask_region=(460,420,740,320), sc_threshold=0.05)
    once with length 50 and once with length 100, just for comparison.


    Cu Selur
    Image Attached Files
    Last edited by Selur; 21st Aug 2024 at 09:06.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  3. Video Damager VoodooFX's Avatar
    Join Date
    Oct 2021
    Location
    At Doom9
    Search PM
    Originally Posted by ElegantRain View Post
    I'm trying to remove a transparent logo from a video... but I'm struggling with artifacts and blurriness.
    Loc is incorrect, leave at least 10 pixels around logo, but that's not the main issue here. This 30 second clip doesn't have enough suitable frames to automatically build a good deblend mask. You would need to build it manually or try your luck on much longer video.

    What are you doing with those stock videos?

    Originally Posted by Selur View Post
    This seems like a really hart case for any inpainting approach
    He is doing deblend here, not inpainting.
    Quote Quote  
  4. He is doing deblend here, not inpainting.
    Ah, good to know, I assumed InpaintDelogo would also do some inpainting, no matter the mode.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  5. Video Damager VoodooFX's Avatar
    Join Date
    Oct 2021
    Location
    At Doom9
    Search PM
    Originally Posted by Selur View Post
    I assumed InpaintDelogo would also do some inpainting, no matter the mode.
    Can do that too.
    Quote Quote  
  6. Nice
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  



Similar Threads

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