![]() |
4 Attachment(s)
Quote:
If lordsmurf's script removes comets and dropouts, and is obviously faster than RemoveSpots and does some smoothing, why use RemoveSpots? BTW, I had trouble getting that script to work because of other plugins I didn't have at the time, so didn't get into it earlier. But tried it later after updating my other plugins. It has its good points, but so does RemoveSpots. It takes some experimentation to learn the pros and cons of different filters that do similar things. Some filters work with SeparateFields, others (like FixChromasBleeding, Chromashift, etc.,) work best with full deinterlace. SeparateFields has one field displaced lower than the other, deinterlacing doesn't. Filters like RemoveSpots, RemoveDirtMC, mvDegrain2 work OK either way. Color correction doesn't care whether it's interlaced or not. Yes, deinterlacing does have its bad side (QTGMC can create artifacts like posterizing and over-cleaning if you're not careful), yadif doesn't denoise or do motion interpolation, a simple bob can soften the video, etc. ReplaceFramesMC should work on deinterlaced, but sometimes you might have to accept a slight blur on a frame or two if you use it on interlaced material, and if there's a lot of motion it can create bizarre effects. You soon develop a knack for seeing what a filter does or doesn't do under different conditions. I usually save color correction for last because I don't care for going repeatedly between YUV and RGB back and forth. For the attached samples I used two passes, all of it in Avisynth before going to a VirtualDub tweak. Part 1 is lordsmurf's NR and dropout cleaner. This cleaned dropouts and streaks and a little of the of the flicker. Results attached as studio1b Part 1.mp4. Part 2 is for Avisynth levels and hue tweak (I left the histogram lines commented-out to show how I checked levels), QTGMC for denoising and shimmer and flicker reduction, fixes for chroma bleed and displacement, temporal smoothing for luma flicker, sharpening, adding some film-like grain to reduce over filtering effects. Then there's one line to repair the frame shift at frame 17 - 19, done while interlaced to avoid having to correct 6 shifted fields -- there's not much motion or combing, so this worked OK. Then RGB conversion for Virtualdub filters. I added ColorMill with a little midtone red and blue to keep the guy from looking too green. The results were saved as YV12 out of Virtualdub for encoding. Results attached as studio1b Part 2.mp4. |
Are you able to attach the VirtualDub settings file?
I probably wouldn't use RemoveSpots() if lordsmurf's script did enough. At present it's field-separated, working on even fields and odd fields distinctly, then an interleave and weave. I'm not sure LS's is faster, but it seems to have done a better job from the small sample I've been able to look at after running it first, followed by the same process I'd used initially. Export/Import is exporting as an AVI in VDub, then bringing the result into a new AviSynth script. I'm not familiar with SmoothTweak, ChromaMotion, DenoiseMC, GrainRestore, TemporalSoften, or grainfactory. You usually use AddGrain(), I assume grainfactory is basically the same thing, any reason to choose one over the other? Given how soft the whole thing is to begin with, and how much denoising is going on, a softener seems an odd choice. I think I asked this earlier and I think it got overlooked, but is an RGB conversion in the final AviSynth file necessary? Won't VDub just do that automatically if it needs to? I've also found that using AddBorders in AviSynth doesn't really work, because they end up being affected by color correction. Not sure if I'm missing something, but it's easy enough to just add them as the last VDub filter. I'm guessing the audio glitch in your sample file is ReplaceFramesMC screwing up? Is there a way to pull the audio out at the start of a script and then add it back at the end to avoid that? I've had to knock out 16 fields on a different clip and it's an absolute disaster audio-wise (video looks great, though). |
3 Attachment(s)
Quote:
Quote:
:smack: There are two ways to fix it. You can save the audio in a script by using these lines: Code:
AviSource("path to video"\video.avi")Code:
vid=lastCode:
AviSource("path to video"\video.avi")Quote:
Quote:
Quote:
Quote:
Quote:
If you're not applying VirtualDub filters and you want to avoid RGB and keep the source colorspace and compression, save using "fast recompress". That mode won't apply any Virtualdub filters, though, even if they're loaded. Quote:
I corrected the mp4's audio for that glitch (attached). I used the "aud=last" method, but I also do it the "Save wav...." way half the time. |
Quote:
The aud=last method seems easiest; I'll probably keep the RemoveSpots script (which is now badly named, it's just frame replacements now) as the last step in every process anyway so it's already there. |
RemoveSpots and its variations do more than just remove spots, they are like pumped-up versions of RemoveGrain and RemoveDirt. The "MC" versions don't soften as much as non-MC. Watch out for them in animation and other fine-detail videos, as they can often remove tiny thingies that are really details and can break lines in animation. The lordsmurf big script is a more thorough denoiser for bad shimmer in frames. I used it for a partial fix in this thread: http://www.digitalfaq.com/forum/vide...avy-lines.html.
|
I meant I had a RemoveSpots script, which ran...well, RemoveSpots, obviously. But now that I've run lordsmurf's script, I'm not running RemoveSpots, that script is just running ReplaceFramesMC to clean up what lordsmurf couldn't. I've just gone through and removed six or seven instances that are no longer required. The 16-field issue is still there but it's gone from being absolutely awful to something you could almost get away with not touching.
Manually watching the whole thing through to note field numbers, though...ugh. |
The script I gave assumes interlaced source, since it's been written for VHS. But I've run it on progressive source, and allowed it to remain as interlace. And at least once, I've run it on progressive, then QTGMC the output. Some purists may balk at this, but after much testing, that was the best result for the specific project. The mere act of deinterlacing can have beneficial effects, though rare.
|
Quote:
Can you explain the use of TemporalSoften() in your last attached script? I've read the wiki page and I kind of get the technical aspect, but not really how it applies to this particular clip. How does using SmoothTweak differ from levels adjustments and ColorYUV? |
Quote:
Quote:
Quote:
Remove TemporalSoften, SmoothTweak, SmoothLevels, and ColorYuv. Then start from scratch with whatever you want. Avs scripts aren't scripture. There are many filters that can accomplish the same things. |
Quote:
Quote:
Quote:
I'm asking questions because I want to learn. I've got a lot of tapes to do here, I can't just put them all up here and say 'write a script for me'. Well, I could, but I don't think it would go down very well. Unfortunately that's led to a bit of meandering, as I'll see something used in this discussion and realise it would be really good for a different tape (setting colors/levels in YUV for that blown-out color-cast one, dropout fixes for the other one I've been working on). I've just realised after all the hassle of trying to get MCTemporalDenoise to work, this most recent script doesn't even use it! |
Quote:
Quote:
Quote:
|
Sorry, the ball-removal was a different game that sprung immediately to mind when I saw what the lordsmurf script could do. This thread has become a bit muddled, which is why I created a second thread rather than bringing that issue in here.
Quote:
Quote:
Quote:
Where 0 and 50 are percentages of full white, not Y values. Quote:
|
Quote:
Code:
Color YUV contrast: |
I think this thread is getting to be one of the longest non-sticky threads on this forum. :P
And it's chocked full of interesting info on each page. Nice. |
I've ordered a third ES10. Fingers crossed!
How does one work out saturation? I'm satisfied with the studio clip, so I'm working on the actual game. Obviously yellow and red are dominant, but given what's on screen 99% of the time, they should be. So I'm not sure how much I need to drop them. I can't seem to get red to stop clipping on ColorTools' RGB waveform monitor. I'm also having issues with using the YC waveform monitor in Premiere. Apparently you're supposed to have the chroma cover roughly the same range as the luma, but I always end up with either a near-greyscale image (if I adjust master saturation), or clear delineations between the mids and highlights (if I adjust highlight saturation). Otherwise, chroma is miles above luma. |
If you clean up oversaturation in Avisynth/YUV (16-235), they won't clip in RGB. I use Histogram(mode="Color2")
I can't answer for Premiere Pro's controls, I don't use it. |
I tried setting red saturation to zero with TweakColor(), and red was still clipping. Luma was fine, as were green and blue, so it wasn't that.
But beyond that, red and yellow seem overly strong. Is it just an 'adjust by eye' thing? |
All I could do here is post the same techniques, images, and histogram captures and scripts that were already posted. I'm afraid that I can't accept "setting red saturation to zero with TweakColor(), and red was still clipping" as telling me that you undestand what has been discussed so far, and I don't know how to explain it to you without repeating vast portions of this thread. Reducing saturation doesn't reduce brightness, it reduces chromatic intensity. If you take an overly bright color and make it gray (zero chroma saturation), it's still overly bright. I have no idea what you're doing.
|
Quote:
|
Then you're not describing the problem correctly. If you have adjusted your chroma levels and luma levels in YUV so that they don't exceed 16-235, those values won't exceed 0-255 when expanded in RGB. But some of the stuff in your tape has clipping in-camera. You can't recover data that was destroyed in-camera or in subsequent processing.
Look back at the histograms posted in post #99 (http://www.digitalfaq.com/forum/vide...html#post46045): http://www.digitalfaq.com/forum/atta...alf-yuv-levels The YUV Levels chart on the left shows an image with luma levels that exceed y=235 at the bright end. The values that exceed y=235 will be greater than RGB=255 and will be clipped when expanded in RGB. The histogram on the right measures chroma intensity or saturation, not luma brightness levels. The right-hand "Colors2" shows an image with under-saturated colors, no reds, mostly greens and cyans, which is what the dull-looking washed-out images of that video look like. They illustrate that you can have low saturation with clipped luma, and vice-versa. YUV stores luma and chroma separately, and they can be processed separately. |
Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.