VideoHelp Forum




+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 40 of 40
  1. Originally Posted by sanlyn View Post

    But now I'm wondering what this statement is doing:
    RGBAdjust((0.9,0.9,0.8,1.0,0.0,0.0,0.0,0.0,1.00)

    The first two "0.9" parms reduce all red and green RGB values by 10%. The "0.8" reduces all blue values by 20%. The values that follow do nothing. Wouldn't the overall effect be to make the clip a bit more more yellow and visibly darker overall? It would be nice if holygamer had let us know exactly what correction is wanted.
    The values are correct, they reduce tint in my video. I just leave the other default values in so they show as sliders in AvsPmod.

    OK guys thanks. So it looks like this is the way to go however the sliders in AvsPmod now have no effect and I have to adjust the values manually! Also how do I use more than 1 filter for each mapping?

    Code:
    filtered=Tweak (Hue=-0, Sat=0.8, Bright=10, Cont=1.05, Coring=False) 
    ReplaceFramesSimple(last,filtered,Mappings="[0 18234]")
    
    filtered=Tweak (Hue=-0, Sat=0.8, Bright=10, Cont=1.05, Coring=False) 
    ReplaceFramesSimple(last,filtered,Mappings="[18235 73155]")
    Quote Quote  
  2. Originally Posted by holygamer View Post
    Also how do I use more than 1 filter for each mapping?
    The same way you always do - by putting a period followed by the next filter. You can see examples in the long script I posted earlier
    Quote Quote  
  3. Thanks. It's working perfectly now, this is what I have:

    Code:
    filtered=Tweak (Hue=-0, Sat=0.8, Bright=10, Cont=1.15, Coring=False).ConvertToRGB32(interlaced=true). RGBAdjust(0.9, 1.0, 0.9).converttoyv12(interlaced=true) 
    ReplaceFramesSimple(last,filtered,Mappings="[0 18234]")
    
    filtered=Tweak (Hue=10, Sat=1.0, Bright=10, Cont=1.15, Coring=False).ConvertToRGB32(interlaced=true). RGBAdjust(1.0, 1.0, 1.0).converttoyv12(interlaced=true) 
    ReplaceFramesSimple(last,filtered,Mappings="[18235 27439]")
    
    filtered=Tweak (Hue=10, Sat=0.8, Bright=10, Cont=1.2, Coring=False).ConvertToRGB32(interlaced=true). RGBAdjust(0.9, 1.0, 0.9).converttoyv12(interlaced=true) 
    ReplaceFramesSimple(last,filtered,Mappings="[27440 73155]")
    However for each section of the video I still need to have each filter on the same line. Is there no way to have each filter on it's own line?
    Quote Quote  
  4. I'm not sure I understand, but if using 2 filters over the same range of frames, you can also set up 2 instances of ReplaceFramesSimple. If the problem is the conversion to RGB and back, you can do it for the whole film before the ReplaceFramesSimple calls, do all the RGBAdjust stuff, and then convert back to YV12 before doing your Tweaks and whatever else.
    Quote Quote  
  5. Originally Posted by holygamer View Post
    this is what I have:

    Code:
    filtered=Tweak (Hue=-0, Sat=0.8, Bright=10, Cont=1.15, Coring=False).ConvertToRGB32(interlaced=true). RGBAdjust(0.9, 1.0, 0.9).converttoyv12(interlaced=true) 
    ReplaceFramesSimple(last,filtered,Mappings="[0 18234]")
    ...
    However for each section of the video I still need to have each filter on the same line. Is there no way to have each filter on it's own line?
    Code:
    unfiltered = last # only once, before all the ReplaceFramesSimple() calls
    
    Tweak (unfiltered, Hue=-0, Sat=0.8, Bright=10, Cont=1.15,  Coring=False)
    ConvertToRGB32(interlaced=true)
    RGBAdjust(0.9, 1.0,  0.9)
    converttoyv12(interlaced=true) 
    ReplaceFramesSimple(unfiltered,last,Mappings="[0 18234]")
    ...
    You really should be able to figure out simple things like this by now. Maybe this is what you're missing:

    When you don't specify the name of a video stream AviSynth assumes the name "last". For example:

    Code:
    AviSource("filename.avi")
    ConvertToRGB()
    RGBAdjust(0.9, 1.0,  0.9)
    ConvertToYV12()
    implies:

    Code:
    last = AviSource("filename.avi")
    last = ConvertToRGB(last)
    last = RGBAdjust(last, 0.9, 1.0,  0.9)
    last = ConvertToYV12(last)
    return(last)
    So

    Code:
     unfiltered = last
    in the above script means: make a copy of "last" at this point in the processing and call it "unfiltered". Any further processing on "last" will not effect "unfiltered".
    Last edited by jagabo; 10th Dec 2012 at 07:00.
    Quote Quote  
  6. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    Originally Posted by holygamer View Post
    Originally Posted by sanlyn View Post

    But now I'm wondering what this statement is doing:
    RGBAdjust((0.9,0.9,0.8,1.0,0.0,0.0,0.0,0.0,1.00)

    The first two "0.9" parms reduce all red and green RGB values by 10%. The "0.8" reduces all blue values by 20%. The values that follow do nothing. Wouldn't the overall effect be to make the clip a bit more more yellow and visibly darker overall? It would be nice if holygamer had let us know exactly what correction is wanted.
    The values are correct, they reduce tint in my video. I just leave the other default values in so they show as sliders in AvsPmod.
    The defaults certainly don't hurt anything. But reducing all three RGB colors by what is basically the same percentage, you add gray (reduce saturation and brightness) and thus made very little change in Tint. Then you reduced saturation again with Tweak, by the same amount again. That's close to a 25% reduction altogether. Nothing wrong with that, it's just that it doesn't do what you think it did.
    Last edited by sanlyn; 24th Mar 2014 at 12:15.
    Quote Quote  
  7. In this thread I was just asking about how to use ApplyRange, etc and I never posted a sample video so I don't know what video you used my settings on! My settings were correct for the video I was working on (never posted that video anywhere online!). For the other values that don't do anything, I just keep them there so that all the sliders for those values appear in AvsMod!
    Quote Quote  
  8. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    Right. I do the same thing with cut-and-paste for several plugins. Who the hell can remember all those parameters ? ?

    It just takes a while to get the hang of working on color. Once you start looking into it, it makes more sense. And now, back to my project (and you thought yours was tricky. I'm even seeing this one in my sleep).
    Last edited by sanlyn; 24th Mar 2014 at 12:16.
    Quote Quote  
  9. Yeah! That reminds me, do you know what all the default settings are for ColorYUV so I can see the sliders in AvsPmod?
    Quote Quote  
  10. Banned
    Join Date
    Oct 2004
    Location
    New York, US
    Search Comp PM
    You wouldn't want to enter all of ColorYUV's parameters in the same way as those for something like Tweak. Most of them default to 0. But some of those values require an entry and there is no default. For instance, "Autowhite" has no default; if you add it to a string of ColorYUV parameters and enter anything for a value (either true or false), then all your other settings in that same list for contrast, gamma, etc., will automatically be disabled. Better to look over the documentation to see what you want.

    Use START -> All Programs -> Avisynth 2.5 -> Avisynth Documentation. In the HTML display that follows, look at the table of contents,m upper left. You'll see a list of alpha letters a,b,c,d, etc. click on C, then click ColorYUV from the list.
    Last edited by sanlyn; 24th Mar 2014 at 12:16.
    Quote Quote  



Similar Threads

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