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
+ Reply to Thread
Results 1 to 13 of 13
-
-
Cut the video into sections. Correct each section. Re-join the sections.
Last edited by sanlyn; 23rd Mar 2014 at 07:59.
-
Cut the video into sections. Correct each section. Re-join the sections.
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) -
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
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
-
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. -
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 -
And by the way there is no point to use point resize the way you use it imo
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
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 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 explanationLast edited by mammo1789; 25th Sep 2012 at 17:24.
-
ApplyRange works, also. There's more than one way to do it.
Last edited by sanlyn; 23rd Mar 2014 at 08:00.
-
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 )
-
Usually I'm going to RGB anyway for tough color problems (hello, VHS!) so I just make separate AVI clips for diffrerent filtering.
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 nothingLast edited by mammo1789; 25th Sep 2012 at 18:26.
-
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.
-
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.
thanks again that is exactly as i wanted plain simple fast -
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
Similar Threads
-
How to Encode Parts of a Video at Different Settings with Avisynth?
By VideoFanatic in forum RestorationReplies: 10Last Post: 13th Sep 2012, 17:31 -
VobSub color settings
By smike in forum SubtitleReplies: 0Last Post: 6th Aug 2012, 21:17 -
Trying to copy VHS to DVD, but color is black and white at parts!
By MikeyA in forum Newbie / General discussionsReplies: 4Last Post: 10th Oct 2009, 17:26 -
[color=blue]video oediting software for ASUS Eee PC (white ones)[/color]
By helpmepls in forum Newbie / General discussionsReplies: 1Last Post: 6th Feb 2009, 07:53 -
Estimates of labor and parts to fix color of Sony HDTV
By edong in forum Newbie / General discussionsReplies: 11Last Post: 28th Nov 2008, 22:41