All Projects → ThoughtfulDev → Anime4K

ThoughtfulDev / Anime4K

Licence: GPL-3.0 license
Makes it easy to encode a Anime using Anime4K with predefined encoding profiles!

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Anime4K

bShaders
Video playback Effects/Filters (DirectX .hlsl pixel shaders, mpv .hook)
Stars: ✭ 29 (-52.46%)
Mutual labels:  shaders, mpv
rasen
Generate SPIR-V bytecode from an operation graph
Stars: ✭ 65 (+6.56%)
Mutual labels:  shaders
FakeInteriorsShader
Spiderman(PS4) like fake interior shader using Interior Mapping technique. Built with shadergraph.
Stars: ✭ 81 (+32.79%)
Mutual labels:  shaders
ShaderGlass
Overlay for running GPU shaders on top of Windows desktop
Stars: ✭ 417 (+583.61%)
Mutual labels:  shaders
vscode-mediaplayer
Mediaplayer extention for VS Code
Stars: ✭ 18 (-70.49%)
Mutual labels:  mpv
glNoise
A collection of GLSL noise functions for use with WebGL with an easy to use API.
Stars: ✭ 185 (+203.28%)
Mutual labels:  shaders
Renderman
Code and Slides for the NCCA Renderman lectures
Stars: ✭ 15 (-75.41%)
Mutual labels:  shaders
karaokemugen-app
Karaoke player and manager (Backup repository. Main is https://gitlab.com/karaokemugen/karaokemugen-app )
Stars: ✭ 30 (-50.82%)
Mutual labels:  mpv
ofxShadertoy
Addon for openFrameworks that sets up and loads Shadertoy (http://www.shadertoy.com) shaders
Stars: ✭ 77 (+26.23%)
Mutual labels:  shaders
NobleRT
A Minecraft shaderpack that enhances one's experience with the help of good-looking graphics and light simulations.
Stars: ✭ 76 (+24.59%)
Mutual labels:  shaders
godot-psx-style-demo
Demo project featuring a collection of PS1 style shaders and materials for Godot engine.
Stars: ✭ 266 (+336.07%)
Mutual labels:  shaders
godot-practice-shaders
Some practice shaders in Godot
Stars: ✭ 79 (+29.51%)
Mutual labels:  shaders
saakshaat.github.io
My personal website.
Stars: ✭ 25 (-59.02%)
Mutual labels:  shaders
shaderplace
Real-time collaborative GLSL livecode editor
Stars: ✭ 43 (-29.51%)
Mutual labels:  shaders
ModularMusicVisualizer
Project in Hiatus, unmaintained, being rewritten privately. Will Open Source when stuff is ready. Project will be Renamed.
Stars: ✭ 81 (+32.79%)
Mutual labels:  shaders
BAT FFMPEG
Batch script files for FFMPEG (Microsoft Windows and DOS, OS/2 🦄)
Stars: ✭ 104 (+70.49%)
Mutual labels:  ffmpeg-wrapper
ShaderForge
Shader Forge 1.38 working for Unity 2018.3. Removed obsolete Substance ProceduralMaterial and ProceduralTexture references. Fixed Preview panel crashing.
Stars: ✭ 62 (+1.64%)
Mutual labels:  shaders
BlackHoleShader
A blackhole shader with Unity Shadergraph
Stars: ✭ 31 (-49.18%)
Mutual labels:  shaders
drawingwithcode
Drawing with code 😘
Stars: ✭ 28 (-54.1%)
Mutual labels:  shaders
FNode
Tool based in nodes to build GLSL shaders without any programming knowledge written in C using OpenGL and GLFW.
Stars: ✭ 81 (+32.79%)
Mutual labels:  shaders

Logo of the project

Anime4K-PyWrapper

Wrapper for Anime4K

Makes it easy to encode a Anime using the MPV shaders with predefined encoding profiles!

Installing / Getting started

What you need:

  • Linux (sorry its the fault of mpv)
  • Python 3.X
  • mpv > 0.32
  • ffmpeg
  • mkvnixtool (e.g mkvtoolnix on Ubuntu)
  • mediainfo (e.g libmediainfo-dev mediainfo on Ubuntu)
  • A dedicated GPU (no VM) [AMD/NVIDIA/Intel]

Installing the necessary python libs

pip3 install -r requirements.txt

Initial Configuration

Download the latest shaders (GLSL (v3.1 Stable)) from here. Put them all into one folder for example called shaders

Upscaling your first Anime!

Assuming your Anime Movie/Episode is called input.mkv and has a resolution of 1920x1080. Now you want to upscale it to 4K (3840x2160). Here are the commands you would run.

  1. Encode the Video (to x264 and upscale it using the shader with the first Option [CPU])
python3 Anime4K.py -m shader --shader_dir "./shaders" --width 3840 --height 2160 -i input.mkv --output x264_upscale.mkv
  1. Choose the option CPU (only x264 4:4:4)... (for this example)
  2. Follow the dialogues - they should be pretty self explanatory
  3. Your file should now be in x264_upscale.mkv
  4. Now we need to encode the file to x265 10bit
python3 Anime4K.py -m encode -i x264_upscale.mkv --output x265_10bit.mkv
  1. Choose your desired encoding preset.
  2. The output file x265_10bit.mkv has no audio or subtitles we add them in the next step.
  3. Extract the audio and subtitles from the original file
python3 Anime4K.py -m audio -i input.mkv
python3 Anime4K.py -m subs -i input.mkv
  1. Now we have the audio files and subtitles in the current folder.
  2. Now lets add them into the final output
python3 Anime4K.py -m mux -i x265_10bit.mkv -o input_upscaled_with_audio_and_subs.mkv

Feel free to explore the other options of the program (or profiles) by typing:

python3 Anime4K.py --help

[Optional] Encoding ffmpeg progressbar

To get a overview of your current encoding of ffmpeg you may install the ffmpeg-progressbar-cli

npm install --global ffmpeg-progressbar-cli

Don't worry the script will also work with normal ffmpeg.

Features

  • Encode Videos with Anime4K shaders easily
  • Encode using NVENC or CPU
  • Extract Audio and subtitles automatically
  • Predefined profiles for Anime4K and ffmpeg

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Links

Licensing

The code in this project is licensed under GNU GENERAL PUBLIC LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].