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.
+ Reply to Thread
Results 1 to 8 of 8
-
Last edited by pooksahib; 22nd Aug 2016 at 05:43.
-
Code:
part1 = Trim(0,49999).ColorYUV(...) part2 = Trim(50000,200000).ColorYUV(...) part3 = Trim(200001,0).ColorYUV(...) part1++part2++part3
-
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(...)"? -
Yes, zero in the second position means the last frame. Either of your modifications will work if the last frame is number 200000.
-
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
Similar Threads
-
Update: need Avisynth settings help (converting old DV/VOB to H.264)
By LouGee in forum Video ConversionReplies: 8Last Post: 13th Feb 2016, 11:30 -
Avisynth ColorYUV Gamma is doubling the encoding bitrate, please help
By VideoFanatic in forum RestorationReplies: 43Last Post: 15th Feb 2013, 10:41 -
How to Encode Parts of a Video at Different Settings with Avisynth?
By VideoFanatic in forum RestorationReplies: 10Last Post: 13th Sep 2012, 17:31 -
Series Box Sets & Music
By Tom Saurus in forum Off topicReplies: 6Last Post: 12th Jul 2012, 16:37 -
Virtual Sets
By chammond in forum Newbie / General discussionsReplies: 1Last Post: 22nd Feb 2012, 10:24