VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    May 2007
    Location
    United Kingdom
    Search Comp PM
    Is there such a thing as a filter for Avisynth (or Virtual Dub) which would reverse the effects of "credit squeezing" at the end of TV programmes?

    I would imagine it would work something like this: Specify the coordinates of the four corners of the credits at their maximum size, and their minimum size, then specify the last frame at which they were maximum size, the first and last frame at which they were minimum size, and the first frame in which they are back to maximum size. The filter could then work out for any frame what size the credits have been shrunk to, and expand them out to fill the maximum size.

    I don't know how good the results would look, but it seems eminently possible to me, if only I had the knowledge to write it myself.
    Quote Quote  
  2. Member Epicurus8a's Avatar
    Join Date
    Oct 2004
    Location
    Ocean West, USA (ATSC)
    Search Comp PM
    Good luck. Even if you find a way to do it, the results probably won't meet your expectations.
    Quote Quote  
  3. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by AlanL
    Is there such a thing as a filter for Avisynth (or Virtual Dub) which would reverse the effects of "credit squeezing" at the end of TV programmes?
    Yes, I've done this.
    It's bit blurry, still an improvement on the promos running in-screen.

    Here's an example of one where the original credits were compressed into the bottom half of the screen while a promo ran in the top half:

    Code:
    AVISource("01_TBP.avi")
    EnsureVBRMP3sync()
    #ShowFrameNumber(x=100,y=100)
    
    trim(0,122882)++\
    trim(124266,124990).Crop(0,244,0,0).LanczosResize(640,368).Amplify(0.0) ++\
    trim(125001,0)
    
    LanczosResize(688,576,0,0,640,368)
    AddBorders(16,0,16,0)
    The rationale:
    ShowFrameNumber -- Used while writing the script. Commented out at the end.

    trim(0,122882) and trim(125001,0) -- The normal parts of the video


    trim(124266,124990) --The segment with squeezed credits.
    Crop(0,244,0,0) -- Crop down to the miniature credits
    LanczosResize(640,368) -- Resize to the full frame
    Amplify(0.0) -- Kill the audio for this (optional)

    You can use the crop editor in AvsP or VDub to get the exact crop.

    Note that I just omitted transition frames.
    It would get messy if you wanted to restore every single frame of those while it was zooming in or out.
    That usually takes less than a second, and I didn't lose any names from the credits by skipping that.
    Quote Quote  
  4. Member
    Join Date
    May 2007
    Location
    United Kingdom
    Search Comp PM
    Thanks for the reply - I'll give that a go later.
    Quote Quote  



Similar Threads

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