Giter Site home page Giter Site logo

bshaders's Introduction

bShaders

Effects/Filters for video playback This project aims at providing shaders (DirectX .hlsl files), tools and comparison screenshots for realtime video Effects. The focus is on best implementation (and tuned parameter settings) of lightweight gpu shaders.

Shaders tested on MPC-HC video player (EVR-CP Dx9) on integrated graphics. https://www.videohelp.com/software/Media-Player-Classic-Home-Cinema MPC-HC enables hardware-accelerated playback of local and internet videos without requiring the installation of additional codecs.

Mpv is an open-source cross-platform video player: https://mpv.io/installation/ how to use shaders in mpv: https://forum.doom9.org/showthread.php?p=1926639#post1926639

Effects:

  • Pixelate (Mosaic)
  • Edge detection (in Luma): Sobel, Prewitt, Frei-Chen
  • FilmGrain/Noise (bNoise.hlsl lightweight additive noise pixel shader and others)

Blur:

  • Single-pass gSmooth (Gaussian Blur 3x3, hw.3)
  • Multi-pass (Gaussian 7-tap, hw.5, hw.9, quarter-frame hw.9, Kawase, Dual-Kawase, BoxBlur(3x) with adjustable size)
  • Blurred pillarbox borders (fill_bb.avs avisynth script)

Art/Style Effect for Video content (vs Film):

  • Dots
  • CrossHatch
  • bStipple comic book style
  • bSobel_Edge: grayscale Sobel Edge detection + saturated color to achieve a cartoon effect

Tools:

  • barMask (Custom Border Masks + frame shift) ...Quadri-Frame 2x2 visualization, ex: ROGB or separate grayscale RYGB components
  • bStrobe (Time-based Effect)
  • test_linearSampling (test whether Hardware Linear Sampling (hw) is working in player/gpu-driver): ...it works in mpv but not in mpc-hc/be !
  • test_LimitedRange (limited range tools using Avisynth and ffmpeg) ...bHighL.hlsl (out-of-range pixel highlighting)

Mpv:

  • NoChroma.hook (Grayscale source shader)
  • simple examples for embedded textures and compute shaders

See also my shader gists: https://gist.github.com/butterw


basic intro about hlsl/glsl pixel shaders here: https://forum.videohelp.com/threads/397797-Pixel-shaders-for-video-playback-%28-hlsl%29

Unofficial video player shaders guide: https://forum.doom9.org/showthread.php?t=181584

bshaders's People

Contributors

butterw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.