-sTi-
19th February 2025, 10:37
Hi
I try to use BM3DCuda in Staxrip (latest version 2.44.4) and downloaded the BM3DCUDA-R2.14 package from https://github.com/WolframRhodium/VapourSynth-BM3DCUDA/releases/tag/R2.14
I have an NVIDIA 4070 GPU with latest drivers installed.
I placed the bm3dcuda.dll file in the following folder:
StaxRip 2.44.4\Apps\FrameServer\VapourSynth\vs-plugins
It works fine when using this code:
clip = core.resize.Bicubic(clip, format=vs.YUV420PS)
# BM3D Denoising (Very Light) - CUDA Accelerated
clip = core.bm3dcuda.BM3D(clip, sigma=[1, 1, 1])
clip = core.resize.Bicubic(clip, format=vs.YUV420P10)
However, I want to use the temporal denoise function, but if I add the radius parameter
clip = core.resize.Bicubic(clip, format=vs.YUV420PS)
# BM3D Denoising (Very Light) - CUDA Accelerated
clip = core.bm3dcuda.BM3D(clip, sigma=[1, 1, 1], radius=1)
clip = core.resize.Bicubic(clip, format=vs.YUV420P10)
Things start to fall apart: The vertical dimensions of the video increase for every increase in radius, e.g.
without radius: 1920x1078 (correct)
radius 1: 1920x6468
radius 2: 1920x10780
and the output is totally garbled and looks as if the frames are stacked vertically above each other, see here:
https://ibb.co/1J2S430F
What is going on here? Is BM3DCuda simply not compatible with StaxRip or do I have to adjust some code or add missing components in Vapoursynth?
Here is the complete code in StaxRip, which works fine if I remove ", radius=1":
1: import os, sys
2: import vapoursynth as vs
3: core = vs.core
4:
5: sys.path.append(r"C:\Programme2\StaxRip 2.44.4\Apps\Plugins\VS\Scripts")
6: core.std.LoadPlugin(r"C:\Programme2\StaxRip 2.44.4\Apps\Plugins\Dual\ffms2\ffms2.dll", altsearchpath=True)
7:
8: tcFile = r"E:\\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002_temp\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002_timestamps.txt" # timestamps file path
9: clip = core.ffms2.Source(r"E:\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002.mkv", cachefile=r"E:\\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002_temp\temp.ffindex", timecodes=tcFile) if os.path.exists(tcFile) else core.ffms2.Source(r"E:\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002.mkv", cachefile=r"E:\\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002_temp\temp.ffindex")
10: clip = core.std.Crop(clip, 0, 0, 0, 2)
11: clip = core.resize.Bicubic(clip, format=vs.YUV420PS)
12: # BM3D Denoising (Very Light) - CUDA Accelerated
13: clip = core.bm3dcuda.BM3D(clip, sigma=[1, 1, 1], radius=1)
14: clip = core.resize.Bicubic(clip, format=vs.YUV420P10)
15:
16: clip.set_output()
Any help is appreciated!
I try to use BM3DCuda in Staxrip (latest version 2.44.4) and downloaded the BM3DCUDA-R2.14 package from https://github.com/WolframRhodium/VapourSynth-BM3DCUDA/releases/tag/R2.14
I have an NVIDIA 4070 GPU with latest drivers installed.
I placed the bm3dcuda.dll file in the following folder:
StaxRip 2.44.4\Apps\FrameServer\VapourSynth\vs-plugins
It works fine when using this code:
clip = core.resize.Bicubic(clip, format=vs.YUV420PS)
# BM3D Denoising (Very Light) - CUDA Accelerated
clip = core.bm3dcuda.BM3D(clip, sigma=[1, 1, 1])
clip = core.resize.Bicubic(clip, format=vs.YUV420P10)
However, I want to use the temporal denoise function, but if I add the radius parameter
clip = core.resize.Bicubic(clip, format=vs.YUV420PS)
# BM3D Denoising (Very Light) - CUDA Accelerated
clip = core.bm3dcuda.BM3D(clip, sigma=[1, 1, 1], radius=1)
clip = core.resize.Bicubic(clip, format=vs.YUV420P10)
Things start to fall apart: The vertical dimensions of the video increase for every increase in radius, e.g.
without radius: 1920x1078 (correct)
radius 1: 1920x6468
radius 2: 1920x10780
and the output is totally garbled and looks as if the frames are stacked vertically above each other, see here:
https://ibb.co/1J2S430F
What is going on here? Is BM3DCuda simply not compatible with StaxRip or do I have to adjust some code or add missing components in Vapoursynth?
Here is the complete code in StaxRip, which works fine if I remove ", radius=1":
1: import os, sys
2: import vapoursynth as vs
3: core = vs.core
4:
5: sys.path.append(r"C:\Programme2\StaxRip 2.44.4\Apps\Plugins\VS\Scripts")
6: core.std.LoadPlugin(r"C:\Programme2\StaxRip 2.44.4\Apps\Plugins\Dual\ffms2\ffms2.dll", altsearchpath=True)
7:
8: tcFile = r"E:\\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002_temp\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002_timestamps.txt" # timestamps file path
9: clip = core.ffms2.Source(r"E:\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002.mkv", cachefile=r"E:\\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002_temp\temp.ffindex", timecodes=tcFile) if os.path.exists(tcFile) else core.ffms2.Source(r"E:\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002.mkv", cachefile=r"E:\\Operation Petticoat (1959) (dt.+eng.) (1080p.BR.AV1-CRF28-3) --PARTs-002_temp\temp.ffindex")
10: clip = core.std.Crop(clip, 0, 0, 0, 2)
11: clip = core.resize.Bicubic(clip, format=vs.YUV420PS)
12: # BM3D Denoising (Very Light) - CUDA Accelerated
13: clip = core.bm3dcuda.BM3D(clip, sigma=[1, 1, 1], radius=1)
14: clip = core.resize.Bicubic(clip, format=vs.YUV420P10)
15:
16: clip.set_output()
Any help is appreciated!