Giter Club home page Giter Club logo

Comments (8)

roseyhead avatar roseyhead commented on June 6, 2024 1

Thanks, in hindsight it was kinda dumb of me not to try Plex Desktop and MPV before creating an issue. The shaders did the same thing on Plex but MPV worked as expected, which caused me to remember that at some point I'd replaced the Plex mpv library via this guide:
https://forums.plex.tv/t/htpc-tips-and-tricks/794228/3
Dropped in the latest mpv-2.dll and it's all working great. Looking at my browser history I did this AFTER originally installing Anime4k though, so could be that's what broke it in the first place? At any rate that's fixed it this time so I'm happy. Thanks for your help :)

from anime4k.

Tama47 avatar Tama47 commented on June 6, 2024

Can you verify by checking the profiler if Anime4K is running?

Add this line to your input.conf inside %LOCALAPPDATA%\Plex HTPC (if you haven't already).

i script-binding stats/display-stats-toggle

Quit and reopen Plex HTPC. Then press i and 3 while playing video. It should show all the shaders being rendered.

Also, keep in mind that Anime4K_Upscale_CNN shaders only upscale the resolution, i.e., from 1080p to 2160p. The shaders responsible for sharpening lines are the Anime4K_Restore_CNN shaders.

from anime4k.

roseyhead avatar roseyhead commented on June 6, 2024

Hey! Thanks for the response. I've turned that on and grabbed a couple of screenshots. Here's a screenshot with the default A filters enabled:
a default filter

And one with them disabled:
filters off
Magenta's a very slightly different shade of magenta in each but aside from that it looks identical to my eyes.

For comparison's sake, here's a shot with only Anime4K_Clamp_Highlights.glsl enabled:
just clamp highlights

And a shot with only Anime4K_Restore_CNN_VL.glsl x3 (i'd expect this to oversharpen massively? or at least have some effect)
just restore 3x

The only difference I can see is a slight change in contrast in parts of the image when the clamp filter is on. Also, just to clarify, this is all 1080p video played on a 2160p screen. Like I said it definitely worked the first time I set it up, so I know how it's meant to look!

from anime4k.

Tama47 avatar Tama47 commented on June 6, 2024

Lovely screenshots of Magenta!

Anyway, it seems like the shaders are active and running normally. I do see that there's not much difference between having the shaders on or off, aside from the slight contrast. I'm running the latest version of Plex and Plex HTPC on both Mac and Windows systems, and Anime4K still works fine. So, I highly doubt this is an issue with the Plex app itself.

Just to isolate the issue, could you try running the shaders in mpv or the normal Plex app and see if Anime4K is working correctly there? Also, try downloading the shaders again directly from Releases, as there could be something wrong with the files. You could also try using these combined preset shaders and see if they work.

from anime4k.

Tama47 avatar Tama47 commented on June 6, 2024

That’s interesting! I didn’t even realize you could replace the mpv library in Plex. Maybe I’ll give it a try, since I do want to use their new library and I’ll see if it breaks Anime4K too. Anyway, glad it worked out for you!

from anime4k.

Tama47 avatar Tama47 commented on June 6, 2024

So I just replaced the old libmpv in Plex HTPC with the new one, and Anime4K seems to be working for me.

Old libmpv on Mac:
Screenshot 2024-02-11 at 04 30 38

New libmpv on Windows:
Anime4k Off
Screenshot 2024-02-11 at 04 33 49
Anime4K On
Screenshot 2024-02-11 at 04 32 43
Screenshot 2024-02-11 at 04 32 54

from anime4k.

roseyhead avatar roseyhead commented on June 6, 2024

Little FYI - Plex HTPC updated today and I noticed Anime4K broken the same way as it was when I opened this issue - replaced mpv-2.dll the same way which immediately fixed it.

from anime4k.

Tama47 avatar Tama47 commented on June 6, 2024

Yep, the same thing happened to me. Although, I replaced it with the new libmpv and it works just fine. What concerns me, though, is that I will need to keep replacing the mpv-2.dll file every time there is an update. Which would be pretty annoying as Plex updates pretty often, and I didn't have this issue prior to changing the mpv-2.dll file. But the trade-off might be worth it for the new libmpv alone, considering that Plex still uses the old mpv library.

from anime4k.

Related Issues (20)

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.