VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. Hi. Here's the relevant section of a script I'm using:

    ColorYUV(gain_y=0, off_y=20, gamma_y=80, cont_y=80, gain_u=20, off_u=10, gamma_u=37, cont_u=110, gain_v=10, off_v=0, gamma_v=45, cont_v=100)
    QTGMC()

    The video comprises an exterior scene followed by an interior scene and the ColorYUV settings above are for the latter. Let's say the interior scene begins at frame 50000 and ends at 200000, can I have a script that applies a different ColorYUV setting to frames 0-49999? My googling of this has not been conclusive...

    Thanks for any advice offered.
    Last edited by pooksahib; 22nd Aug 2016 at 05:43.
    Quote Quote  
  2. Code:
    part1 = Trim(0,49999).ColorYUV(...)
    part2 = Trim(50000,200000).ColorYUV(...)
    part3 = Trim(200001,0).ColorYUV(...)
    part1++part2++part3
    Quote Quote  
  3. Hi jagabo and thanks (thanks sneaker and pandy, too).

    I take it that in 'part3', 0 equates to 'last frame'? Using my original example where the vid is 200000 frames, I think my script would be:

    part1 = Trim(0,49999).ColorYUV(...)
    part2 = Trim(50000,0).ColorYUV(...)
    part1++part2

    Am I right? Could I even just leave it at "part2 = Trim(50000,200000).ColorYUV(...)"?
    Quote Quote  
  4. Yes, zero in the second position means the last frame. Either of your modifications will work if the last frame is number 200000.
    Quote Quote  
  5. Great stuff, thanks.
    Quote Quote  
  6. Trim is good when there are only a few sections. If you have to treat many sections differently it's easier to use ReplaceFramesSimple, part of the RemapFrames package:

    http://avisynth.nl/index.php/RemapFrames
    Quote Quote  



Similar Threads

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