VideoHelp Forum




+ Reply to Thread
Results 1 to 19 of 19
  1. Well my problem here is.

    i put the plugin into the Plugins folder etc

    Made my script which is

    LoadCplugin("C:\Program Files\AviSynth 2.5\plugins\AVSInPaint.dll")
    Import("C:\Program Files\AviSynth 2.5\plugins\INPAINTFUNC.avs")
    LoadPlugin("C:\Program Files\MeGUI\tools\avisynth_plugin\ColorMatrix.dll")
    LoadPlugin("C:\Program Files\MeGUI\tools\dgindex\DGDecode.dll")

    DGDecode_mpeg2source("C:\Documents and Settings\Administrator\Desktop\VIDEO_TS\VTS_01_1.d 2v", info=3)

    ColorMatrix(hints=true, threads=0)

    crop( 0, 0, 0, 0)
    LanczosResize(720,400)

    InpaintFunc(last, mask="screen.bmp", loc="ml", AR=16.0/9.0, mode="both", speed=20, ppmode=1, pp=75)
    This script seems pretty good to me.

    But i open VDUBMod

    Try and open the script it says:

    Avisynth Open Failure:
    Not And AVISYNTH LOAD C PLUGIN: C:\ProgramFiles\Avisynth 2.5\Plugins\AVSInpaint.dll
    C:\Documents and Settings\Administrator\Desktop\Myscript Line1

    I Really need some help getting this to work.

    I am using Avisynth Version 2.5

    all my other plugins work fine.
    Thanks in advance
    Quote Quote  
  2. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    http://avisynth.org/mediawiki/Plugins
    Kevin provides a LoadCPlugin.dll that overloads the LoadCPlugin() verb to support plugins compiled using the C subroutine calling sequence, use Load_Stdcall_Plugin() to load stdcall calling sequence plugins when using Kevins version. Advice: keep these plugins outside your auto plugin loading directory to prevent crashes.
    Not sure which DLL this refers to; but try putting the AVSInPaint.dll in another folder.
    Last edited by AlanHK; 4th Aug 2010 at 13:14.
    Quote Quote  
  3. Ok so i moved it to another directory, same error...
    Quote Quote  
  4. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Are you running the latest version AVSInpaint-2008.02.23.zip?

    If you have the the previous version AVSInpaint-2008.01.06.zip, then you also need to put
    LoadPlugin("AviSynth_C.dll")
    before the LoadCPlugin call.

    Or download the later version from
    http://forum.doom9.org/showthread.php?t=133682
    Quote Quote  
  5. Ok, i retried that and that worked but now it comes up with another error
    it says:
    Analyze: Mask Is Empty
    Directory\INPAINTFUNC.avs, Line 304
    Last edited by tribal1965; 4th Aug 2010 at 18:26.
    Quote Quote  
  6. Is your screen.bmp in the middle left side? And does your screen.bmp consist of a true white area where the logo is, against a black background? Just using a pic taken from the video won't work.

    If the answers are 'yes', You can also crop to it more exactly:

    loc="68,54,-600,-388"#just an example

    And the chances are very good that you don't need the Colormatrix filter. Are you reencoding for DVD?
    Quote Quote  
  7. This is my screenshot:

    as far as i know it's all black and white...

    I Am re-encoding DVDR VOBS to encode to AVI File blurring subtitles
    Last edited by tribal1965; 5th Aug 2010 at 06:35.
    Quote Quote  
  8. Does that look like ML (middle left) to you? Or, at 720x400 are you not including the entire thing? It's so big you'll have to use crop figures to get AVSInpaint to work correctly.
    Quote Quote  
  9. Ok, thanks for the reply, but i don't understand what you mean, i am trying to learn this plugin to be honest so if you could be a bit more simpler

    Does it mean the pic can't be 720x400?

    What do i need to put instead of ML?

    also what am i doing wrong,

    Thanks for replies it's appreciated.
    Quote Quote  
  10. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    See detailed documentation at
    http://avisynth.org/mediawiki/InpaintFunc
    Quote Quote  
  11. Hey,

    thanks for reply i literally just noticed that about ML etc.

    anyhow i need to know my specs of my white box

    example : loc = "0,300,-440,-20". Spaces are not allowed in "loc" parameter.
    from the thread, my screenshot above how do i get them from my screen?

    Thanks if someone could tell me
    Quote Quote  
  12. ...my screenshot above how do i get them from my screen?
    I make an AviSynth script, use ImageSource on it, open the script in GKnot and crop to get the crop values. You could do the same using VDub((Mod) to do the cropping. Because your logo is so large and spans 3 different locations (BL, BC, BR), you'll have to use crop values to get all of the logo removed:

    ImageSource("E:\2m7at0y.jpg")#adjust for your JPG location

    And the crop values you plug into the Loc part of your InPaint script are loc="72,298,-112,-40". By the way, if this is a long video (more than 5 minutes, maybe), I'd trim off 500 frames or so to test first, to see if you like the results. This thing takes a very long time just to open (frequently as long or longer than the length of the video), and much, much longer to encode. And I've always used BMPs, but I guess JPGs are OK.
    Last edited by manono; 5th Aug 2010 at 18:17.
    Quote Quote  
  13. Thanks for the reply, i will give this a try now , my screenshot is .bmp but tinypic converted it

    really thanks for your advice though
    Quote Quote  
  14. Right,

    i tried loc="72,298,-112,-40" on the avs script, and now it comes up with "Mask Is Full"
    Quote Quote  
  15. My fault and I apologize. It's been a while since I've had to use the crops on a logo and I forgot that you can't crop right to the white part. Try loc="70,296,-110,-38". I tested it and it works. You might even want to leave more space around it, something like loc="68,294,-108,-36".
    Quote Quote  
  16. Finally i got it open

    However, the blur seems to pretty poor to be honest....could anyone help me configure my script now?

    so far the script is

    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\avisynth_c.dll")
    LoadCplugin("C:\Program Files\AviSynth 2.5\plugins\AVSInpaint.dll")
    Import("C:\Program Files\AviSynth 2.5\plugins\INPAINTFUNC.avs")
    LoadPlugin("C:\Program Files\MeGUI\tools\avisynth_plugin\ColorMatrix.dll")
    LoadPlugin("C:\Program Files\MeGUI\tools\dgindex\DGDecode.dll")

    DGDecode_mpeg2source("C:\Documents and Settings\Administrator\Desktop\VIDEO_TS\VTS_01_1.d 2v", info=3)

    ColorMatrix(hints=true, threads=0)

    crop( 0, 0, 0, 0)
    LanczosResize(720,400)

    InpaintFunc(last, mask="C:\Program Files\AviSynth 2.5\plugins\screen.bmp",loc="68,294,-108,-36", AR=16.0/9.0, mode="both", speed=20, ppmode=1, pp=75)
    The screens for Source and Would be encode here :
    Source:

    Would be Encode:


    So anyone know how i could edit my script? sorry i am really new to this plugin

    I really want a neat blur, else i would of just used logoaway
    Last edited by tribal1965; 6th Aug 2010 at 18:07.
    Quote Quote  
  17. I don't know that you'll be able to get anything better than logoaway. That mask is just so big. However, you could back off the cropping some more (maybe subtract 4 more pixels from each number) at the expense of even longer encoding times. And it looks like your mask doesn't cover all the subs on the right side since there's a piece of a letter left. Maybe back off the right side crop by 10 pixels. And the PP should be 100. It'll become more blurry, but with those weird lines being less prominent. Also, your AR after the resize is no longer 16.0/9.0 but 1.0/1.0. But that won't make much difference. Also, it wasn't designed to do what you're trying to do. Instead of a constant logo in place for the entire movie, you have a 'logo' that constantly shifts around and changes size and sometimes isn't even there. InPaintFunction isn't really what you want to use. In fact, any logo remover will only create a nasty looking blur. Get the movie without burned in subs.
    Quote Quote  
  18. AH ok, i apreciate all the replies then....is their a good blur filter to remove subtitles, ive saw a couple people do this in the past, and the blur looks brilliant. just don't know what scripts/filters they use, it's definetly not logoaway....
    Quote Quote  
  19. I haven't had much practice removing hardcoded subs from downloaded movies because I don't download movies with hardcoded subs. Do you know how to use Logoaway properly:

    http://www.voidon.republika.pl/virtualdub/ladocs301/logoaway.html

    If it's a blur you want, it can certainly make a blur. There are other logo removers available, both AviSynth and VDub filters. Try them all. My opinion, though, is that it isn't worth the effort.
    Quote Quote  



Similar Threads

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