VideoHelp Forum




+ Reply to Thread
Results 1 to 18 of 18
  1. Ive seen it been done with perfect result, but when i try it, it becomes hard and not as smooth as it supposed to be (i've used the logo-away plugin for VD)..

    ...story...

    I've got a copy of an old tv-show, and i want to remove the logo of the station that broadcasted the show, worth mentioning is that its not a permanent logo, it flickers on and off from time to time.

    I've RTFM but i cant get it right, any general tips/settings how to make it work with a better result? i.e to make it smoother.


    help's appreciated
    :.:.:.:.:.:.:.:.:.:.:.:.
    Quote Quote  
  2. Member ZippyP.'s Avatar
    Join Date
    Nov 2002
    Location
    Lotus Land
    Search Comp PM
    Here's what I've done;

    If the logo only appears once in a while, then the video can be editted with Vdub and cut up into pieces, the parts that need the filter and the parts that don't. Filter the parts that need it then reassemble the video with Vdub. It can be alot of work and you need to decide if it's worth it. I've only done it once as an experiment, but the results were excellent.

    To set up the filter, I put the preview on and use solid fill to locate and size the box. Make sure to completely cover the logo, go a little bit over even. Then I set it for X-Y mode. Depending on the size and location of the box, I'll adjust the X & Y to suit, a little more X infill or a little more Y.

    That's really about it, I've been happy with the results.

    8)
    "Art is making something out of nothing and selling it." - Frank Zappa
    Quote Quote  
  3. ok I'll give it a go, thanks!

    ---story 2----

    8)


    the first logo appears between frame number 1388-1497

    lets say that i only what to remove that
    particulary one logo, how should i proceed?.

    i dont want the whole rip to become blurred at those coordinates (where the logo appears), just between frame no: 1388-1497... Thats it.

    Is there a scipt to make this work or do i have to encode it part by part? i.e encode frame 0-1388, then encode 1498 --end, and do the logo-away on frames 1388-1497?.

    btw this id the first time i use this filter so please be patient
    Quote Quote  
  4. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    Use AviSynth as frameserver and apply logo_away on just the trimmed block of frames:
    global VirtualDub_plugin_directory = "d:\vd\plugins"
    c=avisource("g:\stone.avi")


    c1=c.trim(712,832)
    c2=c.trim(1388,1497) # this is the part with the removed logo!
    c3=c.trim(2056,136859)
    c2=logoaway(c2,2,430,93,220,24)
    return c1+c2+c3

    function logoaway(clip clip,int typ,int xp,int yp,int xs,int ys)
    {
    LoadVirtualdubPlugin(VirtualDub_plugin_directory+" \logoaway.vdf", "_LogoAway")
    border_X = xp
    border_Y = yp
    A = border_X*65536+border_Y
    logosize_X = xs
    logosize_Y = ys
    B = logosize_X*65536+logosize_Y
    upper_left = 0
    upper_right = 1
    down_right = 3
    down_left = 2
    t = 1*down_right + 256*down_left + 65536*upper_right + 16777216*upper_left
    return clip._LogoAway(typ, A, B, 1, 0, 5, 0, t, 0,1, "", "")
    }

    As you can see, logoaway is only applied to clip c2, c1 and c3 are uneffected-
    Quote Quote  
  5. Hmmmzz. Ill try that later got a serious hangover bbl
    Quote Quote  
  6. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    Better I hadn't use stone(d).avi as example.Sorry and get better! 8)
    Quote Quote  
  7. Member ZippyP.'s Avatar
    Join Date
    Nov 2002
    Location
    Lotus Land
    Search Comp PM
    I gotta learn Avisynth. Know where I can find some good tutorials?
    "Art is making something out of nothing and selling it." - Frank Zappa
    Quote Quote  
  8. Member
    Join Date
    Mar 2003
    Location
    Uranus
    Search Comp PM
    How come C1 C2 and C3 ranges don't span the whole movie ?
    Quote Quote  
  9. Member
    Join Date
    Mar 2003
    Location
    Uranus
    Search Comp PM
    Zippy ,

    Doom 9 has all the Avisynth nuts. The
    HTML help ifor it is quite useful as it has the occasional example
    Good start anyway.

    I have a reward out for the solution to 1 particular problem
    "an AVI clip has an occasional pair of exactly duplicated frames.
    find all of them and delete one of each pair "
    Quote Quote  
  10. Member ZippyP.'s Avatar
    Join Date
    Nov 2002
    Location
    Lotus Land
    Search Comp PM
    Thanks Foo!
    "Art is making something out of nothing and selling it." - Frank Zappa
    Quote Quote  
  11. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    Originally Posted by FOO
    Zippy ,

    Doom 9 has all the Avisynth nuts. The
    HTML help ifor it is quite useful as it has the occasional example
    Good start anyway.

    I have a reward out for the solution to 1 particular problem
    "an AVI clip has an occasional pair of exactly duplicated frames.
    find all of them and delete one of each pair "
    Do you know this function ?
    http://www.avisynth.org/index.php?page=Compare
    You need 2 passes then: 1st find all duplicates, read the log and make a deletframe list out of that.
    (I'm assuming duplicates are next to each other)
    Quote Quote  
  12. Member
    Join Date
    Mar 2003
    Location
    Uranus
    Search Comp PM
    Yes that's how I do it now. I would like a 1 pass
    script.
    Quote Quote  
  13. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    In that case, rewrite the filter and let it return true or false (false: equal, true: not equal).
    Quote Quote  
  14. Member
    Join Date
    Mar 2003
    Location
    Uranus
    Search Comp PM
    I asume you mean the Compare()
    It now returns a clip.
    Even with that it's not easy. There is no looping structure.
    Unless you use recursion. Maybe I'll look for Avisynth related sources
    Quote Quote  
  15. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    You're of course right.So even if you use a modified Compare and the boolean expression, there's no way (AFAIK) to loop inside AviSynth.
    The other question is, what do you want to do with the duplicate frame?
    Deleting doesn't work with audio, so you'll have to use the trim function.
    Quote Quote  
  16. Member
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    I've done it in VDUB, but it's a LOT of work. You won't be able to completely remove it in your lifetime ( it can be done, but not with what you are using ). Is the logo opaque, or is it transparent?

    Sometimes it's easier to crop, or superimpose something else.
    To Be, Or, Not To Be, That, Is The Gazorgan Plan
    Quote Quote  
  17. You might want to try DeLogo by Karel Suhajda. I have used it to remove the "bugs" on a lot of TV shows. Doesn't work on the 1/4 screen opaque animated stuff some stations are using now.

    I have even gone as far as to apply the filter in one install of VDub and frame serve it to another install to get those really stuborn logos.

    Lot of work and I still know where the logo was (my wife really doesn't notice the repair) but it is much better than it was.

    Mike
    Quote Quote  
  18. Maybe I'm too stupid ...

    ... I tested the script below (with AviSynth 2.52, all pathes ok) but I always get the error code "Invalid Arguments to function Logoaway Line 16 & 30"

    Can anybode help me ?
    thanks a lot !!

    # ===========================================
    function logoaway(clip clip,int typ,int xp,int yp,int xs,int ys)
    {
    LoadVirtualdubPlugin("d:\logoaway.vdf", "_LogoAway")
    border_X = xp
    border_Y = yp
    A = border_X*65536+border_Y
    logosize_X = xs
    logosize_Y = ys
    B = logosize_X*65536+logosize_Y
    upper_left = 0
    upper_right = 1
    down_right = 3
    down_left = 2
    t = 1*down_right + 256*down_left + 65536*upper_right + 16777216*upper_left
    return clip._LogoAway(typ, A, B, 1, 0, 5, 0, t, 0,1, "", "")
    }


    # Main ==== Problem: !!! Invalid Arguments to function Logoaway Line 16 & 30 === ??? ==

    xPos = 50
    yPos = 100
    xSize = 32
    ySize = 32

    video = "d:\Testvideo.avi"
    withlogo = AviSource(video).ConvertToRGB()
    nologo = logoaway( withlogo, 1, xPos, yPos, xSize, ySize)
    return nologo
    Quote Quote  



Similar Threads

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