"Add noise" shader for MPC or similar
Page 1 of 1
Guy_Incognito




Posts: 3436

PostPosted: Sun, 10th Jul 2016 18:35    Post subject: "Add noise" shader for MPC or similar
Hi all,

I need a shader for MPC-HC which introduces noise/grain into output video, to artificially add "details" into low-bitrate 1080p video during playback. Does anyone have any recommendation, which (s)he actually tried?
Back to top
paxsali
Banned



Posts: 18352

PostPosted: Sun, 10th Jul 2016 18:48    Post subject:
⁢⁢


Last edited by paxsali on Thu, 4th Jul 2024 21:27; edited 1 time in total
Back to top
Guy_Incognito




Posts: 3436

PostPosted: Sun, 10th Jul 2016 19:01    Post subject:
I try not to introduce external DirectShow filters (such as ffdshow), and I don't know how to use AviSynth plugins with MPC-HC (too tired to research now).

Meanwhile I found something here:
http://forum.doom9.org/showthread.php?t=169719

effect\semi-random colored surface noise.txt
effect\semi-random grayscale noise.txt

These are pixel shader 2.0 code so they can be used with MPC-HC directly (rename to .HLSL and use in Options -> Playback -> Shaders). However these implementations are too agressive, I'll have to tweak the code a bit.

EDIT:
It was as easy as replacing

#define NoiseStrength .25

with

#define NoiseStrength .15

Looks great now.

EDIT2:
VLC has it built-in, Preferences (all) -> Video -> Filters, check "Grain"
Back to top
paxsali
Banned



Posts: 18352

PostPosted: Sun, 10th Jul 2016 19:16    Post subject:
⁢⁢


Last edited by paxsali on Thu, 4th Jul 2024 21:27; edited 1 time in total
Back to top
Guy_Incognito




Posts: 3436

PostPosted: Sun, 10th Jul 2016 19:38    Post subject:
Of course, here is the VLC grain filter (in the end, it turns out to be better / more "natural" than noise shader for MPC):

No grain:
https://dl.dropboxusercontent.com/u/22166389/vlcsnap-2016-07-10-19h33m08s081.png

With grain:
https://dl.dropboxusercontent.com/u/22166389/vlcsnap-2016-07-10-19h32m49s174.png

(zoom to 100%)

The example source is Conan.the.Barbarian.1982.1080p.BluRay.H264.AAC-RARBG (2.5 GB for 1080p, obviously low bitrate). Maybe doesn't look spectacular on static screenshot, but during playback it really makes a difference.

(This is with VLC grain variance set to maximum, i.e. 10,00; default is 2,00 which is not that noticeable)
Back to top
paxsali
Banned



Posts: 18352

PostPosted: Sun, 10th Jul 2016 19:47    Post subject:
⁢⁢


Last edited by paxsali on Thu, 4th Jul 2024 21:27; edited 1 time in total
Back to top
Guy_Incognito




Posts: 3436

PostPosted: Sun, 10th Jul 2016 19:52    Post subject:
Yes, I'm using it with MPC for several years, but for shitty material such as this, I need something stronger to fill washed-out surfaces.
Back to top
Nui
VIP Member



Posts: 5720
Location: in a place with fluffy towels
PostPosted: Sun, 10th Jul 2016 19:55    Post subject:
@ pax
madvr should not introduce noise for no reason, e.g. for blurry ares. Dithering is applied when the need arises when some operation produces values between discrete possible values (after sharpening, image scaling, level scaling, debanding, lut calibration etc). The achieved effect above should not happen with madvr.

Do you have an example where this actually happened?
Back to top
3E74




Posts: 2559
Location: feels wrong
PostPosted: Sun, 10th Jul 2016 20:22    Post subject:
a little grain/noise can improve details..With this old source, maybe a good idea..

doesnt sweetfx work? theres an grain shader and ceejay made em all mpchc compatible..

whait heres an link to the shaders...
http://forum.doom9.org/showthread.php?p=1673781#post1673781

did you also try different settings here?



also try the (anti ringing) options in madvr. they also should help with old sources..

also, maybe a little detail enhancement, should be under image enhancements or image upscaling enhancements, depending on what you wann use it, before or after upscaling/downscaling..

use image doubling also, works wonders..

and what nui sayd..


..:: Life - A sexually transmitted disease which always ends in death. There is currently no known cure::.. Troll Dad
Back to top
paxsali
Banned



Posts: 18352

PostPosted: Sun, 10th Jul 2016 20:41    Post subject:
⁢⁢
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Applications
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group