BehindTheScenery / FancyVideo-API

Fork of the FancyVideo-API to attempt to load wonky, lossless and 60fps videos, here be dragons, very experimental.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FancyVideo-API

This minecraft mod provides a simple API for playing videos in Minecraft. Originally by Nick1st

Fork Changes

  • Now FancyVideo API tries to use hardware acceleration approach for videos played by MediaPlayerHandler. This is mostly useful when you have a decent videocard in your PC.
  • More video output stream optimizations, such as expanded file caching, fast bilinear scaling, allowing avcodec's speed tricks to be used and other avcodec performance tricks.
  • Added D3D11 and D3D9 video output plugins to FVA binaries. (only amd64)

This changes are basically a bit complicated approach using arguments to be able to load MKVs, MP4s at a much higher rates, allowing 60fps videos being able to be loaded in an instances, which are using shaders and lots of mods.

They allow smooth 60fps videos (such as Numinous) to be loaded as intended, with all the fluid transitions and animations. Also this change allows to properly support vp9/avc1 codec on certain machines and video cards, so they get not laggy when the video is played on runtime. (e.g. Cinematic mod allows to play videos, so when the cinematic starts on a laggy place, the cinematic will try to use hardware acceleration if possible to use more GPU, rather than CPU)

Feel free to throw tomatoes at me or make a PR to make this better, but I had literally no other idea what I can do here to make videos be able to be loaded just as smooth as I wanted to.

Opus audio currently not supported and won't play since no compatible libopus binary found for July 9, 2022 FVA build. Attempting to use the newer versions of Opus plugin from VLC 4.0.0 will cause Minecraft crash on it's own.

Licensing

This Project contains files from the VLCJ project, licensed under the terms of the GNU GENERAL PUBLIC LICENSE Version 3. Sources are available at https://github.com/caprica/vlcj.

This Project contains files from the VLC project, licensed under the terms of the GNU General Public License Version 2. Sources are available at https://code.videolan.org/videolan/vlc/.

Maintaining and Support?

At the moment of writing this, I'm working on a modpack requiring FancyVideo API to work, probably some other changes may be introduced later. Only Fabric 1.19.2 is currently maintained. (1.19 branch)

If you want to help maintain this fork, well, you're welcome. I'm open to PRs to make this API better, however, it's just a fork to be able to load wonky and lossless videos in Minecraft.

CurseForge/Modrinth builds of the fork are not planned at the moment.

About

Fork of the FancyVideo-API to attempt to load wonky, lossless and 60fps videos, here be dragons, very experimental.

License:GNU General Public License v3.0


Languages

Language:Java 100.0%