+ Reply to Thread
Results 61 to 90 of 187
-
-
Your processing did not change the levels, it produced super-white artifacts. You might want to make those artifacts visible by lowering the white level but then other parts of the picture that were perfect white (Y=235) before processing will now be a light grey instead (Y=~215), making the picture a bit dull. And the rest of the picture proportionally darker. And if you do the same at the dark end your perfect blacks (Y=16) will become dark greys (Y=~32), making the picture look washed out.
And concerning the darker and the washed out part of the pictures, it is the same as when you capture YUV in the 0-255 range (only few cards can do it) and then reduce the range to 16-235 before an AviSynth processing. I am acting on the levels at the end of the processing because this last "expanded" the range from limited to full, but it is equivalent.
The issue here is your definition of "levels". You are using the term just to describe the range of Y values. I'm using the term to mean the theoretical full black and full white values. -
Thanks jagabo, Sharc & lollo. Something came up yesterday and I wasn't able to practice the ColorYUV scripts. However I will research and practice on them on Saturday. Thank you for all the advice.
-
I've tried ColorYUV and adapted jagabos settings for a different clip. It seems to me to be within the legal range. I was wondering when you would use the U&V in ColorYUV? My previous clips script used dehalo_alpha but now I've changed over everything to 64 bit do I need this plugin to be 64 bit or do some plugins work on both? It does seem to work with my Avisynth+ 64 bit. I couldn't find a 64 bit on the Avisynth site. Thanks.
-
That black level looks too high to me. The main point of adjusting levels is to get parts of the frame that you know are supposed to be full black at Y=16, and parts that you know should be full white at Y=235. Having some small excursions outside that range isn't a problem. Not all shots will have full blacks and full whites -- so you may have to look at a few different shots to verify the levels. Of you may want to adjust the black/white levels differently for different shots. These are judgement/artistic calls. Of course, sometimes you may want to use such adjustments for other things -- like when you don't care about black levels and just want to make dark details more or less visible.
off_u and off_v can be used to adjust white balance (though RGB adjustments are usually better for this). Sometimes you'll have a video where the chroma channels are consistently shifted up/down and/or left/right. That type of problem can be fixed by shifting them back to the center (U=V=128).
cont_u and cont_v are for adjusting saturation. Occasionally you'll need to use different values for U and V.
Saturation and gain often go hand in hand. If you adjust gain_y (or cont_y) then you may want to adjust cont_u and cont_v by similar amounts. -
Thanks jagabo. Sorry if I'm not grasping it properly. I'm guessing that my staying within the bars on the waveform is correct? but my levels are wrong and my blacks need to be darker and less washed out? I've redone the levels but only visually? How should I analyze it better? I tried to make the dark area on my shirt darker however I'm not sure if this is the correct thing to do.
-
On the .avi source of post#66 you could for example try
Code:colorYUV(gain_y=-17,off_y=-5)
Last edited by Sharc; 10th Jun 2023 at 16:30.
-
Thanks Sharc. I will try your code tomorrow. What I struggle with is how you work out how to get to colorYUV(gain_y=-17,off_y=-5)? I've been reading various past forum and Avisynth pages today regarding ColorYUV but I'm not sure I'm understanding it any better. I even printed jagabos post#39 and read it at work this week to try to understand the concept better. My thinking was probably wrongly that you stay within the 16-235 range and then toggle between colorYUV(gain y=,off_y=) to get the correct levels. I know my explanation probably sounds crude I'm just hoping I've got even a small part correct so I can build on that. Thanks.
-
Here's a waveform monitor of the original video, frame 124:
TurnRight().Histogram().TurnLeft()
[Attachment 71628 - Click to enlarge]
Given how much of the waveform is bunched up just above the green line I suspect that is the correct black level. Little bits of the waveform below that level are probably just the result of oversharpening halos. Those aren't "real" portions of the picture but rather artifacts of the camera's and DVD recorder's processing. At the high end the crushed peaks at Y=255 indicate the white level should have been higher than 255. We don't really know how much higher. So we'll just bring those existing peaks down to 235.
Before seeing Sharc's latest reply I came up with ColorYUV(gain_y=-12, off_y=-8), a little lower at the black end, higher at the white end. Either would be adequate. -
Your thinking is correct. It's all about shifting the waves of the waveform monitor close to 16 for the darks (16 means black) and close to 235 for the brights (235 means white). You can usually ignore minor short occasional excursions Y<16 or Y>235 (typically caused by artifacts).
AvsPmod is an excellent tool for such adjustments as you see the result of the changes immediately. Once you try out and understand the basic impact of gain_y= and off_y= you can usually find the "correct" values in a few iterative steps (trial and error).
Edit:
In case you feel that dark areas and shadows look too dark you may want to play with gamma_y rather than just shifting the dark (black) level upwards.Last edited by Sharc; 11th Jun 2023 at 04:10.
-
Thanks jagabo & Sharc. What you have both explained has been really helpful to me thank you. I think one of the mistakes I'm making is that I'm trying to get everything within the bars. I will play with both your codes and post some new clips that hopefully I'm able to get nearer the desired standard. Thank you for your patience.
-
.....and, at the end and referring to the title of this thread, play an encoded testclip on your (hopefully properly adjusted) TV ......
-
I've uploaded 4 new clips. Hopefully I'm getting closer to where I need to be? The last 3 come from one tape (tape 38) and I'm hoping it works on the indoor/outdoor scenes. Thanks.
-
I will sometimes temporarily blur the picture and crop away the edges to reduce noise while making adjustments like this. For example:
Code:BinomialBlur(5) Crop(16,16,-16,-16) TurnRight().Histogram().TurnLeft()
-
Last edited by Sharc; 11th Jun 2023 at 08:29.
-
Thanks jagabo & Sharc. Great news thank you, I finally got there! I will try the BinomialBlur as well and see if I get slightly different results and post. Thank you again for all your help.
-
Thanks jagabo & Sharc. Yes I see what you mean it makes the waveform very clean to work with. I hope I put ColorYUV in the correct place? after the crop but before TurnRight().Histogram().TurnLeft(). I used Sharc settings which seemed to fully fill the waveform without encroaching into the brown bars.
-
Instead of BinomialBlur() you can downscale and upscale the frame. BilinerResize(width/4, height/2).BicubicResize(width, height). Or for HD video I often just downscale. Whatever works for the situation.
And I agree that the DV device is pretty consistent and you can probably use a compromise setting for most shots. -
Thanks jagabo. I will read about BilinerResize & BicubicResize I think I've seen it in other people scripts but never researched it. I will encode the videos tomorrow after work and post. Thanks.
-
I've encoded the videos. I deinterlaced and used dehalo_alpha but I will be careful when I use it. Hopefully that was ok to use it? I will watch the clips on my TV to check they look good. Thanks.
-
Looks good to me.
Whether you want to generally apply dehalo is your choice. It's a compromise between reducing halos and loosing fine details and structures (tendency to producing "wax skins" for example).
Edit:
In the first (....indoor bright....) .mp4 I see some color flicker (rainbows) at the edges of the shelf in the center. I think this is baked into the original though, and not caused by your processing.Last edited by Sharc; 13th Jun 2023 at 03:28.
-
Thanks Sharc. Thank you for the advice. I will be careful when I use dehalo_alpha. Thanks.
-
FineDehalo() is another option. You can use the same arguments as dehalo_alpha(). FineDehalo() uses a mask of sharp edges and only dehalos the worst halos. That keeps it from loosing small details. You may have fine tune the threshold values to get the look you want.
http://avisynth.nl/index.php/FineDehalo
I sometimes build my own edge mask and use it with dehalo_alpha().
Code:edgemask = mt_edge(...) dehaloed = dehalo_alpha(...) Overlay(last, dehaloed, mask=edgemask)
-
Thanks jagabo. I will have a look at the FineDehalo() that could be useful for a few of my videos that need more restoration and could be challenging. I will be posting them in the next few weeks. The edgemask looks a bit more daunting, I've seen it in other people scripts. I've found ColorYUV extremely hard to learn, I'm trying to retrain an old brain! I'm so grateful for the support I get. Thank you.
-
I going to encode my first full video on Sunday and I wanted to check as I'm not 100% sure. I captured my analogue videos using Virtualdub 1:9:11 32 bit, now I've set up everything for 64 bit Virtualdub2 & Avisynth to edit and encode and I wanted to double check that this is ok? Thanks.
-
That should be fine. Assuming that everything is working properly -- and from what we've seen that seems to be the case.
Similar Threads
-
Avi video conversion with format factory 3.5
By lestat870504 in forum Video ConversionReplies: 0Last Post: 2nd Feb 2023, 12:49 -
Which glasses for viewing SBS format 3D ?
By Seeker47 in forum VR Player and HardwareReplies: 7Last Post: 26th Jun 2022, 16:28 -
Convert .AVI Lagarith to friendly format
By Ferggue in forum MacReplies: 6Last Post: 10th Aug 2021, 17:00 -
convert a AVI (RFBW codec) to another format
By cpliu in forum Video ConversionReplies: 1Last Post: 12th Apr 2021, 14:50 -
any video format to AVi Container with DV Video format
By raadeon in forum Video ConversionReplies: 5Last Post: 29th Mar 2020, 08:23