VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Please can anyone advise how to achieve better results using InpaintDelogo.

    Using this script, I can remove about 50% of the logo as per:


    Code:
    FFmpegSource2("D:\cats.mpg", atrack=-1)
    
    #InpaintLoc(Loc="60,36,-1150,-626")
    
    
    InpaintDelogo( mask="C:\test\cats.bmp",Automask=0, aMix=0, Loc="60,36,-1150,-626",Mode="Inpaint",Analyze=1, FrB=0, FrW=0, FrS=0)


    Video - https://www.swisstransfer.com/d/fab3e44c-6cab-4eab-8f06-dac080800272

    Mask - https://www.swisstransfer.com/d/f7f43edf-33f6-4a31-9290-b53346b3d965

    Cheers

    Steve
    Last edited by stevepen1974; 17th Feb 2025 at 15:12.
    Quote Quote  
  2. Video Damager VoodooFX's Avatar
    Join Date
    Oct 2021
    Location
    At Doom9
    Search PM
    How did you got that bmp basemask? It's incorrect, mask should be full white (or it can be full red too, but I don't remember now).

    This will correct it:
    Code:
    LWLibAvVideoSource("D:\cats.mpg")
    m=ImageSource("D:\cats.bmp").Crop(60,36,-1150,-626).Trim(0,-1).ConvertToY8.mt_binarize
    
    InpaintDelogo(mask=m, Loc="60,36,-1150,-626", Mode="Inpaint")
    Btw, I think logo is transparent, it should be deblended for proper delogo.
    Quote Quote  
  3. Originally Posted by VoodooFX View Post
    How did you got that bmp basemask? It's incorrect, mask should be full white (or it can be full red too, but I don't remember now).

    This will correct it:
    Code:
    LWLibAvVideoSource("D:\cats.mpg")
    m=ImageSource("D:\cats.bmp").Crop(60,36,-1150,-626).Trim(0,-1).ConvertToY8.mt_binarize
    
    InpaintDelogo(mask=m, Loc="60,36,-1150,-626", Mode="Inpaint")
    Btw, I think logo is transparent, it should be deblended for proper delogo.

    Thanks alot VoodooFX, that worked, odd frame you see the logo blurred.

    I use PhotoFiltre7 to create the mask, can you recommend something better?

    Quite new to avisynth, please can you give a example of a script for deblend.

    Cheers

    Steve
    Quote Quote  
  4. Video Damager VoodooFX's Avatar
    Join Date
    Oct 2021
    Location
    At Doom9
    Search PM
    Yesterday I didn't check it, your Loc is wrong too, you have to leave at least 10 pixels space around logo: Loc="50,26,-1140,-616"
    Read the help about the parameters you are using, it's located at the top in InpaintDelogo.avsi, open it with Notepad or any other program for text.

    Originally Posted by stevepen1974 View Post
    odd frame you see the logo blurred.
    I can't understand what that means.

    Originally Posted by stevepen1974 View Post
    I use PhotoFiltre7 to create the mask, can you recommend something better?
    Any image editor that has a 'Magic Wand' tool should be good for the job.
    Or you can use InpaintDelogo's "Automask" function to get a basemask automatically.


    Originally Posted by stevepen1974 View Post
    Quite new to avisynth, please can you give a example of a script for deblend.
    Just change "Inpaint" to "Deblend". Deblend is much more complicated, but it's automated.
    Quote Quote  
  5. Originally Posted by VoodooFX View Post
    Yesterday I didn't check it, your Loc is wrong too, you have to leave at least 10 pixels space around logo: Loc="50,26,-1140,-616"
    Read the help about the parameters you are using, it's located at the top in InpaintDelogo.avsi, open it with Notepad or any other program for text.

    Originally Posted by stevepen1974 View Post
    odd frame you see the logo blurred.
    I can't understand what that means.

    Originally Posted by stevepen1974 View Post
    I use PhotoFiltre7 to create the mask, can you recommend something better?
    Any image editor that has a 'Magic Wand' tool should be good for the job.
    Or you can use InpaintDelogo's "Automask" function to get a basemask automatically.


    Originally Posted by stevepen1974 View Post
    Quite new to avisynth, please can you give a example of a script for deblend.
    Just change "Inpaint" to "Deblend". Deblend is much more complicated, but it's automated.
    Thanks again, for the tips.
    Quote Quote  



Similar Threads

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