Skip to content

Anime4k v0.9 effect shader implementation for obs to improve the quality of the preview and stream

License

Notifications You must be signed in to change notification settings

ryandash/Anime4k-obs-upscaling-shaders

Repository files navigation

Anime4k V0.9 hlsl obs shaders

These are Anime4k V0.9 hlsl shaders for obs to improve the quality of the preview and stream.

Original shader can be found at bloc97/Anime4k

How to use shaders (This is how I use the shaders with my capture card on obs):

  1. To use these shaders, start by downloading and installing obs
  2. Next install both obs-shaderfilter and obs-shaderfilter plugins.
  3. In sources add a Video Capture Device or capture source of your choice and 4 source clones that clone the Video Capture Device. You can also disable the audio on all the clones except the 4th and final source clone.
  4. Adjust your capture card using the properties to get the best possible balance of resolution and fps that you can.
  5. For the Video Capture Device and the 4 source clones, use a transform -> fit to screen to make all the windows fit the preview screen.
  6. On source clones 1 to 4, add a shader filter, and set each shader filter to use the corresponding numbered shader from the repository.
    • The clones should look something like this:
    image
  7. On source clones 2 to 4, there should be an option to select the Previous Pass.
    • Using the dropdown select the previous numbered source clone
    • Your Sources should look like this:
    image
  8. Disable the visibility of the original capture source and everything should now be setup to use your new filters. To do a comparison you can right click the preview and take a "Screenshot(Preview)", disable all the source clones, enable the original capture source, and take another screenshot.

WARNING: Applying filters to the 1st to 3rd shader clones is not advised as it can affect the quality of the final output in a negative way. Instead apply filters to the original capture source or after the 4th and final source clone's filter.

Optional: To apply filters on top of these filters or adjust the final preview size easily without needing to change the preview size each of source clone I recommend

  • Creating a new Scene
  • Creating a new source clone in the new scene and set it's source to the old scene
  • Your scenes and new scene's sources should look like this:

image

Comparison with and without shader (This is Anime4k v0.9)

Before After
Before After

Updated shaders?

  • While it may be possible to upgrade these shader to V4.0.1, I have not had any success due to the limitations of obs and the need to change glsl hooks found in mpv to an hlsl equivalent. Using glsl in obs may work but the lack of glsl hooks will still remains an issue for me.

About

Anime4k v0.9 effect shader implementation for obs to improve the quality of the preview and stream

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages