VideoHelp Forum




+ Reply to Thread
Results 1 to 13 of 13
  1. I saw that it was discussed before but not quite clear or simple. I have script that works great for that particular video and i set it ok but the problem is that this setting is good for 3 min of the video then around 30 sec there is part which needs more blue and less sat and then again, another 2-3 minutes which needs less contrast and brightness.
    I look into trim function but in the script there is also mctemporaldenoise and sharp so i want to leave them for the whole video the same and only apply the different color setting on different parts ( in easy way )
    the script

    AVISource("D:\tanja i tomas.avi")
    AssumeTFF()
    PointResize(720, 576/2)
    ColorYUV(gain_y=-3, cont_y=25, off_u=8,gain_v=-8)
    PointResize(720, 576*2)
    ConvertToYV12(interlaced=true)
    #Histogram(mode="levels")
    MCTemporaldenoise(settings="medium")
    LSFmod()
    ConvertToYUY2(interlaced=true)
    PointResize(720, 1152/2)

    So i want to only use "ColorYUV" with different settings on different parts on the same video

    or is there any dynamic color cor plugin or software
    Quote Quote  
  2. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    Cut the video into sections. Correct each section. Re-join the sections.
    Last edited by sanlyn; 23rd Mar 2014 at 07:59.
    Quote Quote  
  3. Cut the video into sections. Correct each section. Re-join the sections.
    isn't there any easier way without doing separately if i only use color correcting then should it be pretty easy to make something like this I guess

    AVISource("D:\tanja i tomas.avi")
    Trim(from frame 1 to frame 100 ). ColorYUV(gain_y=-3, cont_y=25, off_u=8,gain_v=-8)
    Trim(from frame 101 to frame 200 ). ColorYUV(gain_y=-13, cont_y=15, off_u=6,gain_v=-15)
    Quote Quote  
  4. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    Originally Posted by mammo1789 View Post
    AVISource("D:\tanja i tomas.avi")
    Trim(from frame 1 to frame 100 ). ColorYUV(gain_y=-3, cont_y=25, off_u=8,gain_v=-8)
    Trim(from frame 101 to frame 200 ). ColorYUV(gain_y=-13, cont_y=15, off_u=6,gain_v=-15)
    Let's say the avi has 200 frames (or more). The first trim deletes frame 0, then makes your "working avi" (the current clip) 100 frames long. The working version of the clip now has no frame 101; its frame numbers are 0-99. you'll get an error on the second Trim() statement.

    Try:

    Code:
    in1 = AviSource("D:\tanja i tomas.avi")
    in2 = in1.Trim(0,99). ColorYUV(gain_y=-3, cont_y=25, off_u=8,gain_v=-8)
    in3 = in1.Trim(100,0). ColorYUV(gain_y=-13, cont_y=15, off_u=6,gain_v=-15)
    Out1 = in2++in3
    return Out1
    "++" = aligned splice to keep audio sync. A single + = aligned splice, no effort to sync audio.

    Problem is, if you have several sections and you only want to re-correct one of them, you have to run the whole thing again, including any other slow plugins that run after the trims.
    Last edited by sanlyn; 23rd Mar 2014 at 08:00. Reason: the usual flood of stupid and embarrassing typos
    Quote Quote  
  5. Load stickboy's RemapFrames DLL. Then:

    BaseClip=Last
    SourceClip=BaseClip
    SourceClip=SourceClip.ColorYUV(gain_y=-3, cont_y=25, off_u=8,gain_v=-8)
    ReplaceFramesSimple(BaseClip,SourceClip,Mappings="[0 99]")

    BaseClip=Last

    SourceClip=BaseClip
    SourceClip=SourceClip. ColorYUV(gain_y=-13, cont_y=15, off_u=6,gain_v=-15)
    ReplaceFramesSimple(BaseClip,SourceClip,Mappings="[100 199]")


    You can use each filter multiple times by adding more frames like this:

    [0 99] [500 699]

    Other filtering can be done both before and/or after those lines.
    Quote Quote  
  6. You don't go into troubles in using trims for one single filter especially when it's one internal filter
    applyrange, ever heard of that ? check the wiki

    And by the way there is no point to use point resize the way you use it imo
    *** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
    Quote Quote  
  7. And by the way there is no point to use point resize the way you use it imo
    if you mean the first pointresize with /2 after TFF is mistake ( it is not in the script) i put it twice here by mistake.
    The point of using point resize ( by jagabo suggestion is to make "losless" yuv2 yv12 again yuv2 transition because the filters (mctemporaldenoise) use yv12 coloryuv is ok with yuv2 so no pointresize there.

    You don't go into troubles in using trims for one single filter especially when it's one internal filter
    applyrange, ever heard of that ? check the wiki
    http://avisynth.org/mediawiki/ApplyRange
    yep heard of it i was there before I post it but it is confusing and nit about what i want.

    Can you post some simple script of using it like I mentioned in the post #3 without ( or with using applyrange) trim
    AVISource("D:\tanja i tomas.avi")
    Trim(from frame 1 to frame 100 ). ColorYUV(gain_y=-3, cont_y=25, off_u=8,gain_v=-8)
    Trim(from frame 101 to frame 200 ). ColorYUV(gain_y=-13, cont_y=15, off_u=6,gain_v=-15)
    Try:

    Code:
    in1 = AviSource("D:\tanja i tomas.avi")
    in2 = in1.Trim(0,99). ColorYUV(gain_y=-3, cont_y=25, off_u=8,gain_v=-8)
    in3 = in1.Trim(100,0). ColorYUV(gain_y=-13, cont_y=15, off_u=6,gain_v=-15)
    Out1 = in2++in3
    return Out1
    "++" = aligned splice to keep audio sync. A single + = unaligned splice, no effort to sync audio.

    Problem is, if you have several sections and you only want to re-correct one of them, you have to run the whole thing again, including any other slow plugins that run after the trims. You could use other processing before or after the trims. Personally, I'd run other plugins in a script apart from the ColorYUV routines, if trimming is the way you want to do it.
    Thanks sanlyn I will try that now

    thanks manono i will try that also ( although looks complicated for simplicity as i mentioned in the post #3)

    i tried with applyrange and get error can it be simple explanation
    Image Attached Thumbnails Click image for larger version

Name:	Untitled.png
Views:	264
Size:	87.8 KB
ID:	14026  

    Last edited by mammo1789; 25th Sep 2012 at 17:24.
    Quote Quote  
  8. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    ApplyRange works, also. There's more than one way to do it.
    Last edited by sanlyn; 23rd Mar 2014 at 08:00.
    Quote Quote  
  9. Ok but i get all sorts of error can someone please plain and simple explain the applyrange are the parameters ok in the script above and what should i do to make it work with coloryuv for frames from 1-1056 to 1057-4447 I mean the site of applyrange is very confusing and it should just put plain filter and show how is done ( like mine for example) I mean i don't have to be programmer to understand it I am starting to get tired with avisynth ( and i just scratched the surface of it ) unsimplicity and long learning curve for simple stuff ( because some filter makers even avisynth itself can't make good explanation take for example from Fizick's site how the explanation on the page should be made )
    Quote Quote  
  10. Usually I'm going to RGB anyway for tough color problems (hello, VHS!) so I just make separate AVI clips for diffrerent filtering.
    Yes but i learnt from you that you have to make right correction in yuv first. And i don't plan on heavy color correction ( this clip doesent need it anyway ) only simple ( lowering yellowish tint on one part, lowering redish on other put some noise reduction and sharpening and go) simple as that.

    Anyone? what parameters am I missing or doing wrong I can get applyrange to work with coloryuv in my example and ApplyRange(100,149,"Blur", 1.0) works but how to use coloryuv parameters without error expecting this and that i tried , . " and still nothing
    Last edited by mammo1789; 25th Sep 2012 at 18:26.
    Quote Quote  
  11. Originally Posted by mammo1789 View Post
    thanks manono i will try that also ( although looks complicated for simplicity as i mentioned in the post #3)
    It couldn't be any simpler. Just copy and paste into your script. Change the filters and their settings in one line, and the range of frames in the other. It's pretty much just what you asked for. I find it way more intuitive than using applyrange, for the reasons sanlyn mentioned, and less typing than using all kinds of trims. But maybe that's just me. Different minds work better with different ways of doing things.
    Quote Quote  
  12. It couldn't be any simpler. Just copy and paste into your script. Change the filters and their settings in one line, and the range of frames in the other. It's pretty much just what you asked for. I find it way more intuitive than using applyrange, for the reasons sanlyn mentioned, and less typing than using all kinds of trims. But maybe that's just me. Different minds work better with different ways of doing things.
    Oh my, sorry manono for my stupidity i stuck on applyrange and let your script for later ( big mistake )
    thanks again that is exactly as i wanted plain simple fast
    Quote Quote  
  13. Here is how you use applyrange:

    For ColorYUV(gain_y=-3, cont_y=25, off_u=8,gain_v=-8):
    ApplyRange(100,101,"colorYUV",-3, 0, 0, 25, 0, 8, 0, 0, -8)

    # Coloryuv will apply from frame 100 to 101, replace according to your needs
    # you can use multiple instances

    You have to respect the order of the arguments and put 0 if there is one you don't use, as a reminder the main args below:
    coloryuv(gain_y,off_y,gamma_y,cont_y,gain_u,off_u, gamma_u,cont_u,gain_v,off_v,gamma_v,cont_v ( etc....))
    Last edited by themaster1; 25th Sep 2012 at 18:54.
    *** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
    Quote Quote  



Similar Threads

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