VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    i do a lot short encodes but that start/end with poor quality looking frames.

    an idea occured to me, that maybe its possible to use the fade in/out on these two frames. the trick is not to FadeIN, up to the poor frame, but rather, FadeIN, from black to normal, starting from that poor frame, and then continue after that frame in normal brightness. same for the last frame, use the last frame, and fade out to black from that frame.

    to fine-tune this, i would bring clip into progressive (ivtc) and find a "best" frame to start the FadeIN/OUT with.

    is this possible ? and how ?

    thank you.
    Quote Quote  
  2. Eveny NLE has fade in/out functions. Most are more time based though. All you have to do is calculate the time between the start and end frames. VirtualDub has such filters. AviSynth too.

    Also consider using motion interpolation to replace as few frames here and there.
    https://forum.videohelp.com/threads/352741-Frame-interpolation
    https://forum.videohelp.com/threads/352741-Frame-interpolation?p=2226119&viewfull=1#post2226119
    Last edited by jagabo; 18th Sep 2013 at 20:26.
    Quote Quote  
  3. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    i don't want to fadein from a previous sequence into the main clip. and although i've done the fadein from a somewhat dark frame into the main, i don't want to do that either. a lot of times that fadein (from the broadcast) is poorly done, ie., episode-to-commercial and commercial-to-episode.

    frames: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ..

    i am trying to figure out how to get just the start of the first frame of my choice, and fadein from that frame and only using that frame to do all the fadein to. in other words. i want to take frame 1, make it black, and incrementally brighten (fadein) it to its normal britheness. same for the last frame, but reverse. go from normal to black.

    i tried using blankclip but it doesn't seem to do what i am trying to make it do. plus, it takes a lot of code on one line to make it somewhat work. otherwise, i'm just not very good with avisynth scripting. the result is an 'blankclilp: only 1 template clip allowed' error, whatever variation i make to this snippet below. it is part of my usual script to process interlace to progressive.

    Code:
    fadein(10).BlankClip(last, length=50, width=720, height=480, fps=24, color=$000000).trim( 09291,000000).separateFields().selectevery(5, 0,1,2,3).weave( ) .trim( 0001, 0) .trim(00000, 0) .trim(0, 00001437)
    Code:
    trim( 09291,000000).separateFields().selectevery(5, 0,1,2,3).weave( ).fadein(10).BlankClip(last, length=10, width=720, height=480, fps=24, color=$000000).trim(0, 00001437)
    fails also.

    i'm still researching the idea, but if it turns out to be too much heartacke, i will leave it alone and move on.
    Quote Quote  
  4. Use Trim() to remove unwanted frames, Loop() to extend the one frame you want for the length trim, then FadeInOut(). Something like this (you may have to fine tune it):

    Code:
    function StillFadeIn(clip source, int "first", int "count")
    {
          part1 = Trim(source,0, first-1)
          part3 = Trim(source, first+count+1, 0)
          section = Trim(source, first+count, first+count) # last frame of section
          section = Loop(section, count, 0, 0) # repeated for duration of fade in
          section = FadeIn(section, count)
          return(part1++section++part3)
    }
    Last edited by jagabo; 18th Sep 2013 at 21:39.
    Quote Quote  
  5. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    i actually figured it out. but i will try your code next. ty.

    Code:
    trim( 09291,000000).separateFields().selectevery(5, 0,1,2,3).weave( ).trim(17,0).loop(5,0,0).fadein(30).trim(0, 00001437)
    the above worked perfectly. i'm guessing the last frame will be similar code.

    edit: the delay between fade-to-motion took a little more tweaking. the above now works better.
    Quote Quote  



Similar Threads

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