Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
26th May 2021, 16:02 | #61 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,364
|
Please check RgTools (bug in Forward/BackwardClense 10+ bits for non SSE4.1 processors)
https://github.com/pinterf/RgTools/releases/tag/1.2 |
26th May 2021, 17:11 | #63 | Link | |
Registered User
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 760
|
Quote:
However, I still have the doubt, why was RGTools the one that caused the problem if SCSelect when canceling it in my tests everything worked fine? That was why I turned to the old RemoveDirt which did work. My script is: LwLibavVideoSource ("Sample2.MP4") DeCelluloid() PD: I am preemptively now using RemoveDirt 0.9.3 x86 (not clang). Last edited by GMJCZP; 26th May 2021 at 17:20. |
|
26th May 2021, 17:29 | #64 | Link | |
Registered User
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 760
|
Quote:
But little by little all the problems I had, and did not know because I was away from Doom9, have been solved, The Market is flourishing again thanks to your help. Hopefully pinterf can clarify my question about RGTools and SCSelect Last edited by GMJCZP; 26th May 2021 at 17:35. |
|
8th January 2025, 17:51 | #65 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,364
|
RemoveDirt v1.1 (20250108)
https://github.com/pinterf/RemoveDirt/releases/tag/v1.1 Milestone: Vapoursynth (API v4) support This is my first real Vapoursynth port, so it can probably be fine tuned and may contain bugs. Nevertheless I tried to separate the internal algorithm to have as much common part as it can be, so parts I was using in Avisynth should work in Vapoursynth as well unless I messed up obvious vsapi calls. I was not surprised that 98% of the time went into de-Avisynthing and restructuring the existing code. As for the Avisynth part, there is no change in it except that YUY2 (ancient planar hack) support is removed. The DLL contains Windows builds x86 and x86, Microsoft and LLVM compiled versions. For usage check documentation in release pack. Thanks to Selur for the never ending motivation reminders . By seeing the number of working hours, no wonder why I postponed this conversion for years EDIT: SCSelect fix in v1.1, thx to Selur for the quick test. Last edited by pinterf; 8th January 2025 at 18:45. |
8th January 2025, 23:26 | #68 | Link |
Registered User
Join Date: Jul 2015
Posts: 821
|
It's hard to say if this works correctly. The show option specifies which motion blocks are being changed.
Avisynth function: Clense [function, false, 4] Avisynth function: ForwardClense [function, false, -1] Avisynth function: BackwardClense [function, false, -1] Avisynth function: SCSelect [function, function, function, function, true] Avisynth function: Repair [function, function, 16, 16] Avisynth function: Repair [function, function, 16, 16] Avisynth function: RestoreMotionBlocks [function, function, function, function, false, 70, 1, 2, false, 10, 12, false] Avisynth function: RemoveGrain [function, 17, 17] |
9th January 2025, 08:05 | #70 | Link |
Registered User
Join Date: Jul 2015
Posts: 821
|
I`m amateur. I'm looking at the wiki page. Test script. It seems that the RestoreMotionBlocks can't work without RgTools.
function RemoveDirt(clip input, bool "_grey", int "repmode") { _grey=default(_grey, false) repmode=default(repmode, 16) clmode=17 clensed=Clense(input, grey=_grey, cache=4) sbegin = ForwardClense(input, grey=_grey, cache=-1) send = BackwardClense(input, grey=_grey, cache=-1) select = SCSelect(input, sbegin, send, clensed, debug=true) alt=Repair(select, input, mode=repmode, modeU = _grey ? -1 : repmode ) restore=Repair(clensed, input, mode=repmode, modeU = _grey ? -1 : repmode) corrected=RestoreMotionBlocks(clensed, restore, neighbour=input, alternative=alt, gmthreshold=70, dist=1, dmode=2, debug=false, noise=10, noisy=12, grey=_grey) return RemoveGrain(corrected, mode=clmode, modeU = _grey ? -1 : clmode ) } Testing: AviSource("input_v210.avi", audio=false, pixel_type="V210") RemoveDirt(false, 16) If debug=true, then SCSelect sends output of the following type to the DebugView utility. Hmm,... If I only have ffmpeg then this function is unnecessary. I don't have any information displayed. The boolean variable debug and show are used for debugging. If show=true, then the blocks, which are marked as motion blocks in the first phase are colored red, those found in the second phase are colored green and finally the motion blocks marked by postprocessing are colored blue. In this way, one can easily check whether the above variables were selected appropriately. if debug=true, then RestoreMotionBlocks sends output of the following kind to the debugview utility: I only have one color red and blue. Which parameter increases, decreases the motion block area. When I use RemoveDirt(true, 16) the video won't play and everything is pink. Last edited by Jamaika; 9th January 2025 at 08:13. |
9th January 2025, 08:38 | #71 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,364
|
You intentionally passed grey=true to the script function which passes it over to its various filters. I suppose in this case filters simply do not process and ignore the chroma planes thus they contain garbage. In your case you see pink colors, I can see diagonal lines.
|
9th January 2025, 09:18 | #72 | Link | |
Registered User
Join Date: Jul 2015
Posts: 821
|
Quote:
For amateurs ffmpeg with new RestoreMotionBlocks. https://www.sendspace.com/file/8yufh8 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|