Quantcast Avisynth with Adobe Premiere, AVSInfoTools errors? - Page 2 - digitalFAQ Forum
Go Back    Forum > Digital Video > Video Project Help > Edit Video, Audio

Reply
 
LinkBack Thread Tools
  #21  
11-22-2021, 06:07 AM
lollo2 lollo2 is offline
Free Member
 
Join Date: Mar 2013
Location: Italy
Posts: 212
Thanked 45 Times in 42 Posts
Quote:
But whilst trying to find RemoveDirtSMC() ... I came across SpotLess
Yes, SpotLess is a sort of RemoveDirtSMC evolution, and very effective. Be careful with removing small moving object: some posts in doom9's forum explain how to use adaptive masks to solve the problem. Difficult to implement, but very nice results!

TemporalDegrain2 is an excellent at denoising/grain removal; it may be not fully suitable for your video, but with a high temporal radius (>3) and dfttest or KNLMeansCL postprocessing should clean the "standard" noise a lot. I experimented a temporal radius of 16 with SMDegrain (a similar filter) once, and although really really slow it was effective for defects where the solution was to "average" across a large number of frames.

Quote:
I didn't apply nnedi deinterlacing because I want to preserve as much detail as possible without any interpolation of the other fields.
nnedit "deinterlacing" I proposed is lossless, meaning that it just builds the progressive frame from the 2 fields; you then apply the "progressive" filter, and interlace back. No interpolation, no loss of details.

Quote:
I tried LSFMod and CAS with MergeChroma but it seemed worse
Sharpening may not give a significant improvement to the look of your videos. Preset "slow" for LSFMod and defaults for CAS are generally the best options, but you have to experiment a lot. It is really source dependent.

Quote:
I also found your YT channel useful (assuming it is the same person).
That channel was built to share experiences and highlight common problems I found on my workflow with some friends, working in the same project of digital conversion of old vhs/s-vhs TV series. It is somehow repetitive, by my captures are very similar to each other.


Quote:
Strangely, large block sizes worked better (from 8 to 12 to 16 saw an improvement), but perhaps I am just not understanding the code correctly. ThSAD over 1100 made no difference, so I kept it as low as possible to prevent unwanted changes.
blocksize is a "static" parameter and, given the characteristics of your source, a larger values should be better because your defects cover large parts of the images. thSAD is used for the motion vectors, a parameter related to temporal structure then) and again given your defects should not play a role here. Your findings look coherent to me.

And finally let me say that your final result is not too bad at all. Sure, with lot of time and trying many filters/parametrs/steps you may improve it even further, but do not over process, and stop once you are satisfied, otherwise it will never end
Reply With Quote
The following users thank lollo2 for this useful post: Winsordawson (11-22-2021)
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #22  
11-22-2021, 10:10 AM
lollo2 lollo2 is offline
Free Member
 
Join Date: Mar 2013
Location: Italy
Posts: 212
Thanked 45 Times in 42 Posts
Quote:
No interpolation, no loss of details.
Obviously I meant "no loss of details". (there is interpolation)

A channel on S-VHS / VHS capture and AviSynth restoration https://bit.ly/3mHWbkN
Reply With Quote
  #23  
11-22-2021, 08:01 PM
Winsordawson Winsordawson is offline
Premium Member
 
Join Date: Sep 2010
Location: Behind you
Posts: 429
Thanked 27 Times in 23 Posts
Thanks again. I will try the nnedi with double frame option and see if there is an improvement. You mentioned previously that I can only use KNLMeansCL on an old version of TemporalDegrain2. Do you know which version?

SpotLess has no produced any problems for me so far, perhaps because I choose a low threshold for when to not affect the block. But if it seems problematic I'll use a different strength on the sides. It surely works much faster than FixRipsP2!

You're right that one can go crazy trying to make it perfect, and I am of the "less is more" crowd. Do you have any suggestions for the glow off the woman's shoulder? MergeLuma removes it, but makes it an oil painting. Perhaps by playing with the aWarpSharp2 parameters? (I should add that my above script and videos make use of a ChromaShift(C=4, L=2) that I forgot to include here).

LSFMod and CAS perform the same function as aWarpSharp2 for MergeChroma/MergeLuma, right? It has been hard to find a proper explanation of the effect, but I assumed it was by sharpening the edges and then merging only those parts to the original. Learning from Doom9 is like going through a garbage can full of shredded notes.

I plan to upload a separate, deinterlaced version online, upscaled to HD so it gets a better bitrate by YouTube. Do you recommend that I keep my same script (plus an AddGrain and sharpening effect, which I also forgot to include above) and just use QTGMC without any denoising? Or throw away the above denoisers and use something from QTGMC? I don't want to go crazy because I care more about the interlaced version for archiving purposes.

By the way, if you like the show UFO (given your videos) you may also like The Invaders, although the British were usually less corny.
Reply With Quote
  #24  
11-23-2021, 03:09 AM
lollo2 lollo2 is offline
Free Member
 
Join Date: Mar 2013
Location: Italy
Posts: 212
Thanked 45 Times in 42 Posts
Quote:
You mentioned previously that I can only use KNLMeansCL on an old version of TemporalDegrain2. Do you know which version?
TemporalDegrain (without 2)

Quote:
It surely works much faster than FixRipsP2
Sure, but for some defects FixRipsP2 is sometime necessary: https://forum.videohelp.com/threads/...-Distortion%29

Quote:
MergeLuma removes it, but makes it an oil painting
Oil painting/plastic look and highlight of halos are the unwanted side effects of denoise/sharpening/restore etc...
Not easy to avoid it, a tune of the parameters of the filters or something like addGrain (inside the filter if available or outside the filter) it may help. Some denoisers have an option to re-inject some "new cleaner noise" based on what has been removed
MergeLuma itself should not produce plastic look, except if you do a temporal/spatial smoothing.

Quote:
LSFMod and CAS perform the same function as aWarpSharp2 for MergeChroma/MergeLuma, right?
The best sharpeners by default do not sharpen chroma. You just do it in special cases, if needed.
Sometime, to be sure that chroma is not touched, you force in the flow mergeChroma to use the chroma from video before sharpening.

Quote:
Learning from Doom9 is like going through a garbage can full of shredded notes.
The advantage reading there is that the "developers" of the filters participate, but often their documentation is weak and they think everybody "speaks" their same technical language, which is obscure for a beginner. On the other hand, I will always be grateful to them for their "free" releases and their effort for making AviSynth and VapourSynth and their filters the wonderful tools that they are!

Quote:
... upscaled to HD so it gets a better bitrate by YouTube
If you want to output a version for YouTube you need to deinterlace. In this case the nnedi3 fake deinterlacing is not needed.
You can just use QTGMC() (real bob deinterlacer) and eventually remove the denoiser, because QTGMC denoises by itself.
Then upscale to 1440x1080 (if your DAR is 4:3) with nnedi3_rpow2; doing this, YT should introduce less problems while compressing your video.
You can save/export your final video with the same lossless codec used for capturing, because YT is able to read it and this avoid a preliminary lossy compression on your side.

However, what I would experiment given the nature of your video is if the deinterlacing is more appropriate before or after the filtering (this last is uncommon). I have the impression that QTGMC may have troubles with the defecting frames.

option 1:
Code:
...
QTGMC
<filtering>
<upscale>
option 2:
Code:
...
nnedi3 fake deinterlacing
<filtering>
QTGMC
<upscale>
Reply With Quote
The following users thank lollo2 for this useful post: Winsordawson (11-23-2021)
  #25  
11-23-2021, 06:59 PM
Winsordawson Winsordawson is offline
Premium Member
 
Join Date: Sep 2010
Location: Behind you
Posts: 429
Thanked 27 Times in 23 Posts
Thanks--I'll post an update once I try to implement your advice. That change after FixRipsP2() is quite impressive! But lots of detail is lost (like in the ear & hair) and two functions calls on each field would grind my computer to a halt. Hopefully the OP used a mask to just apply it to those lines!
Reply With Quote
  #26  
11-24-2021, 02:38 AM
lollo2 lollo2 is offline
Free Member
 
Join Date: Mar 2013
Location: Italy
Posts: 212
Thanked 45 Times in 42 Posts
Yes, that filtering was quite destructive and a last resort option! It was just an indication on how to proceed.

You are right, in general you want to apply a dedicated filter for a specific problem only to the concerned segment of the video, and eventually to a portion of the frame; and also with a "mask" to touch only where needed, but this last is not that easy.
Reply With Quote
  #27  
11-26-2021, 10:50 AM
Winsordawson Winsordawson is offline
Premium Member
 
Join Date: Sep 2010
Location: Behind you
Posts: 429
Thanked 27 Times in 23 Posts
Yes, that is my goal! Perhaps I am naive, but masking a portion of frame does not seem too complicated if it is based on a crop (and not hue, saturation, or luminance).

Also, when you suggested to use nnedi3 deinterlacing first because it works better, in what way exactly? Do the spatial-temporal and temporal filters work better or can be used with less strength? I ask because there are some people (like Sanlyn) who suggest to de-interlace only when necessary as any method will bring a reduction in quality as half of the frames are removed (but then interpolated, so overall about a 25% on average according to LordSmurf).

But if the 25% loss means a less filtered look, it may be worth it. I would also think that deinterlacing would be less damaging to a clip like mine that has less movement, bringing down the loss even further.
Reply With Quote
  #28  
11-27-2021, 03:14 AM
lollo2 lollo2 is offline
Free Member
 
Join Date: Mar 2013
Location: Italy
Posts: 212
Thanked 45 Times in 42 Posts
Quote:
masking a portion of frame does not seem too complicated
I was talking about mask on "elements" of the picture, i.e. edges of the objects, gradients, luma subset, certain colors, etc., not on a portion of the frame, which is trivial.

Quote:
Also, when you suggested to use nnedi3 deinterlacing first because it works better, in what way exactly? Do the spatial-temporal and temporal filters work better or can be used with less strength?
Concerning deinterlacing before filtering here some discussion we had in the paste, explaining better than what I did the right procedure:

https://forum.doom9.org/showthread.php?t=86394

http://www.doom9.org/index.html?/cap..._avisynth.html

https://forum.doom9.org/showthread.php?t=167315

https://forum.doom9.org/showthread.php?t=59029

http://forum.doom9.net/showthread.ph...93#post1921993

https://forum.doom9.org/showpost.php...82&postcount=6

Quote:
I ask because there are some people...
I proposed a lossless deinterlacing -> filtering -> interlace back approach
Deinterlacing or not the video for final export is your choice. If you prefere to deinterlace the previous is useless and then better use QTGMC (before or after filtering in this special case).
Deinterlacing (QTGMC) is recommended for YouTube upload.

Quote:
...as any method will bring a reduction in quality as half of the frames are removed (but then interpolated, so overall about a 25% on average...
I am not sure I understand what you mean. To simplify, deinterlacing at double frame rate recreates by interpolation the full frame from the single field (and much more when using QTGMC() instead of a simple Bob() for example)

interlaced frames video, 25 frames (50 fields) per second (25 frames i)
frame1 frame2 frame3 frame4 frame5 frame6 frame7 frame8
A..............C.............E..............G..... ..........................................(field 0) even lines
b..............d.............f...............h.... ............................................(field 1) odd lines

Bob() deinterlaced
Nnedi3(field=-2) deinterlaced
QTGMC() deinterlaced
[frame count is doubled (relative position of frames in previous scheme does not match)]
frame1 frame2 frame3 frame4 frame5 frame6 frame7 frame8
A..........B'.........C..........D'.........E..... .....F'.........G..........H'....... (field 0) even lines
a'..........b.........c'..........d..........e'... .......f..........g'.........h.........(field 0) odd lines
x' and X' represents scanlines interpolated from X and x
Reply With Quote
The following users thank lollo2 for this useful post: Winsordawson (12-02-2021)
  #29  
12-02-2021, 09:54 AM
Winsordawson Winsordawson is offline
Premium Member
 
Join Date: Sep 2010
Location: Behind you
Posts: 429
Thanked 27 Times in 23 Posts
Thank you for the reading material. The deal breaker for me is that sharpening really shouldn't be done on interlaced material. Also, I it seems that JDL_UnfoldFieldsVertical stacks the even and odd fields together, which I would think still suffer in quality because of the lack of information between line 1 and 3, line 3 and 5, etc.

I am gathering that your method works better because A and a' (interpolated A) are from the same space and same time, which helps with spatial-temporal filtering. The original A and b are from a different space and time. SelectEven/selectOdd provide all of the A lines at once but because the b lines come in the next field before A again temporal filtering will suffer.

In your experience, do you think using QTGMC with or without denoising is better, since it appears that I would only have the choice between dfttest and fft3dfilter that don't seem to work as well as TD2 and SpotLess?

Also, do you recommend QTGMC with NNEDI3 as interpolation or something else like "EEDI3+NNEDI3" (EEDI3 with sclip from NNEDI3) to get the benefit of both?
Reply With Quote
Reply




Tags
avsinfotools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adobe Premiere CS3 for compressing video? JoRodd Edit Video, Audio 16 05-11-2017 09:49 PM
Is there an alternative to Adobe Premiere? rappy Edit Video, Audio 1 12-27-2011 12:31 PM
Help with Adobe Premiere and Huffyuv Files jrodefeld Edit Video, Audio 2 12-04-2011 01:50 PM
Wow, Adobe Premiere Pro CS4 support RMVB anllyy Encode, Convert for streaming 2 01-17-2010 11:05 AM

Thread Tools



 
All times are GMT -5. The time now is 12:08 AM