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.
+ Reply to Thread
Results 1 to 5 of 5
-
-
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#post2226119Last edited by jagabo; 18th Sep 2013 at 20:26.
-
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)
i'm still researching the idea, but if it turns out to be too much heartacke, i will leave it alone and move on. -
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.
-
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)
edit: the delay between fade-to-motion took a little more tweaking. the above now works better.
Similar Threads
-
"fade in / fade out" AC-3 using cmd tool
By adom in forum Video ConversionReplies: 3Last Post: 17th Jan 2013, 04:44 -
FFmpeg fade in/out
By templetonpeck in forum Video ConversionReplies: 2Last Post: 25th Jul 2012, 08:55 -
How do I debug/extract i-frame p-frame and b-frame?
By jwbrasil2 in forum ProgrammingReplies: 0Last Post: 20th Nov 2011, 12:24 -
avisynth - how to fade in (but audio has to fade in faster)
By adom in forum EditingReplies: 13Last Post: 31st Jan 2011, 12:45 -
Play an MTS file frame by frame, displaying timecode or frame number
By SeánB in forum Software PlayingReplies: 5Last Post: 5th Oct 2010, 16:26