View Full Version : BM3D-r7 | state-of-the-art image/video denoising filter
KingLir
24th January 2017, 17:13
I really recommend you install Vapoursynth from github - I've had similar issues attempting to you use the brew installation.
But I already have it installed and don't want to jinks it.
But anyway, how to install on macOS ? It says that I have zimg missing (although I have the latest install with brew).
JoeyMonco
24th January 2017, 17:36
But I already have it installed and don't want to jinks it.
But anyway, how to install on macOS ? It says that I have zimg missing (although I have the latest install with brew).
One of the first things you need is pkg-config.
KingLir
24th January 2017, 19:26
One of the first things you need is pkg-config.
I am not following. I already have pkg-config-0.29.1_2 installed with brew.
JoeyMonco
24th January 2017, 19:42
I am not following. I already have pkg-config-0.29.1_2 installed with brew.
Misread the warnings in what you posted. My bad. Looks like you don't have PKG_CONFIG_PATH set properly since it's failing to even simply find the vapoursynth headers.
KingLir
24th January 2017, 21:41
Misread the warnings in what you posted. My bad. Looks like you don't have PKG_CONFIG_PATH set properly since it's failing to even simply find the vapoursynth headers.
Yes, can you guide me to how to fix it ?
JoeyMonco
24th January 2017, 22:17
Yes, can you guide me to how to fix it ?
Setting environment variables on OS X (http://apple.stackexchange.com/questions/106778/how-do-i-set-environment-variables-on-os-x)
Jindadil007
25th January 2017, 13:23
that's very unlikely, bm3d should be at least 100 times slower with proper settings, something has to be wrong cuz bm3d is working way too fast.
Hi...I am encoding a 3 hour video with Vine and VBM3D. Its encoding @0.44 fps since 19 hours and have not reached half stage even. I am encoding to 2-pass x264 (Slow First Pass). Once this finishes, i have to run 2nd pass. Looks it would take around 1 week to encode one movie. Is VBM3d so slow ? Or I should export the video without encoding ? Pl. help.
feisty2
25th January 2017, 13:36
Hi...I am encoding a 3 hour video with Vine and VBM3D. Its encoding @0.44 fps since 19 hours and have not reached half stage even. I am encoding to 2-pass x264 (Slow First Pass). Once this finishes, i have to run 2nd pass. Looks it would take around 1 week to encode one movie. Is VBM3d so slow ? Or I should export the video without encoding ? Pl. help.
you need to separate the filtering process and the encoding process.
output your filtered video to an uncompressed raw and encode that raw file later.
Jindadil007
25th January 2017, 13:40
you need to separate the filtering process and the encoding process.
output your filtered video to an uncompressed raw and encode that raw file later.
Many Thanks ... You are very helpful. I'll try it now... :thanks:
feisty2
25th January 2017, 13:46
Many Thanks ... You are very helpful. I'll try it now... :thanks:
you can separate things into even more steps, since Vine and V-BM3D are both slow
option A:
filter with Vine -> output a.raw
load a.raw and filter with V-BM3D -> b.raw
encode b.raw
option B:
filter with Vine -> output a.raw
load a.raw and filter with VBasic -> ref.raw
load a.raw and ref.raw and filter with VFinal -> b.raw
encode b.raw
Jindadil007
25th January 2017, 14:00
you can separate things into even more steps, since Vine and V-BM3D are both slow
option A:
filter with Vine -> output a.raw
load a.raw and filter with V-BM3D -> b.raw
encode b.raw
Hi Thanks...Option A looks best to me...But in my script i changed video to floating and back to integer like this :
video = core.d2v.Source(r'C:\DVD\Sample.d2v')
video = core.fmtc.bitdepth(video,bits=32,fulls=False,fulld=True)
video = Vine.Dehalo(video, radius=[2, None])
video = core.resize.Bicubic(video, format=vs.RGB48)
video.set_output()
I just tested encoder is not starting...how can i encode to raw and import it in 2nd step. Would ffms2 support importing raw content ? Thanks !!!
feisty2
25th January 2017, 14:05
vsrawsource (https://github.com/walisser/vsrawsource)
Jindadil007
25th January 2017, 14:22
vsrawsource (https://github.com/walisser/vsrawsource)
Hi this link doesn't have rawsource.dll. This for importing in second step. Pl. tell me how to export to raw source in step 1. Thanks
feisty2
25th January 2017, 14:24
Hi this link doesn't have rawsource.dll. This for importing in second step. Pl. tell me how to export to raw source in step 1. Thanks
vspipe xxx.vpy xxx.raw -p
Jindadil007
25th January 2017, 14:25
vspipe xxx.vpy xxx.raw -p
Many Thanks...:o
Jindadil007
28th January 2017, 06:43
vspipe xxx.vpy xxx.raw -p
Hi I get syntex error in Python while exporting to raw format...following is my script.
>>> import vapoursynth as vs
>>> import adjust
>>> import Vine
>>> import mvmulti
>>> import finesharp
>>> import havsfunc as haf
>>> import mvsfunc as mvf
>>> core = vs.get_core()
>>> core.max_cache_size = 12000
>>> video = core.d2v.Source(r'C:\DVD\Sample.d2v')
>>> video = core.fmtc.bitdepth(video,bits=32,fulls=False,fulld=True)
>>> video = core.resize.Bicubic(video, format=vs.RGB48)
>>> video.set_output()
>>> vspipe script.vpy script.raw -p
File "<stdin>", line 1
vspipe script.vpy script.raw -p
^
SyntaxError: invalid syntax
>>>
Where I am wrong ?
sl1pkn07
28th January 2017, 11:45
vspipe not is a python command, is a executable
put the content of the script into a file called script.vpy, then execute the vspipe command in the same folder
Jindadil007
28th January 2017, 17:14
vspipe not is a python command, is a executable
put the content of the script into a file called script.vpy, then execute the vspipe command in the same folder
I did exactly the same...tried copying script.vpy from python (Program Folder) as well as Video path given in my script...still the same result...
sl1pkn07
28th January 2017, 21:28
works without problem (with little tweak for my source)
http://wstaw.org/m/2017/01/28/Screenshot_20170128_212640.png
Jindadil007
29th January 2017, 04:11
@sl1pkn07 : Many Thanks...You really solved my problem...
KingLir
20th February 2017, 12:52
Anyone knows how to build this on macOS or can share the complied lib for macOS ?
KingLir
21st February 2017, 10:04
Um...
./configure doesn't work?
configure was working but the source on GitHub was missing the following header files in include/vapoursynth
VapourSynth.h , VSHelper.h , VSScript.h
Now everything builds fine.
If someone can do a commit with this fix - please do.
xekon
10th July 2020, 21:12
Has anyone managed to install this on Linux (ubuntu/debian) ?
I figured it out, I had installed fftw3, but you also need to install libfftw3-dev
perforator
11th July 2020, 14:04
Has anyone managed to install this on Linux (ubuntu/debian) ?
I figured it out, I had installed fftw3, but you also need to install libfftw3-dev
This sounds exciting!
Do you have a working "recipe" for the installation? I would really like to set this up on my new Manjaro workstation.
Are_
11th July 2020, 14:41
Manjaro (Arch) has proper packages, don't need any manual bullshit. https://aur.archlinux.org/packages/vapoursynth-plugin-bm3d-git/
Jukus
11th July 2020, 15:49
For Debian there is https://deb-multimedia.org/
But it's funny that there is nothing for Ubuntu
xekon
12th July 2020, 19:47
This sounds exciting!
Do you have a working "recipe" for the installation? I would really like to set this up on my new Manjaro workstation.
it was fairly easy, I will write up a guide on my blog in a few days that details setting up Vapoursynth, VSedit, and all plugins under ubuntu.
Cary Knoop
13th July 2020, 03:34
(V)-BM3D GPU development has stalled completely?
perforator
13th July 2020, 09:55
it was fairly easy, I will write up a guide on my blog in a few days that details setting up Vapoursynth, VSedit, and all plugins under ubuntu.
That would be great! Looking forward to read your blog. :)
Please post a link to it, or send a DM might not be allowed to post links here that are associated to bullshit manuals. ;)
perforator
13th July 2020, 10:05
Manjaro (Arch) has proper packages, don't need any manual bullshit. https://aur.archlinux.org/packages/vapoursynth-plugin-bm3d-git/
Yes one might think manuals are bullshit if one is already knowledgeable in the subject. But for us that have other main focus in general, an easy guide i worth a lot. I tried getting this running five years ago but gave up for the time being as it wasn't working as described in the "newbie posts". I would love to get this up and running as I have a large library of digitised 8mm film that would benefit from a bit of polishing. A wiki page would be preferable as it can easily be maintained and updated as progress is made in the development. Ultimately with a short 1. 2. 3. guide of best practise of processing and generally good settings, I understand there are a lot of settings to tweak if one want. :)
ChaosKing
13th July 2020, 10:40
Does this not count as a manual?
https://github.com/HomeOfVapourSynthEvolution/VapourSynth-BM3D
https://github.com/HomeOfVapourSynthEvolution/mvsfunc/blob/7948c8be129bc9cb282cf24e25b3c4b77328a9e0/mvsfunc.py#L700
vigan1
2nd August 2020, 09:47
Hi Chaosking, I read these links on BM3D, If I want to denoise a 1080p 8bit video from a camera.
How can I choose a setting to remove macroblocks (from low bitrate) and posterisation/banding of the 8bit H264 ?
It's very hard to understand what each settings do in practice.
Thank you for the help.
feisty2
28th August 2020, 03:01
it's been so long since the last appearance of the repo owner, I'm not sure if the repo is still being managed.
can someone who has writing access to the repo merge my latest pr?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.