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
- To use these shaders, start by downloading and installing obs
- Next install both obs-shaderfilter and obs-shaderfilter plugins.
- 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.
- Adjust your capture card using the properties to get the best possible balance of resolution and fps that you can.
- 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.
- 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:
- 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:
- 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:
Before | After |
---|---|
- 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.